/* Custom styles for Esparrago GGA - Tactil-friendly */

:root {
    --primary-green: #2E7D32;
    --light-green: #4CAF50;
    --dark-green: #1B5E20;
}

/* Base */
body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
}

/* Navbar */
.navbar-brand {
    font-size: 1.5rem;
}

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.card-header {
    border-radius: 12px 12px 0 0 !important;
    font-size: 1.1rem;
}

/* Tactil-friendly buttons */
.btn {
    border-radius: 10px;
    min-height: 48px;
    font-weight: 600;
}

.btn-lg {
    min-height: 60px;
    font-size: 1.2rem;
    border-radius: 12px;
}

/* Form controls - Tactil friendly */
.form-control, .form-select {
    font-size: 1.1rem;
    border-radius: 10px;
    min-height: 48px;
    padding: 0.75rem 1rem;
    border: 2px solid #dee2e6;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.25rem rgba(46, 125, 50, 0.25);
}

/* Form labels */
.form-label {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

/* Table */
.table {
    font-size: 0.95rem;
}

.table th {
    font-weight: 600;
    background-color: #f8f9fa;
}

/* Alerts */
.alert {
    border-radius: 10px;
    border: none;
}

/* Dashboard stats */
.card .display-4 {
    font-size: 2.5rem;
}

/* Touch-friendly inputs on mobile */
@media (max-width: 768px) {
    .btn {
        min-height: 56px;
        font-size: 1.1rem;
    }
    
    .form-control, .form-select {
        font-size: 18px; /* Prevents zoom on iOS */
        min-height: 56px;
    }
    
    .form-label {
        font-size: 1.2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .card .display-4 {
        font-size: 2rem;
    }
    
    /* Larger touch targets */
    .table td, .table th {
        padding: 0.75rem 0.5rem;
    }
}

/* Badge styling */
.badge {
    font-size: 0.9rem;
    padding: 0.5em 0.8em;
    border-radius: 8px;
}

/* Select styling */
select.form-select-lg {
    padding-right: 2rem;
}

/* Focus states for accessibility */
*:focus-visible {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}

/* Animation for cards */
.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

/* Prevent horizontal scroll on mobile */
html, body {
    overflow-x: hidden;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-green);
}
