@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette - Indigo & Emerald Theme */
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --background-color: #f3f4f6;
    --surface-color: #ffffff;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    /* Border Radius */
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
}

/* Typography Overrides */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.025em;
}

/* Card Styles */
.card-premium {
    background: var(--surface-color);
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-premium:hover {
    box-shadow: var(--shadow-lg);
}

.login-card {
    max-width: 420px;
    margin: 80px auto;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    background: var(--surface-color);
    box-shadow: var(--shadow-lg);
}

/* Button Upgrades */
.btn {
    border-radius: var(--radius-md);
    padding: 0.625rem 1.25rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.4);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-1px);
}

.fichar-btn {
    width: 100%;
    padding: 2.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: var(--radius-lg);
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
}

.fichar-btn i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.btn-entrada {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.btn-entrada:hover {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(16, 185, 129, 0.4);
    color: white;
}

.btn-salida {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.btn-salida:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(245, 158, 11, 0.4);
    color: white;
}

/* Form Controls */
.form-control, .form-select {
    border-radius: var(--radius-md);
    border: 1px solid #e2e8f0;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-label {
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

/* Navbar */
.navbar {
    background-color: var(--surface-color) !important;
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
}

.navbar-brand {
    color: var(--primary-color) !important;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.05em;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
}

.nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 600;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Tables */
.table {
    margin-bottom: 0;
}

.table thead th {
    background-color: #f9fafb;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #e5e7eb;
    padding: 1rem;
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
    color: var(--text-primary);
    border-bottom: 1px solid #f3f4f6;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-entrada {
    background-color: #d1fae5;
    color: #065f46;
}

.badge-salida {
    background-color: #fef3c7;
    color: #92400e;
}

/* Toast & Spinner */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 5000;
}

.toast {
    background: var(--surface-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 1 !important;
}

.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Utilities */
.text-muted {
    color: #9ca3af !important;
}

.bg-gradient-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #4338ca 100%);
    color: white;
}
