/* Importação de fontes e variáveis de cor */
:root {
    --primary-color: #4A90E2; /* Azul */
    --secondary-color: #50E3C2; /* Verde-água */
    --dark-color: #333;
    --light-gray-color: #f4f4f4;
    --border-color: #ddd;
    --text-color: #555;
    --page-background-color: #f7f8fa; /* <-- NOVA COR PARA O FUNDO DA PÁGINA */
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background-color: var(--page-background-color); /* <-- ALTERADO */
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: #fff; /* <-- Esta linha garante que não haja transparência. Já está correta. */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: top 0.3s ease-in-out; /* <-- NOVA LINHA: Para a animação de esconder/mostrar */
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--primary-color);
    text-decoration: none;
    gap: 1.5rem;
}

.logo-img {
  height: 50px;
  width: auto;
  vertical-align: middle;
}


header nav a {
    text-decoration: none;
    color: var(--dark-color);
    margin-left: 20px;
    font-weight: 500;
    transition: color 0.3s ease;
}

header nav a:hover {
    color: var(--primary-color);
}

/* Main Content */
main section {
    padding: 60px 0;
    text-align: center;
}

h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 40px auto;
}

/* Upload Area */
#drop-zone {
    border: 3px dashed var(--border-color);
    border-radius: 15px;
    padding: 60px 40px;
    background: var(--light-gray-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

#drop-zone.dragover {
    border-color: var(--primary-color);
    background: #e9f2fe;
}

#drop-zone i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

#drop-zone p {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--dark-color);
    margin: 0;
}

#drop-zone span {
    display: block;
    margin: 15px 0;
    color: #999;
}

/* Buttons and Controls */
.button {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
}

.button:hover {
    background: #3a7bc8;
    transform: translateY(-2px);
}

.button.primary {
    background: var(--secondary-color);
    color: var(--dark-color);
}
.button.primary:hover {
    background: #48d1b1;
}

/* Conversion Area */
.hidden {
    display: none !important;
}

#conversion-area {
    background: var(--light-gray-color);
    border-radius: 15px;
    padding: 30px;
    margin-top: 30px;
    text-align: left;
}

#file-list .file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
}

.file-info {
    display: flex;
    align-items: center;
}

.file-info i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 15px;
}

.file-name {
    font-weight: 500;
    color: var(--dark-color);
}

.file-size {
    font-size: 0.9rem;
    color: #888;
}

.remove-file {
    background: none;
    border: none;
    color: #f44336;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}
.remove-file:hover {
    color: #d32f2f;
}

#conversion-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.format-select-wrapper label {
    margin-right: 10px;
    font-weight: 500;
}

#target-format {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-size: 1rem;
}

/* How-to Section */
#how-to-section {
    background-color: var(--light-gray-color);
}

h3 {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 40px;
}

.steps {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.step {
    flex: 1;
}

.icon-wrapper {
    background: var(--primary-color);
    color: #fff;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px auto;
    font-size: 2rem;
}

.step h4 {
    font-size: 1.2rem;
    color: var(--dark-color);
    margin-bottom: 10px;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .steps {
        flex-direction: column;
    }
    header .container, #conversion-controls {
        flex-direction: column;
        gap: 15px;
    }
    header nav a {
        margin: 0 10px;
    }
}
/* Categories Section Styles */
#hero-section {
    text-align: center;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

#hero-section h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
}

#categories-section {
    padding: 2rem 0;
    margin-bottom: 3rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.category-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-card:hover {
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
    transform: translateY(-2px);
}

.category-card.active {
    border-color: #007bff;
    background: #f8f9ff;
}

.category-card.disabled {
    background: #f5f7fa;
    border-color: #e5e9ef;
    color: #9aa0a6;
    cursor: not-allowed;
    pointer-events: none;
}

.category-card.disabled:hover {
    border-color: #e5e9ef;
    box-shadow: none;
    transform: none;
}

