:root {
    --primary-color: #2563eb;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --border-radius: 16px;
    --card-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f1f5f9;
    color: #334155;
    padding-bottom: 70px;
}

/* Navbar Estilo App */
.navbar {
    background-color: var(--dark-color);
    padding: 0.8rem 1rem;
    box-shadow: 0 2px 15px rgba(0,0,0,0.2);
}

.navbar-brand {
    font-weight: 800;
    letter-spacing: -0.5px;
    font-size: 1.1rem;
    color: #fff !important;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 10px;
    transition: all 0.2s;
    color: rgba(255,255,255,0.7) !important;
}

.nav-link:hover {
    color: #fff !important;
    background: rgba(255,255,255,0.05);
}

.nav-link.active {
    color: #fff !important;
    background: rgba(37, 99, 235, 0.2) !important;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.4);
}

/* Cards Estilo App */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
}

/* Botones Modernos */
.btn {
    border-radius: 12px;
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    transition: all 0.2s;
}

/* Modales Estilo App */
.modal-content {
    border-radius: 24px !important;
    border: none !important;
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25) !important;
}

.modal-header {
    border-bottom: none !important;
    padding: 1.5rem 1.5rem 0.5rem !important;
}

.modal-body {
    padding: 1.5rem !important;
}

/* Inputs Estilo App */
.form-control, .form-select {
    border-radius: 12px;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    font-size: 0.95rem;
}

.form-control:focus {
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    border-color: var(--primary-color);
}

/* Tablas Modernas */
.table thead th {
    border: none;
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    padding: 1.2rem 1rem;
}

.table tbody tr {
    background: white;
    transition: transform 0.15s;
}

.table tbody tr:hover {
    transform: scale(1.005);
    background-color: #f8fafc !important;
}

/* Auth Pages */
.auth-bg {
    background: #0f172a;
    background-image: 
        radial-gradient(at 0% 0%, rgba(37, 99, 235, 0.25) 0, transparent 50%), 
        radial-gradient(at 100% 100%, rgba(16, 185, 129, 0.15) 0, transparent 50%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-card {
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: white;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
