/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: inherit;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #424242;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

/* Navbar */
.navbar {
    background-color: #1976d2;
    color: white;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    gap: 0.5rem;
}

.nav-brand i {
    font-size: 1.8rem;
}

/* Brand Logo - Tamanho Proporcional e Responsivo */
.brand-logo {
    width: 24px !important;
    height: 24px !important;
    object-fit: contain;
    vertical-align: middle;
    display: inline-block;
    margin-right: 8px;
}

/* Responsivo para telas menores */
@media (max-width: 768px) {
    .brand-logo {
        width: 20px !important;
        height: 20px !important;
    }
}

/* Para headers maiores */
.display-4 .brand-logo,
.display-5 .brand-logo {
    width: 32px !important;
    height: 32px !important;
}

.privacy-link {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.privacy-link:hover {
    background-color: rgba(255,255,255,0.1);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1976d2, #42a5f5);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    margin-top: 70px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    background-color: white;
    color: #1976d2;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Upload Section */
.upload-section {
    padding: 80px 0;
    background-color: white;
}

.upload-box {
    border: 3px dashed #1976d2;
    border-radius: 10px;
    padding: 60px 20px;
    text-align: center;
    background-color: #e3f2fd;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 2rem;
}

.upload-box:hover {
    border-color: #42a5f5;
    background-color: #bbdefb;
}

.upload-box.dragover {
    border-color: #42a5f5;
    background-color: #90caf9;
    transform: scale(1.02);
}

.upload-content i {
    font-size: 4rem;
    color: #1976d2;
    margin-bottom: 1rem;
    display: block;
}

.upload-content p {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #1976d2;
}

.upload-content small {
    color: #666;
    font-size: 0.9rem;
}

/* File Preview */
.file-preview {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.file-info {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.file-thumbnail {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.file-thumbnail img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.file-thumbnail i {
    font-size: 3rem;
    color: #666;
}

.file-details h3 {
    margin-bottom: 0.5rem;
    color: #1976d2;
}

.file-details p {
    color: #666;
    margin-bottom: 1rem;
}

.file-actions {
    display: flex;
    gap: 1rem;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #1976d2;
    color: white;
}

.btn-primary:hover {
    background-color: #1565c0;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

/* Metadata Section */
.metadata-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.metadata-section h2 {
    text-align: center;
    color: #1976d2;
    margin-bottom: 3rem;
}

.metadata-table-container {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}

.metadata-table {
    width: 100%;
    border-collapse: collapse;
}

.metadata-table th {
    background-color: #1976d2;
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.metadata-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
}

.metadata-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.metadata-table tbody tr:hover {
    background-color: #e3f2fd;
}

.metadata-table input[type="text"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.metadata-table input[type="text"]:focus {
    outline: none;
    border-color: #1976d2;
    box-shadow: 0 0 5px rgba(25,118,210,0.3);
}

.metadata-table input[type="checkbox"] {
    transform: scale(1.2);
    cursor: pointer;
}

.download-section {
    text-align: center;
}

.download-button {
    background: linear-gradient(135deg, #1976d2, #42a5f5);
    color: white;
    border: none;
    padding: 20px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(25,118,210,0.3);
}

.download-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(25,118,210,0.4);
}

/* Footer */
.footer {
    background-color: #424242;
    color: white;
    padding: 40px 0 20px;
}

.trust-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
}

.trust-item i {
    font-size: 2rem;
    color: #42a5f5;
}

.trust-item span {
    font-weight: 500;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #555;
    color: #aaa;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 0;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: slideIn 0.3s ease;
}

.modal-header {
    background-color: #1976d2;
    color: white;
    padding: 20px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
}

.close {
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    opacity: 0.7;
}

.modal-body {
    padding: 30px;
}

.modal-footer {
    padding: 20px 30px;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    border-top: 1px solid #e0e0e0;
}

.alert-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.alert-content i {
    font-size: 3rem;
    color: #ff9800;
}

.privacy-content h4 {
    color: #1976d2;
    margin-bottom: 1rem;
}

.privacy-content ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.privacy-content li {
    margin-bottom: 0.5rem;
}

.privacy-content code {
    background-color: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
}

/* Success Message */
.success-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #4caf50, #81c784);
    color: white;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-content {
    text-align: center;
    max-width: 600px;
}

.success-content i {
    font-size: 5rem;
    margin-bottom: 2rem;
    color: white;
}

.success-content h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.success-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .file-info {
        flex-direction: column;
        text-align: center;
    }
    
    .file-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .trust-features {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .modal-content {
        margin: 5% auto;
        width: 95%;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .metadata-table {
        font-size: 14px;
    }
    
    .metadata-table th,
    .metadata-table td {
        padding: 10px 8px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .upload-box {
        padding: 40px 15px;
    }
    
    .upload-content i {
        font-size: 3rem;
    }
    
    .upload-content p {
        font-size: 1.1rem;
    }
    
    .nav-brand {
        font-size: 1.3rem;
    }
    
    .privacy-link span {
        display: none;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mt-2 {
    margin-top: 1rem;
}

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

/* Error Report Modal */
.error-report-content {
    max-height: 80vh;
    overflow-y: auto;
}

.error-report-content p {
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.form-group label i {
    margin-right: 8px;
    color: #4facfe;
    width: 16px;
}

.form-group textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group textarea:focus {
    outline: none;
    border-color: #1976d2;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

.file-upload-area {
    position: relative;
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-upload-area:hover {
    border-color: #1976d2;
    background-color: rgba(25, 118, 210, 0.05);
}

.file-upload-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-info {
    pointer-events: none;
}

.upload-info i {
    font-size: 24px;
    color: #1976d2;
    margin-bottom: 8px;
    display: block;
}

.upload-info span {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    color: #333;
}

.upload-info small {
    color: #666;
    font-size: 12px;
}

.tech-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border-left: 4px solid #1976d2;
}

.tech-item {
    margin-bottom: 8px;
    font-size: 13px;
    display: flex;
    align-items: center;
}

.tech-item:last-child {
    margin-bottom: 0;
}

.tech-item strong {
    min-width: 80px;
    color: #333;
}

.tech-item span {
    color: #666;
    margin-left: 8px;
}

/* Error Report Link in Footer */
.error-report-link {
    color: #42a5f5 !important;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
}

.error-report-link:hover {
    color: #1976d2 !important;
    text-shadow: 0 0 5px rgba(25, 118, 210, 0.3);
}

.error-report-link i {
    margin-right: 5px;
}

/* File Selected State */
.file-upload-area.file-selected {
    border-color: #28a745;
    background-color: rgba(40, 167, 69, 0.05);
}

.file-upload-area.file-selected .upload-info i {
    color: #28a745;
}

.file-upload-area.file-selected .upload-info span {
    color: #28a745;
}

/* ===== SISTEMA MULTILÍNGUE E NOVOS RECURSOS ===== */

/* Language Selector */
.language-selector {
    position: relative;
    display: inline-block;
    margin-right: 20px;
}

.lang-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #42a5f5;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    max-height: 300px;
    overflow-y: auto;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    color: #424242;
    text-decoration: none;
    transition: background 0.2s ease;
}

.lang-option:hover {
    background: #f8f9fa;
}

.lang-option.active {
    background: #1976d2;
    color: white;
}

.lang-option .flag {
    font-size: 16px;
}

.lang-option .name {
    font-size: 14px;
}

/* Upload Progress Bar */
.upload-progress {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    border: 1px solid #ddd;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #1976d2, #42a5f5);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #424242;
}

#progress-percentage {
    font-weight: 600;
    color: #1976d2;
}

.upload-limit {
    margin-top: 10px;
    padding: 5px 10px;
    background: rgba(25, 118, 210, 0.1);
    border-radius: 4px;
    color: #1976d2;
    font-weight: 500;
}

/* Ad Spaces */
.ad-space {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    min-height: 90px;
    background: #f8f9fa;
    border: 1px dashed #ddd;
    border-radius: 4px;
}

.ad-header {
    margin: 0;
    min-height: 90px;
}

.ad-hero {
    margin: 30px auto;
    max-width: 728px;
}

.ad-middle {
    margin: 40px auto;
    max-width: 300px;
    min-height: 250px;
}

.ad-footer {
    margin: 30px auto 0;
    max-width: 728px;
}

.ad-placeholder {
    color: #666;
    font-size: 12px;
    text-align: center;
    opacity: 0.7;
}

/* RTL Support */
[dir="rtl"] .nav-links {
    flex-direction: row-reverse;
}

[dir="rtl"] .lang-dropdown {
    right: auto;
    left: 0;
}

[dir="rtl"] .progress-text {
    flex-direction: row-reverse;
}

[dir="rtl"] .trust-features {
    direction: rtl;
}

/* Mobile Responsive Updates */
@media (max-width: 768px) {
    .ad-header, .ad-hero, .ad-footer {
        min-height: 50px;
        max-width: 320px;
    }
    
    .ad-middle {
        max-width: 280px;
        min-height: 200px;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 10px;
        align-items: flex-end;
    }
    
    .language-selector {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .lang-dropdown {
        min-width: 150px;
    }
    
    .upload-progress {
        padding: 10px;
    }
    
    .progress-text {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .lang-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .lang-option {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .upload-limit {
        text-align: center;
    }
    
    .nav-links {
        align-items: center;
    }
}