.category-card.disabled .category-icon {
    background: #e9ecef;
    color: #b0b7c3;
}

.category-card.disabled .category-content h3,
.category-card.disabled .category-content p {
    color: #9aa0a6;
}

.category-card.disabled .category-formats .format-tag {
    background: #e9ecef;
    color: #9aa0a6;
}

.category-card.disabled .category-arrow {
    color: #c3c7ce;
}

.coming-soon-tag {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.35rem 0.8rem;
    background: #e9ecef;
    color: #6c757d;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.category-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    flex-shrink: 0;
}

.category-icon.documents {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.category-icon.images {
    background: linear-gradient(135deg, #007bff, #6610f2);
}

.category-icon.videos {
    background: linear-gradient(135deg, #dc3545, #fd7e14);
}

.category-icon.audio {
    background: linear-gradient(135deg, #fd7e14, #ffc107);
}

.category-content {
    flex: 1;
}

.category-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.category-content p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.category-formats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.format-tag {
    background: #f8f9fa;
    color: #495057;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid #e9ecef;
}

.format-tag.disabled {
    background: #e9ecef;
    color: #9aa0a6;
    border-style: dashed;
}

.category-arrow {
    color: #6c757d;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.category-card:hover .category-arrow {
    transform: translateX(4px);
    color: #007bff;
}

/* Converter Section Updates */
.converter-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.back-button {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: #4A90E2;
    border: 1px solid #dee2e6;
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border-style: groove;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    /* text-decoration-line: underline; */

}

.back-button:hover {
    background: #f8f9fa;
    border-color: #007bff;
    color: #007bff;
}

.converter-header h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .category-card {
        padding: 1rem;
    }
    
    .category-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .category-content h3 {
        font-size: 1.1rem;
    }
    
    .category-content p {
        font-size: 0.85rem;
    }
    
    .back-button {
        position: static;
        transform: none;
        margin-bottom: 1rem;
        align-self: flex-start;
    }
    
    .converter-header {
        text-align: left;
    }
    
    #hero-section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .category-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .category-arrow {
        transform: rotate(90deg);
    }
    
    .category-card:hover .category-arrow {
        transform: rotate(90deg) translateX(4px);
    }
}


/* Compression Category Styles */
.category-icon.compression {
    background: linear-gradient(135deg, #6f42c1, #e83e8c);
}

.compression-card {
    grid-column: 1 / -1; /* Ocupa toda a largura do grid */
    max-width: 600px;
    margin: 0 auto;
}

/* Update grid to accommodate 5 categories */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

/* Responsive adjustments for compression category */
@media (max-width: 768px) {
    .compression-card {
        grid-column: 1;
        max-width: none;
    }
}

/* Quality selection styles for compression */
.quality-select-wrapper {
    margin-bottom: 1rem;
}

.quality-select-wrapper label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.quality-select-wrapper select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.quality-select-wrapper select:focus {
    outline: none;
    border-color: #6f42c1;
    box-shadow: 0 0 0 3px rgba(111, 66, 193, 0.1);
}

/* Compression info display */
.compression-info {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.compression-info h4 {
    margin: 0 0 0.5rem 0;
    color: #6f42c1;
    font-size: 1rem;
}

.compression-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

/* Compression level indicators */
.compression-level {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.compression-level .level-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e9ecef;
}

.compression-level.low .level-indicator:nth-child(1) {
    background: #28a745;
}

.compression-level.medium .level-indicator:nth-child(1),
.compression-level.medium .level-indicator:nth-child(2) {
    background: #ffc107;
}

.compression-level.high .level-indicator {
    background: #dc3545;
}


.hero-highlight { 
    display: inline-block; 
    background: #4A90E2; 
    color: white; 
    padding: 0.4rem 0.8rem; 
    border-radius: 8px; 
    font-weight: 400; 
    font-size: medium;
}
