/* Modern Custom Design System for Asanka Security */
:root {
    --primary-color: #3b82f6;
    --primary-dark: #1d4ed8;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --dark-bg: #0f172a;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --card-shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1e293b;
    background-color: #f8fafc;
}

/* Auth Page Layout */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    padding: 2rem 1rem;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Nav Pills Customization */
.nav-pills .nav-link {
    color: #94a3b8;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.nav-pills .nav-link:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-pills .nav-link.active {
    color: #ffffff;
    background-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Cards & Widgets */
.stat-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    border-radius: 0.85rem;
    box-shadow: var(--card-shadow);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow-hover);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Modern Spreadsheet Table Styling */
.table-spreadsheet {
    border-collapse: separate;
    border-spacing: 0;
}

.table-spreadsheet th {
    background-color: #f1f5f9;
    color: #475569;
    font-weight: 600;
    font-size: 0.825rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #e2e8f0;
}

.table-spreadsheet td {
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.9rem;
}

.shift-worked {
    background-color: #ecfdf5 !important;
}

.shift-off {
    background-color: #f8fafc !important;
    opacity: 0.7;
}

/* Summary Box Styling (Purple/Black styling reference) */
.summary-box {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    color: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 10px 20px rgba(30, 27, 75, 0.2);
}

.summary-divider {
    border-right: 1px dashed rgba(255, 255, 255, 0.2);
}

/* Officer Profile Image Thumbnails */
.officer-avatar {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
}

.doc-preview-img {
    max-height: 160px;
    object-fit: contain;
    border-radius: 0.5rem;
    border: 1px solid #cbd5e1;
    background-color: #f8fafc;
}

/* Badge Styles */
.badge-paid {
    background-color: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.badge-draft {
    background-color: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
}

/* Utility Classes */
.fs-7 {
    font-size: 0.85rem;
}

.text-xs {
    font-size: 0.75rem;
}

/* Print CSS for Payslips */
@media print {
    body {
        background-color: #ffffff !important;
        color: #000000 !important;
    }
    
    header, footer, .btn-print, .nav-pills, .navbar, .no-print {
        display: none !important;
    }

    .main-content {
        padding: 0 !important;
    }

    .card {
        border: none !important;
        box-shadow: none !important;
    }

    .payslip-container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .table-bordered th, .table-bordered td {
        border: 1px solid #000000 !important;
    }
}
