/* Image Filters Tool Styles */

/* Tool Page Container */
.tool-page {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding-bottom: 50px;
}

/* Tool Header */
.tool-header {
    background: linear-gradient(135deg, #0a1e3c 0%, #172b4d 100%);
    color: #fff;
    padding: 50px 0;
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
}

.tool-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../../assets/img/pattern.png');
    background-repeat: repeat;
    background-size: 200px;
    opacity: 0.1;
}

.tool-title {
    position: relative;
    z-index: 2;
    text-align: center;
}

.tool-title h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #fff;
    font-weight: 700;
}

.tool-title .title-underline {
    height: 3px;
    width: 80px;
    background: linear-gradient(90deg, #ffd700, #ffaa00);
    margin: 0 auto 20px;
}

.tool-description {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
}

.premium-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #0a1e3c;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 10;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.premium-badge i {
    margin-right: 5px;
}

/* Tool Content */
.tool-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Upload Area */
.upload-area {
    background-color: #f8f9fa;
    border: 2px dashed #d1d5db;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.upload-area.dragover {
    background-color: #e9f0ff;
    border-color: #0a1e3c;
}

.upload-container {
    max-width: 500px;
}

.upload-area i {
    font-size: 3rem;
    color: #0a1e3c;
    margin-bottom: 15px;
}

.upload-area h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #0a1e3c;
}

.upload-btn {
    display: inline-block;
    background: linear-gradient(135deg, #0a1e3c, #172b4d);
    color: #fff;
    padding: 10px 25px;
    border-radius: 5px;
    margin: 15px 0;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.upload-btn:hover {
    background: linear-gradient(135deg, #172b4d, #0a1e3c);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.upload-info {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 10px;
}

/* Editor Container */
.editor-container {
    margin-bottom: 30px;
}

.editor-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 20px;
}

@media (max-width: 1024px) {
    .editor-layout {
        grid-template-columns: 1fr;
    }
}

/* Image Preview Container */
.image-preview-container {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

.image-preview-container h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #0a1e3c;
}

.image-preview {
    width: 100%;
    height: 300px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e9ecef;
    border-radius: 5px;
}

.image-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Filter Controls */
.filter-controls {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
}

.filter-controls h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #0a1e3c;
    text-align: center;
}

.filter-categories {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 15px;
}

.filter-category-btn {
    background: none;
    border: none;
    padding: 8px 15px;
    margin: 0 5px;
    cursor: pointer;
    font-weight: 600;
    color: #6c757d;
    transition: all 0.3s ease;
    position: relative;
}

.filter-category-btn:hover {
    color: #0a1e3c;
}

.filter-category-btn.active {
    color: #0a1e3c;
}

.filter-category-btn.active::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #ffd700, #ffaa00);
}

.filter-group {
    margin-bottom: 20px;
}

.filter-control {
    margin-bottom: 15px;
}

.filter-control label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #0a1e3c;
    font-size: 0.9rem;
}

.slider-container {
    display: flex;
    align-items: center;
}

.filter-slider {
    flex: 1;
    height: 5px;
    -webkit-appearance: none;
    appearance: none;
    background: #e9ecef;
    outline: none;
    border-radius: 5px;
}

.filter-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    cursor: pointer;
}

.filter-slider::-moz-range-thumb {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    cursor: pointer;
    border: none;
}

.slider-value {
    width: 50px;
    text-align: right;
    font-size: 0.9rem;
    color: #6c757d;
    margin-left: 10px;
}

/* Preset Filters */
.preset-filters h4 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #0a1e3c;
}

.preset-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.preset-item {
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 5px;
}

.preset-item:hover {
    background-color: #f8f9fa;
}

.preset-item.active {
    background-color: #e9f0ff;
}

.preset-preview {
    width: 60px;
    height: 60px;
    margin: 0 auto 5px;
    background-color: #e9ecef;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #6c757d;
}

.preset-item span {
    font-size: 0.8rem;
    color: #0a1e3c;
    font-weight: 600;
}

