/* Salary Management System - Custom Styles */

/* Typography */
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
.mono { font-family: 'Cascadia Code', 'Consolas', 'Courier New', monospace; }

/* Gold gradient brand */
.gold-gradient { background: linear-gradient(135deg, #d97706 0%, #b45309 100%); }

/* Card component */
.card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* Form inputs */
input, select, textarea {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #1e293b;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #d97706;
    box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.15);
}

/* Navigation */
.nav-item:hover { background: #f1f5f9; }
.nav-item.active {
    background: #fffbeb;
    border-left: 3px solid #d97706;
    color: #92400e;
}
.nav-item.active i, .nav-item.active svg { color: #d97706; }

/* Data grid table */
.data-grid { border-collapse: collapse; width: 100%; }
.data-grid th {
    background: #f8fafc;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    padding: 0.625rem 0.75rem;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
}
.data-grid td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.8125rem;
    vertical-align: middle;
}
.data-grid tbody tr:hover { background: #fefce8; }
.data-grid input {
    padding: 0.375rem 0.5rem;
    font-size: 0.8125rem;
    border-radius: 0.375rem;
    text-align: right;
    width: 100%;
}
.data-grid input:read-only { background: #f8fafc; color: #64748b; }
.data-grid input:focus { border-color: #d97706; background: #fffbeb; }

/* Table row hover */
.table-row:hover { background: #f8fafc; }

/* Print styles */
@media print {
    .no-print { display: none !important; }
    .print-area { background: white !important; color: black !important; }
    body { font-size: 11px; }
}

/* Modal backdrop */
.modal-backdrop {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

/* Scrollbar styling */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Loading spinner */
.spinner {
    border: 3px solid #e2e8f0;
    border-top: 3px solid #d97706;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}
.badge-success { background: #dcfce7; color: #166534; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-info { background: #dbeafe; color: #1e40af; }

/* Stat card */
.stat-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* Transition utilities */
.fade-in { animation: fadeIn 0.2s ease-in; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}
