/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #2C2E43;
    color: #000000;
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Estilos específicos para páginas */
body.landing-page,
body.laudos-page {
    overflow-x: hidden;
    overflow-y: auto;
}

/* Header */
.header {
    background: #2C2E43;
    color: #000000;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 70px;
    border-bottom: 2px solid #01AEEF;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 50px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.logo-container h1 {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
    display: inline-block;
    font-size: 14px;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.nav-link:hover {
    background: rgba(1, 174, 239, 0.2);
    color: #ffffff;
    border-color: rgba(1, 174, 239, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(1, 174, 239, 0.2);
}

.nav-link.active {
    background: #01AEEF;
    color: #000000;
    border-color: #01AEEF;
    font-weight: 600;
}

.btn-login {
    background: linear-gradient(135deg, #01AEEF, #0090cc) !important;
    color: #000000 !important;
    border: 2px solid #01AEEF !important;
    font-weight: 600 !important;
    min-width: 80px;
    text-align: center;
}

.btn-login:hover {
    background: linear-gradient(135deg, #0090cc, #007bb8) !important;
    color: #000000 !important;
    border-color: #0090cc !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(1, 174, 239, 0.3) !important;
}

/* Botão de logout - vermelho */
.nav-link[style*="background-color: rgb(220, 53, 69)"] {
    background: linear-gradient(135deg, #dc3545, #c82333) !important;
    color: #ffffff !important;
    border-color: #dc3545 !important;
}

.nav-link[style*="background-color: rgb(220, 53, 69)"]:hover {
    background: linear-gradient(135deg, #c82333, #bd2130) !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3) !important;
}

/* Estilos específicos para página de perfil */
.profile-subtitle {
    color: #ffffff !important;
    font-size: 16px;
    margin-top: 15px;
    margin-bottom: 0;
    font-weight: 400;
    opacity: 0.9;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    background: transparent;
    border: none;
    color: white;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Responsividade da navegação */
@media (max-width: 768px) {
    .nav-menu {
        gap: 8px;
    }
    
    .nav-link {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .nav-link i {
        margin-right: 4px;
    }
}

/* Melhorias para dispositivos touch */
@media (hover: none) and (pointer: coarse) {
    .nav-link {
        padding: 12px 16px;
        font-size: 16px;
    }
    
    .btn {
        padding: 14px 24px;
        font-size: 16px;
    }
    
    .control-btn {
        padding: 14px;
        font-size: 16px;
    }
    
    .map-controls {
        top: 80px;
        right: 15px;
    }
}

/* Melhorias para telas de alta resolução */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
    
    .nav-link {
        border-width: 1px;
    }
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.map-type-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.map-type-selector label {
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
}

.map-type-dropdown {
    background: rgba(255,255,255,0.1);
    border: 1px solid #2C2E43;
    color: #ffffff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    min-width: 120px;
}

.map-type-dropdown:hover {
    background: rgba(1, 174, 239, 0.2);
    border-color: #000000;
}

.map-type-dropdown:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 2px rgba(1, 174, 239, 0.3);
}

.map-type-dropdown option {
    background: #2C2E43;
    color: #ffffff;
}

/* Map Type Selector no Header */
.map-type-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 15px;
}

.map-type-selector label {
    color: white;
    font-size: 14px;
    white-space: nowrap;
}

/* CAR search box styles */
.car-search input {
    background: rgba(255,255,255,0.1);
    border: 1px solid #34495e;
    color: #ffffff;
}
.car-search input::placeholder {
    color: rgba(255,255,255,0.7);
}

.map-type-dropdown {
    background: #2c3e50;
    color: white;
    border: 1px solid #34495e;
    border-radius: 4px;
    padding: 5px 8px;
    font-size: 13px;
    cursor: pointer;
}

.map-type-dropdown:focus {
    outline: none;
    border-color: #3498db;
}

.map-type-dropdown option {
    background: #2c3e50;
    color: white;
}

/* Auth modal balloon */
.auth-modal { position: fixed; inset: 0; z-index: 2000; }
.auth-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.35); }
.auth-modal-card {
  position: absolute; top: 90px; right: 20px; width: 320px;
  background: #ffffff; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  border: 1px solid #e5e7eb; overflow: hidden;
}
.auth-modal-title { margin: 0; padding: 12px 16px; background: #01AEEF; color: #000; font-size: 16px; font-weight: 700; }
.auth-modal-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.auth-label { font-size: 12px; color: #2C2E43; font-weight: 600; }
.auth-input { height: 36px; border: 1px solid #cbd5e1; border-radius: 8px; padding: 0 10px; font-size: 14px; }
.auth-input:focus { outline: none; border-color: #01AEEF; box-shadow: 0 0 0 3px rgba(1,174,239,0.2); }
.auth-primary-btn { background: #01AEEF; color: #000; border: 1px solid #01AEEF; height: 36px; border-radius: 8px; font-weight: 600; cursor: pointer; }
.auth-primary-btn:hover { background: #0090cc; }
.auth-modal-close { position: absolute; top: 8px; right: 10px; background: transparent; border: none; font-size: 20px; cursor: pointer; color: #000; }
.auth-error { color: #dc3545; font-size: 12px; }

/* ===== LANDING PAGE STYLES ===== */

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #ffffff 0%, #9bbdc2 100%);
    padding: 120px 0 80px;
    display: flex;
    align-items: center;
    min-height: 100vh;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(0, 0, 0, 0.8);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-icon {
    font-size: 200px;
    color: #000000;
    opacity: 0.8;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.btn-primary {
    background: #01AEEF;
    color: #000000;
}

.btn-primary:hover {
    background: #0090cc;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(1, 174, 239, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #000000;
    border: 2px solid #01AEEF;
}

.btn-secondary:hover {
    background: #01AEEF;
    color: #000000;
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

/* Loading states for buttons */
.btn.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
    cursor: not-allowed;
}

.btn.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    color: #ffffff;
}

.btn-primary.loading::before {
    color: #000000;
}

.btn-secondary.loading::before {
    color: #01AEEF;
}

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

/* Sections */
.container-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: #000000;
    text-align: center;
    margin-bottom: 60px;
}

/* Features Section */
.features {
    background: linear-gradient(135deg, #ffffff 0%, #9bbdc2 100%);
    padding: 100px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.feature-card {
    background: rgba(1, 174, 239, 0.1);
    border: 1px solid rgba(1, 174, 239, 0.2);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: #000000;
    box-shadow: 0 20px 40px rgba(1, 174, 239, 0.2);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: #01AEEF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: #000000;
}

.feature-card h3 {
    font-size: 24px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 15px;
}

.feature-card p {
    color: rgba(0, 0, 0, 0.8);
    line-height: 1.6;
}

/* Applications Section */
.applications {
    background: linear-gradient(135deg, #ffffff 0%, #9bbdc2 100%);
    padding: 100px 0;
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.application-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px;
    background: rgba(1, 174, 239, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.application-item:hover {
    background: rgba(1, 174, 239, 0.1);
    transform: translateY(-5px);
}

.application-item i {
    font-size: 48px;
    color: #000000;
    margin-bottom: 20px;
}

.application-item h4 {
    font-size: 20px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 10px;
}

.application-item p {
    color: rgba(0, 0, 0, 0.8);
}

/* CTA Section */
.cta {
    background: #01AEEF;
    padding: 80px 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 36px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta .btn-primary {
    background: #FFFFFF;
    color: #000000;
}

.cta .btn-primary:hover {
    background: #f0f0f0;
}

.cta .btn-secondary {
    border-color: #000000;
    color: #000000;
}

.cta .btn-secondary:hover {
    background: #FFFFFF;
    color: #000000;
}

/* Footer */
.footer {
    background: #1a1d2e;
    padding: 40px 0;
    border-top: 1px solid rgba(1, 174, 239, 0.3);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo img {
    height: 40px;
    width: auto;
    border-radius: 6px;
}

.footer-logo span {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
}

.footer-text p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* ===== LAUDOS PAGE STYLES ===== */

.laudos-container {
    padding-top: 70px;
    min-height: 100vh;
}

/* Upload Section */
.upload-laudo-section {
    background: linear-gradient(135deg, #ffffff 0%, #9bbdc2 100%);
    padding: 80px 0;
}

.upload-header {
    text-align: center;
    margin-bottom: 60px;
}

.upload-header h1 {
    font-size: 36px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 20px;
}

.upload-header p {
    font-size: 18px;
    color: rgba(0, 0, 0, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

.upload-card {
    background: rgba(1, 174, 239, 0.1);
    border: 2px dashed rgba(1, 174, 239, 0.3);
    border-radius: 16px;
    padding: 60px 40px;
    margin-bottom: 40px;
    text-align: center;
    transition: all 0.3s ease;
}

.upload-card:hover {
    border-color: #000000;
    background: rgba(1, 174, 239, 0.15);
}

.upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.upload-icon {
    font-size: 64px;
    color: #000000;
    margin-bottom: 20px;
}

.upload-area h3 {
    font-size: 24px;
    color: #000000;
    margin-bottom: 10px;
}

.upload-area p {
    color: rgba(0, 0, 0, 0.7);
    margin-bottom: 30px;
}

.file-info {
    background: rgba(1, 174, 239, 0.1);
    border-radius: 12px;
    padding: 30px;
    margin-top: 20px;
}

.file-details {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.file-details i {
    font-size: 24px;
    color: #000000;
}

.file-details strong {
    color: #000000;
    font-size: 16px;
}

.file-details small {
    color: rgba(0, 0, 0, 0.7);
    display: block;
}

.remove-file {
    background: #e74c3c;
    color: #000000;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    margin-left: auto;
    transition: all 0.3s ease;
}

.remove-file:hover {
    background: #c0392b;
    transform: scale(1.1);
}

.file-actions {
    text-align: center;
}

.supported-info {
    background: rgba(1, 174, 239, 0.05);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid rgba(1, 174, 239, 0.2);
}

.supported-info h4 {
    color: #000000;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.supported-info ul {
    list-style: none;
    color: rgba(0, 0, 0, 0.8);
}

.supported-info li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.supported-info li::before {
    content: "•";
    color: #000000;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Process Section */
.process-section {
    background: linear-gradient(135deg, #ffffff 0%, #9bbdc2 100%);
    padding: 80px 0;
}

.process-header {
    text-align: center;
    margin-bottom: 60px;
}

.process-header h2 {
    font-size: 32px;
    color: #000000;
    margin-bottom: 15px;
}

.process-header p {
    color: rgba(0, 0, 0, 0.8);
    font-size: 18px;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.step {
    text-align: center;
    padding: 30px;
    border-radius: 12px;
    background: rgba(1, 174, 239, 0.05);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.step.active {
    opacity: 1;
    border-color: #000000;
    background: rgba(1, 174, 239, 0.15);
}

.step-icon {
    width: 60px;
    height: 60px;
    background: rgba(1, 174, 239, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
    color: #000000;
}

.step.active .step-icon {
    background: #01AEEF;
    color: #000000;
}

.step h4 {
    color: #000000;
    margin-bottom: 10px;
}

.step p {
    color: rgba(0, 0, 0, 0.7);
    font-size: 14px;
}

.progress-bar {
    background: rgba(1, 174, 239, 0.2);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    background: #01AEEF;
    height: 100%;
    width: 0%;
    transition: width 0.5s ease;
}

.progress-text {
    text-align: center;
    color: #000000;
    font-weight: 600;
}

/* Results Section */
.results-section {
    background: linear-gradient(135deg, #ffffff 0%, #9bbdc2 100%);
    padding: 80px 0;
}

.results-header {
    text-align: center;
    margin-bottom: 60px;
}

.results-header h2 {
    font-size: 32px;
    color: #000000;
    margin-bottom: 15px;
}

.results-header p {
    color: rgba(0, 0, 0, 0.8);
    font-size: 18px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.result-card {
    background: rgba(1, 174, 239, 0.1);
    border: 1px solid rgba(1, 174, 239, 0.2);
    border-radius: 12px;
    padding: 30px;
}

.result-card h4 {
    color: #000000;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(1, 174, 239, 0.1);
}

.result-item:last-child {
    border-bottom: none;
}

.result-item span {
    color: rgba(0, 0, 0, 0.8);
}

.result-item strong {
    color: #000000;
}

.status-ok {
    color: #000000 !important;
}

.status-warning {
    color: #000000 !important;
}

.status-error {
    color: #000000 !important;
}

/* ========== Download Section ========== */
.download-section {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    border: 2px solid #2C2E43;
}

.download-section h3 {
    color: #2C2E43;
    margin-bottom: 15px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.download-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: #01AEEF;
    color: #FFFFFF;
}

.btn-primary:hover {
    background: #0094cc;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #2C2E43;
    color: #FFFFFF;
}

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

.btn-large {
    padding: 15px 30px;
    font-size: 16px;
}

/* ========== Notifications ========== */
.notification {
    position: fixed;
    top: 90px;
    right: 20px;
    background: #01AEEF;
    border-radius: 8px;
    padding: 15px 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-left: 4px solid #FFFFFF;
    z-index: 10000;
    max-width: 400px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease;
}

.notification-success {
    border-left-color: #28a745;
}

.notification-error {
    border-left-color: #dc3545;
}

.notification-warning {
    border-left-color: #ffc107;
}

.notification-info {
    border-left-color: #01AEEF;
}

.notification i {
    font-size: 20px;
    color: #FFFFFF;
}

.notification-success i {
    color: #FFFFFF;
}

.notification-error i {
    color: #FFFFFF;
}

.notification-warning i {
    color: #FFFFFF;
}

.notification span {
    flex: 1;
    color: #FFFFFF;
    font-size: 14px;
}

.notification-close {
    background: none;
    border: none;
    color: #FFFFFF;
    cursor: pointer;
    padding: 5px;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ========== Progress Improvements ========== */
.step.completed {
    background: #28a745;
    color: #FFFFFF;
}

.step.completed::after {
    content: '✓';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.progress-text {
    color: #2C2E43;
    margin-bottom: 10px;
    font-weight: 500;
}

.progress-percentage {
    color: #2C2E43;
    font-weight: bold;
    margin-left: 10px;
}

/* ========== Results Section Improvements ========== */
.analysis-item[data-analysis] {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 10px;
    background: #FFFFFF;
}

.analysis-item h4 {
    color: #2C2E43;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.analysis-details {
    color: #666;
    font-size: 14px;
}

/* ========== File Upload Improvements ========== */
.upload-area.drag-over {
    background: rgba(1, 174, 239, 0.2);
    border-color: #01AEEF;
    transform: scale(1.02);
}

/* ===== WEBGIS PAGE STYLES (Updated) ===== */

/* Container Principal */
.container {
    display: flex;
    height: 100vh;
    padding-top: 70px;
}

/* Sidebar */
.sidebar {
    width: 350px;
    background: #ffffff;
    border-right: 1px solid rgba(1, 174, 239, 0.3);
    overflow-y: auto;
    transition: transform 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.sidebar.collapsed {
    transform: translateX(-100%);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(1, 174, 239, 0.3);
    background: #01AEEF;
    color: #000000;
}

.sidebar-header h2 {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.close-btn {
    background: none;
    border: none;
    color: #000000;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Upload Section */
.upload-section {
    padding: 20px;
    border-bottom: 1px solid rgba(1, 174, 239, 0.2);
}

.upload-section h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #000000;
    display: flex;
    align-items: center;
    gap: 8px;
}

.file-input-container {
    position: relative;
    margin-bottom: 10px;
}

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

.file-input-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #01AEEF;
    color: #000000;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 2px solid transparent;
}

.file-input-label:hover {
    background: #0090cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(1, 174, 239, 0.4);
}

.supported-formats {
    font-size: 12px;
    color: rgba(0, 0, 0, 0.7);
    text-align: center;
    margin-top: 10px;
}

/* Layer Categories */
.layer-categories {
    padding: 20px;
}

.category {
    margin-bottom: 20px;
    border: 1px solid #01AEEF;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(1, 174, 239, 0.05);
}

.category-title {
    background: #01AEEF;
    padding: 15px 20px;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #000000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(1, 174, 239, 0.2);
}

.category-title:hover {
    background: #03759e;
}

.toggle-icon {
    transition: transform 0.3s ease;
    color: #01AEEF;
}

.category.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.category-content {
    max-height: 500px;
    overflow-y: auto;
    transition: max-height 0.3s ease;
}

.category.collapsed .category-content {
    max-height: 0;
    overflow: hidden;
}

.layer-item {
    padding: 10px 15px;
    border-bottom: 1px solid #01AEEF;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.layer-item:hover {
    background: rgba(2, 173, 235, 0.1);
}

.layer-item:last-child {
    border-bottom: none;
}

.layer-checkbox {
    transform: scale(1);
    cursor: pointer;
    margin-right: 8px;
}

.layer-item label {
    font-weight: 500;
    color: #000000;
    cursor: pointer;
    flex: 1;
}

/* Sidebar Toggle Button */
.sidebar-toggle {
    position: fixed;
    top: 80px;
    left: 20px;
    background: #01AEEF;
    color: #000000;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    z-index: 200;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    display: none;
}

.sidebar-toggle:hover {
    background: #0090cc;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.sidebar.collapsed + .sidebar-toggle {
    display: block;
}

/* Map Container */
.map-container {
    flex: 1;
    position: relative;
    background: #f8f9fa;
}

#map {
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Map Controls */
.map-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.control-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #2C2E43;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    color: #000000;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-color: #000000;
}

.control-btn.active {
    background: #01AEEF;
    color: #000000;
    border-color: #000000;
}

/* Status Bar */
.map-container .status-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(44, 46, 67, 0.9);
    color: #fff;
    padding: 8px 20px;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    z-index: 1100;
    backdrop-filter: blur(10px);
    pointer-events: none; /* do not block map interactions */
}

/* Lift legend above bottom bar */
.leaflet-bottom.leaflet-right .leaflet-control { margin-bottom: 60px; }

/* Notifications */
#notifications {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 2000;
}

.notification {
    background: #2C2E43;
    border-left: 4px solid #01AEEF;
    color: #ffffff;
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    max-width: 300px;
    animation: slideIn 0.3s ease;
}

.notification.success {
    border-left-color: #27ae60;
}

.notification.error {
    border-left-color: #e74c3c;
}

.notification.warning {
    border-left-color: #f39c12;
}

/* Custom Tooltip Styles */
.custom-tooltip {
    background: rgba(44, 46, 67, 0.9);
    border: none;
    border-radius: 6px;
    color: #000000;
    font-size: 12px;
    padding: 8px 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.custom-tooltip::before {
    border-top-color: rgba(44, 46, 67, 0.9);
}

/* Leaflet Popup Customization */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: #01AEEF;
    color: #000000;
}

.leaflet-popup-content {
    margin: 10px;
    font-size: 13px;
    line-height: 1.4;
    color: #000000;
}

.leaflet-popup-content h4 {
    color: #000000;
    margin: 0 0 10px 0;
    font-size: 16px;
    border-bottom: 1px solid #2C2E43;
    padding-bottom: 5px;
}

.leaflet-popup-content div {
    margin: 3px 0;
}

.leaflet-popup-content strong {
    color: #01AEEF;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-icon {
        font-size: 120px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .applications-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .header-content {
        padding: 0 15px;
        flex-direction: column;
        gap: 15px;
        height: auto;
        padding: 15px;
    }
    
    .nav-menu {
        gap: 20px;
    }
    
    .logo-container h1 {
        font-size: 20px;
    }
    
    .logo {
        height: 40px;
    }
    
    .sidebar {
        width: 100%;
        position: fixed;
        top: 70px;
        left: 0;
        height: calc(100vh - 70px);
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .sidebar-toggle {
        display: block;
    }
    
    .map-controls {
        top: 10px;
        right: 10px;
    }
    
    .control-btn {
        padding: 10px;
    }
    
    .status-bar {
        padding: 6px 15px;
        font-size: 11px;
}

    .download-buttons {
        flex-direction: column;
    }
    
    .notification {
        top: 80px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .btn-large {
        padding: 12px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .btn-large {
        padding: 14px 28px;
        font-size: 16px;
    }
}

/* --- Legenda recolhível --- */
.legend-collapsible {
  transition: all 0.3s ease;
}

.legend-header {
  transition: background 0.2s ease;
}

.legend-header:hover {
  background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%) !important;
}

.legend-toggle {
  transition: transform 0.3s ease, color 0.2s ease;
}

.legend-content {
  transition: all 0.3s ease;
}

.legend-item {
  transition: opacity 0.2s ease;
}

/* Efeitos hover para itens da legenda */
.legend-item:hover {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
}

/* Melhorar aparência no Leaflet */
.leaflet-control.legend-collapsible {
  border: none !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15) !important;
}

/* ===== FIREBASE AUTHENTICATION STYLES ===== */

/* Authentication Section */
.auth-section {
    background: linear-gradient(135deg, #ffffff 0%, #9bbdc2 100%);
    min-height: 100vh;
    padding: 80px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container {
    background: rgba(1, 174, 239, 0.1);
    border: 1px solid rgba(1, 174, 239, 0.2);
    border-radius: 16px;
    padding: 40px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.auth-container h2 {
    color: #000000;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 700;
}

.auth-form {
    text-align: left;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #000000;
    font-weight: 500;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(1, 174, 239, 0.3);
    border-radius: 8px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.9);
    color: #000000;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #01AEEF;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 3px rgba(1, 174, 239, 0.1);
}

.form-group input::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

.full-width {
    width: 100%;
    margin-bottom: 20px;
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
    color: rgba(0, 0, 0, 0.8);
    font-size: 14px;
}

.auth-switch a {
    color: #01AEEF;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-switch a:hover {
    color: #0090cc;
    text-decoration: underline;
}

/* User Info Styles */
.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #ffffff;
    font-size: 14px;
}

.user-info span {
    font-weight: 500;
}

.user-info button {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-info button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Firebase Status Indicators */
.firebase-status {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(1, 174, 239, 0.9);
    color: #ffffff;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 12px;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.firebase-status.connected {
    background: rgba(40, 167, 69, 0.9);
}

.firebase-status.error {
    background: rgba(220, 53, 69, 0.9);
}

/* Responsive Authentication */
@media (max-width: 768px) {
    .auth-container {
        margin: 20px;
        padding: 30px 20px;
    }
    
    .auth-container h2 {
        font-size: 24px;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .user-info {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }
} 

/* WebGIS - Correção para usuário logado */
.container {
    display: flex !important;
    flex-direction: row;
    height: calc(100vh - 70px);
    margin-top: 70px;
}

.map-container {
    flex: 1;
    position: relative;
    height: 100%;
    background: #f8f9fa;
}

#map {
    width: 100% !important;
    height: 100% !important;
    min-height: calc(100vh - 70px) !important;
    z-index: 1;
}

/* Melhorias responsivas para WebGIS */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        height: calc(100vh - 60px);
        margin-top: 60px;
    }
    
    .map-container {
        height: 70vh;
        order: 2;
    }
    
    #map {
        min-height: 70vh !important;
    }
    
    .sidebar {
        order: 1;
        height: 30vh;
        overflow-y: auto;
        transform: none;
        position: relative;
        width: 100%;
    }
    
    .sidebar.open {
        transform: none;
    }
    
    .sidebar-toggle {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        height: calc(100vh - 60px);
        margin-top: 60px;
    }
    
    .map-container {
        height: 60vh;
    }
    
    #map {
        min-height: 60vh !important;
    }
    
    .sidebar {
        height: 40vh;
    }
} 

.leaflet-pane.vector-gl { z-index: 650; }
/* Keep MapLibre GL canvas aligned with Leaflet transforms */

.leaflet-maplibre-gl-layer,
.leaflet-maplibre-gl-layer canvas {
  transition: none !important;
  animation: none !important;
  will-change: auto !important;  /* deixa o plugin decidir */
}

.leaflet-pane.vector-gl canvas { pointer-events: auto !important; background: transparent; }