/* Output Options */
.output-options {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.output-options h4 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #0a1e3c;
}

.option-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.option-row label {
    width: 80px;
    font-weight: 600;
    color: #0a1e3c;
    font-size: 0.9rem;
}

.select-dropdown {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    background-color: #fff;
    color: #0a1e3c;
    font-size: 0.9rem;
}

.quality-slider-container {
    flex: 1;
    display: flex;
    align-items: center;
}

.quality-slider {
    flex: 1;
    height: 5px;
    -webkit-appearance: none;
    appearance: none;
    background: #e9ecef;
    outline: none;
    border-radius: 5px;
}

.quality-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    cursor: pointer;
}

.quality-slider::-moz-range-thumb {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    cursor: pointer;
    border: none;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
}

.primary-btn {
    background: linear-gradient(135deg, #0a1e3c, #172b4d);
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.primary-btn:hover {
    background: linear-gradient(135deg, #172b4d, #0a1e3c);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.primary-btn i {
    margin-right: 5px;
}

.secondary-btn {
    background: #f8f9fa;
    color: #0a1e3c;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid #d1d5db;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.secondary-btn:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.secondary-btn i {
    margin-right: 5px;
}

/* Result Container */
.result-container {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
}

.result-container h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #0a1e3c;
}

.result-preview {
    max-width: 600px;
    margin: 0 auto 20px;
}

.result-preview img {
    max-width: 100%;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.result-info {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.info-item {
    margin: 0 15px;
    display: flex;
    align-items: center;
}

.info-label {
    font-weight: 600;
    color: #0a1e3c;
    margin-right: 5px;
}

.info-value {
    color: #6c757d;
}

.result-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

/* Features Section */
.features-section {
    margin: 50px 0;
}

.features-section h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #0a1e3c;
    position: relative;
}

.features-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #ffd700, #ffaa00);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-item {
    background-color: #fff;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.feature-item i {
    font-size: 2rem;
    color: #0a1e3c;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.feature-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #0a1e3c;
}

.feature-item p {
    color: #6c757d;
    font-size: 0.9rem;
}

/* How To Use Section */
.how-to-section {
    margin: 50px 0;
}

.how-to-section h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #0a1e3c;
    position: relative;
}

.how-to-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #ffd700, #ffaa00);
}

.steps {
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    margin-bottom: 30px;
    position: relative;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50px;
    left: 25px;
    width: 2px;
    height: calc(100% - 30px);
    background-color: #e9ecef;
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: #0a1e3c;
    margin-right: 20px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #0a1e3c;
}

.step-content p {
    color: #6c757d;
}

/* FAQ Section */
.faq-section {
    margin: 50px 0;
}

.faq-section h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #0a1e3c;
    position: relative;
}

.faq-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #ffd700, #ffaa00);
}

.faq-items {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
}

.faq-question {
    padding: 15px 20px;
    background-color: #f8f9fa;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    font-size: 1.1rem;
    margin: 0;
    color: #0a1e3c;
    font-weight: 600;
}

.faq-question i {
    color: #0a1e3c;
    transition: all 0.3s ease;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding: 10px 0 20px;
    color: #6c757d;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .tool-title h1 {
        font-size: 2rem;
    }
    
    .tool-description {
        font-size: 1rem;
    }
    
    .upload-area {
        padding: 30px 20px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons button,
    .action-buttons a {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .result-info {
        flex-direction: column;
        align-items: center;
    }
    
    .info-item {
        margin: 5px 0;
    }
    
    .result-actions {
        flex-direction: column;
    }
    
    .result-actions a,
    .result-actions button {
        width: 100%;
    }
}

/* Fix for Firefox appearance property */
@-moz-document url-prefix() {
    .filter-slider::-moz-range-track {
        background: #e9ecef;
        height: 5px;
        border-radius: 5px;
    }
    
    .quality-slider::-moz-range-track {
        background: #e9ecef;
        height: 5px;
        border-radius: 5px;
    }
}
