/* Custom styles to complement Bootstrap */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --footer-gradient: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    --converter-gradient: linear-gradient(135deg, #f3e5f5 0%, #e1f5fe 100%);
    --info-gradient: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 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;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

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

/* Footer customizado */
.footer-custom {
    background: var(--footer-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);
}

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

.form-control-custom:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

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

.table-custom th {
    background-color: #f8f9fa;
    border: none;
    font-weight: 600;
    color: #495057;
}

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

/* Seções específicas */
.converter-section {
    background: var(--converter-gradient);
    border: 1px solid #e1bee7;
    border-radius: 12px;
}

.info-section {
    background: var(--info-gradient);
    border: 1px solid #bbdefb;
    border-radius: 8px;
}

.ad-banner {
    background: linear-gradient(135deg, #e3f2fd 0%, #e8f5e8 100%);
    border: 1px solid #dee2e6;
    border-radius: 8px;
}

/* Classes de aptidão */
.aptidao-boa {
    background-color: #e8f5e8;
    border-left: 4px solid #28a745;
}

.aptidao-regular {
    background-color: #e3f2fd;
    border-left: 4px solid #007bff;
}

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

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

.silvicultura {
    background-color: #f8d7da;
    border-left: 4px solid #6f42c1;
}

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

.total-row {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-left: 4px solid #28a745;
    font-weight: bold;
}

/* 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;
    }
}

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

.is-valid {
    border-color: #28a745;
}

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

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