/* Custom styles to complement Bootstrap */
:root {
    --primary-green: #10b981;
    --primary-green-dark: #059669;
    --secondary-green: #34d399;
    --accent-green: #6ee7b7;
    --success-green: #22c55e;
    --dark-green: #064e3b;
    --light-green: #ecfdf5;
    --emerald-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --green-gradient: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    --forest-gradient: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navbar customizada */
.navbar-custom {
    background: var(--emerald-gradient);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Footer customizado */
.footer-custom {
    background: var(--forest-gradient);
}

/* Cards customizados */
.card-custom {
    border: none;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.card-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.shadow-custom {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Botões customizados */
.btn-custom {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-donation {
    background: var(--emerald-gradient);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-donation:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
    color: white;
}

/* Formulários customizados */
.form-control-custom {
    border-radius: 8px;
    border: 2px solid #d1fae5;
    transition: all 0.3s ease;
}

.form-control-custom:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(16, 185, 129, 0.25);
}

/* Tabela customizada */
.table-custom {
    border-radius: 8px;
    overflow: hidden;
}

.table-custom th {
    background: var(--light-green);
    border: none;
    font-weight: 600;
    color: var(--dark-green);
}

.table-custom td {
    border: none;
    vertical-align: middle;
}

/* Seções específicas */
.converter-section {
    background: linear-gradient(135deg, var(--light-green) 0%, #f0fdf4 100%);
    border: 2px solid var(--accent-green);
    border-radius: 12px;
}

.info-section {
    background: linear-gradient(135deg, var(--light-green) 0%, #f0fdf4 100%);
    border: 2px solid var(--secondary-green);
    border-radius: 8px;
}

.ad-banner {
    background: linear-gradient(135deg, var(--light-green) 0%, #f0fdf4 100%);
    border: 2px solid #a7f3d0;
    border-radius: 8px;
}

.donation-banner {
    background: var(--green-gradient);
    border: none;
    border-radius: 12px;
    color: white;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.2);
}

.donation-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1050;
    max-width: 350px;
}

/* Classes de aptidão */
.aptidao-boa {
    background-color: var(--light-green);
    border-left: 4px solid var(--success-green);
}

.aptidao-regular {
    background-color: #f0fdf4;
    border-left: 4px solid var(--primary-green);
}

.aptidao-restrita {
    background-color: #fefce8;
    border-left: 4px solid #eab308;
}

.pastagem-plantada {
    background-color: #fef3c7;
    border-left: 4px solid #f59e0b;
}

.silvicultura {
    background-color: #f3e8ff;
    border-left: 4px solid #8b5cf6;
}

.preservacao {
    background-color: #f8f9fa;
    border-left: 4px solid #6c757d;
}

.total-row {
    background: linear-gradient(135deg, var(--light-green) 0%, #d1fae5 100%);
    border-left: 4px solid var(--success-green);
    font-weight: bold;
}

/* Classes de cores */
.text-primary-green {
    color: var(--primary-green) !important;
}

.text-success-green {
    color: var(--success-green) !important;
}

.border-green {
    border-color: var(--primary-green) !important;
}

.logo-ilume {
    max-height: 40px;
    width: auto;
}

/* Loading spinner */
#loadingSpinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Responsividade */
@media (max-width: 768px) {
    .display-6 {
        font-size: 1.5rem;
    }
    
    .card-body {
        padding: 1rem !important;
    }
    
    .converter-section {
        padding: 1rem !important;
    }
    
    .donation-popup {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .donation-banner {
        padding: 15px;
        margin: 15px 0;
    }
    
    .logo-ilume {
        max-height: 30px;
    }
}

/* Estados de erro */
.is-invalid {
    border-color: #dc3545;
}

.is-valid {
    border-color: var(--success-green);
}

/* Alertas customizados */
.alert-custom {
    border-radius: 8px;
    border: none;
}

/* Tooltips */
.tooltip-inner {
    background-color: #333;
    border-radius: 6px;
}