/* VICOBA Premium Design System - UNIFIED & VISIBLE */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #4361ee;
    --primary-dark: #3a0ca3;
    --primary-light: #e0e7ff;
    --secondary: #7209b7;
    --success: #10b981;
    --success-light: #d1fae5;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --warning: #f59e0b;
    --warning-light: #fed7aa;
    --info: #3b82f6;
    --info-light: #dbeafe;
    --dark: #1f2937;
    --gray: #6b7280;
    --light: #f9fafb;
    --white: #ffffff;
    --border: #e5e7eb;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--light);
    color: var(--dark);
    line-height: 1.5;
}

/* ============ NAVBAR ============ */
.navbar {
    background: var(--dark) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 0.75rem 1rem;
}

.navbar-brand {
    color: white !important;
    font-weight: 700;
    font-size: 1.4rem;
}

.navbar .nav-link {
    color: rgba(255,255,255,0.85) !important;
    transition: all 0.2s;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: white !important;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
}

/* ============ CARDS ============ */
.card {
    background: var(--white);
    border: none;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.card-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--dark);
}

.card-header i {
    color: var(--primary);
    margin-right: 0.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* ============ STAT CARDS ============ */
.stat-card {
    border-radius: 16px;
    padding: 1.25rem;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-card .stat-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.stat-card .stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0;
}

.stat-card .stat-icon {
    font-size: 2.5rem;
    opacity: 0.3;
}

/* Stat colors */
.bg-primary-gradient {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}
.bg-success-gradient {
    background: linear-gradient(135deg, var(--success), #059669);
    color: white;
}
.bg-warning-gradient {
    background: linear-gradient(135deg, var(--warning), #d97706);
    color: white;
}
.bg-info-gradient {
    background: linear-gradient(135deg, var(--info), #2563eb);
    color: white;
}

/* ============ BUTTONS ============ */
.btn {
    border-radius: 10px;
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-success {
    background: var(--success);
    color: white;
}
.btn-success:hover {
    background: #059669;
}

.btn-warning {
    background: var(--warning);
    color: white;
}
.btn-warning:hover {
    background: #d97706;
}

.btn-danger {
    background: var(--danger);
    color: white;
}
.btn-danger:hover {
    background: #dc2626;
}

.btn-secondary {
    background: var(--gray);
    color: white;
}

.btn-outline-primary {
    border: 1px solid var(--primary);
    color: var(--primary);
    background: transparent;
}
.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
}

/* ============ TABLES ============ */
.table {
    margin-bottom: 0;
}

.table thead th {
    background: var(--light);
    color: var(--dark);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1rem;
    border-bottom: 2px solid var(--border);
}

.table tbody td {
    padding: 0.875rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border);
    color: var(--dark);
}

.table tbody tr:hover {
    background: var(--light);
}

/* ============ BADGES ============ */
.badge {
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.75rem;
}

.bg-success {
    background: var(--success) !important;
    color: white;
}

.bg-danger {
    background: var(--danger) !important;
    color: white;
}

.bg-warning {
    background: var(--warning) !important;
    color: white;
}

.bg-info {
    background: var(--info) !important;
    color: white;
}

.bg-secondary {
    background: var(--gray) !important;
    color: white;
}

.bg-primary {
    background: var(--primary) !important;
    color: white;
}

/* ============ FORMS ============ */
.form-control, .form-select {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.625rem 1rem;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
    outline: none;
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

/* ============ ALERTS ============ */
.alert {
    border-radius: 12px;
    border: none;
    padding: 1rem 1.25rem;
}

.alert-success {
    background: var(--success-light);
    color: #065f46;
    border-left: 4px solid var(--success);
}

.alert-danger {
    background: var(--danger-light);
    color: #991b1b;
    border-left: 4px solid var(--danger);
}

.alert-warning {
    background: var(--warning-light);
    color: #92400e;
    border-left: 4px solid var(--warning);
}

.alert-info {
    background: var(--info-light);
    color: #1e40af;
    border-left: 4px solid var(--info);
}

/* ============ MODALS ============ */
.modal-content {
    border-radius: 16px;
    border: none;
}

.modal-header {
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 1.5rem;
}

.modal-header .modal-title {
    font-weight: 600;
}

.modal-footer {
    border-top: 1px solid var(--border);
    padding: 1rem 1.5rem;
}

/* ============ UTILITIES ============ */
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.text-primary { color: var(--primary) !important; }
.text-muted { color: var(--gray) !important; }

.bg-light { background: var(--light) !important; }

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .card-header { padding: 0.875rem 1rem; }
    .card-body { padding: 1rem; }
    .table thead th { font-size: 0.7rem; padding: 0.75rem; }
    .table tbody td { font-size: 0.85rem; padding: 0.75rem; }
    .stat-card .stat-value { font-size: 1.3rem; }
}

/* ============ PRINT ============ */
@media print {
    .navbar, .btn, .no-print, .card-header .btn {
        display: none !important;
    }
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    body {
        background: white;
        padding: 0;
        margin: 0;
    }
}