/* Complete CSS File - Replace your entire style.css with this */

/* Base Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
}

#cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #f8f9fa;
    padding: 15px;
    text-align: center;
    z-index: 9999;
    border-top: 1px solid #dee2e6;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}
#cookie-consent p {
    margin: 0 15px 0 0;
}
#cookie-consent button {
    background: #4285f4;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}
#cookie-consent button:hover {
    background: #2b68c9;
}

/* Header */
header {
    background-color: #2c3e50;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}
h1 {
    margin: 0;
    font-size: 2.2em;
}

/* Navigation */
.navbar {
    list-style-type: none;
    padding: 0;
    margin: 15px 0 0 0;
    display: flex;
    justify-content: center;
    background-color: #34495e;
    border-radius: 4px;
}
.navbar li {
    margin: 0;
}
.navbar a {
    text-decoration: none;
    color: #fff;
    font-size: 16px;
    display: block;
    padding: 10px 15px;
    transition: background-color 0.3s;
}
.navbar a:hover {
    background-color: #1abc9c;
    color: #fff;
}

/* Main Content Area */
main {
    padding: 30px;
    background-color: #fff;
    margin: 20px auto;
    max-width: 1000px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}
label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}
input[type="text"],
input[type="email"],
textarea,
select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
}
input[type="file"] {
    padding: 5px;
}
.submit-btn {
    background-color: #1abc9c;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
}
.submit-btn:hover {
    background-color: #16a085;
}

/* Enhanced submit button states */
.submit-btn:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    background: #6c757d !important;
    transform: none !important;
    box-shadow: none !important;
}

.submit-btn:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
    background: #6c757d !important;
}

/* Intro/Feature Sections */
.intro-content {
    margin-bottom: 40px;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, white 100%);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid #e9ecef;
}
.intro-content h2 {
    color: #2c3e50;
    font-size: 1.8em;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #2c3e50, #1abc9c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.intro-content p {
    margin-bottom: 15px;
}

/* Enhanced converter container */
.converter-container {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.converter-container h3 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 1.5rem;
}

/* Upload Zone */
.upload-zone {
    border: 3px dashed #dee2e6;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    background: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.upload-zone:hover {
    border-color: #007bff;
    background: rgba(0, 123, 255, 0.05);
}

.upload-zone.dragover {
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.1);
    transform: scale(1.02);
}

.upload-zone input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-icon {
    font-size: 3rem;
    color: #6c757d;
    margin-bottom: 15px;
}

.upload-zone h4 {
    color: #495057;
    margin-bottom: 10px;
}

.upload-zone p {
    color: #6c757d;
    margin-bottom: 15px;
}

.file-input {
    display: none;
}

/* Conversion Options */
.conversion-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e9ecef;
}

.conversion-options .form-group {
    margin-bottom: 20px;
}

.conversion-options .form-group:last-child {
    margin-bottom: 0;
}

.quality-section {
    grid-column: 1 / -1;
}

/* Quality Control */
.quality-control {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.quality-slider {
    flex: 1;
    height: 8px;
    border-radius: 4px;
    background: #dee2e6;
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.quality-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.quality-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.quality-slider::-moz-range-track {
    height: 8px;
    border-radius: 4px;
    background: #dee2e6;
    border: none;
}

#quality-value {
    font-weight: 700;
    color: #007bff;
    min-width: 50px;
    text-align: center;
}

/* File Info */
.file-info {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    display: none;
}

.file-info.show {
    display: block;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.file-info h4 {
    color: #495057;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.file-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.file-detail {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.file-detail:last-child {
    border-bottom: none;
}

.file-detail strong {
    color: #6c757d;
    font-weight: 600;
}

.file-detail span:last-child {
    font-family: 'Courier New', monospace;
    background: white;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    font-size: 0.9rem;
}

/* Features Section */
.features {
    margin: 40px 0;
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}
.feature {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #1abc9c;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #1abc9c;
}

.feature:hover::before {
    transform: scaleY(1);
}

.feature h4 {
    color: #1abc9c;
    margin-top: 0;
    font-size: 1.2rem;
    margin-bottom: 12px;
}
.feature p {
    margin: 10px 0 0 0;
}

/* Format Info Section */
.format-info {
    margin: 40px 0;
}
.format-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.format-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.format-item h4 {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.3rem;
    margin-bottom: 15px;
}
.format-item p {
    margin: 8px 0;
}
.format-item p strong {
    font-weight: 600;
}

.format-item h4:hover {
    text-decoration: underline;
    text-decoration-color: #1abc9c;
}

/* About, Privacy, Terms, Contact Content */
.about-content,
.privacy-content,
.terms-content,
.contact-content {
    line-height: 1.8;
}
.about-content h2,
.privacy-content h2,
.terms-content h2,
.contact-content h2 {
    color: #2c3e50;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 10px;
    margin-top: 40px;
}
.about-content h2:first-child,
.privacy-content h2:first-child,
.terms-content h2:first-child,
.contact-content h2:first-child {
    margin-top: 0;
}

/* Contact Form & Info */
.contact-form {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 4px;
}
.contact-info {
    margin-top: 30px;
}
.contact-info h3 {
    color: #1abc9c;
    margin-bottom: 5px;
}
.contact-info p {
    margin: 0;
}

/* Alert Messages */
.alert-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px 20px;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.alert-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: inherit;
}

/* Footer */
.footer-content {
    text-align: center;
    padding: 20px;
    background: #2c3e50;
    color: #ecf0f1;
    border-top: 3px solid #1abc9c;
}
.footer-nav {
    margin-top: 10px;
}
.footer-nav a {
    color: #ecf0f1;
    text-decoration: none;
    margin: 0 10px;
}
.footer-nav a:hover {
    text-decoration: underline;
    color: #1abc9c;
}

/* Enhanced Select Styling */
select {
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23666" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 40px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
    outline: none;
}

/* Loading States */
.submit-btn.loading {
    position: relative;
    color: transparent;
}

.submit-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    z-index: 10000;
    max-width: 400px;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: #28a745;
    color: white;
}

.notification.error {
    background: #dc3545;
    color: white;
}

.notification.info {
    background: #17a2b8;
    color: white;
}

/* Focus Styles for Accessibility */
.upload-zone:focus-within {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

select:focus,
input:focus,
.submit-btn:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
    }
    .navbar li {
        margin: 0;
        width: 100%;
        text-align: center;
    }
    .navbar a {
        padding: 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .feature-grid {
        grid-template-columns: 1fr;
    }
    main {
        padding: 20px;
        margin: 10px;
    }
    #cookie-consent {
        flex-direction: column;
    }
    #cookie-consent p {
        margin: 0 0 10px 0;
    }
    
    .conversion-options {
        grid-template-columns: 1fr;
        padding: 15px;
    }
    
    .converter-container {
        padding: 20px;
    }
    
    .upload-zone {
        padding: 30px 15px;
    }
    
    .upload-icon {
        font-size: 2.5rem;
    }
    
    .quality-control {
        flex-direction: column;
        gap: 10px;
    }
    
    #quality-value {
        min-width: auto;
    }
    
    .file-details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .upload-zone {
        padding: 30px 15px;
    }
    
    .upload-icon {
        font-size: 2.5rem;
    }
    
    .conversion-options {
        padding: 15px;
    }
    
    .quality-control {
        flex-direction: column;
        gap: 10px;
    }
    
    #quality-value {
        min-width: auto;
    }
}

/* Messages (Success/Error feedback) */
.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 10px 15px;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    margin-bottom: 15px;
}
.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px 15px;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin-bottom: 15px;
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .upload-zone {
        border-color: #000;
        background: #fff;
    }
    
    .feature {
        border-color: #000;
    }
    
    .submit-btn {
        border: 2px solid #000;
    }
}

/* Print Styles */
@media print {
    .upload-zone,
    .converter-container,
    #cookie-consent,
    .notification {
        display: none !important;
    }
    
    .intro-content,
    .format-info {
        break-inside: avoid;
    }
}

#.alert-error {
#	    display: none !important;
#    }


/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}
