/* CompassPoint Brand Style Guide Colors */
:root {
    --deep-navy: #1A2332;
    --royal-blue: #27728F;
    --crisp-white: #FFFFFF;
    --compass-orange: #FF7B02;
    --slate-grey: #5B6770;
    --greyazure: #93B8C6;
    --apricot-gold: #FAAE66;
    --light-bg: #F4F6F8;
    --card-shadow: 0 2px 12px rgba(26, 35, 50, 0.08);
    --card-shadow-hover: 0 4px 20px rgba(26, 35, 50, 0.12);
}

/* Import Poppins - CompassPoint digital font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    font-family: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    background: var(--light-bg);
    color: var(--deep-navy);
}

/* ===== NAVBAR ===== */
.navbar {
    background: var(--deep-navy) !important;
    box-shadow: 0 2px 12px rgba(26, 35, 50, 0.25);
    padding: 8px 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-brand .brand-c {
    color: var(--compass-orange);
    font-weight: 700;
}

.navbar-brand .brand-point {
    color: var(--compass-orange);
}

.navbar .nav-link {
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 16px !important;
    border-radius: 6px;
    transition: background 0.2s;
}

.navbar .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.navbar .nav-link.active {
    background: var(--royal-blue) !important;
}

/* ===== CARDS ===== */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    transition: box-shadow 0.2s;
}

.card:hover {
    box-shadow: var(--card-shadow-hover);
}

.card-header {
    border-bottom: 1px solid #e9ecef;
}

/* ===== BALANCE CARDS ===== */
.balance-card {
    border-left: 4px solid var(--royal-blue);
    border-radius: 10px;
}

.balance-card.annual {
    border-left-color: var(--royal-blue);
}

.balance-card.sick {
    border-left-color: var(--compass-orange);
}

.balance-card.unpaid {
    border-left-color: var(--slate-grey);
}

.balance-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--royal-blue);
}

.balance-card.sick .balance-number {
    color: var(--compass-orange);
}

.balance-card.unpaid .balance-number {
    color: var(--slate-grey);
}

/* ===== STATUS BADGES ===== */
.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-pending_manager {
    background: #FFF3E0;
    color: #E65100;
}

.status-pending_hr {
    background: #E0F2F8;
    color: var(--royal-blue);
}

.status-pending_approver1 {
    background: #FFF3E0;
    color: #E65100;
}

.status-pending_approver2 {
    background: #E0F2F8;
    color: var(--royal-blue);
}

.status-approved {
    background: #E8F5E9;
    color: #2E7D32;
}

.status-rejected {
    background: #FFEBEE;
    color: #C62828;
}

.status-cancelled {
    background: #ECEFF1;
    color: var(--slate-grey);
}

/* ===== BUTTONS ===== */
.btn-primary {
    background: var(--royal-blue);
    border-color: var(--royal-blue);
    border-radius: 8px;
    padding: 8px 24px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-primary:hover,
.btn-primary:focus {
    background: #1F6178;
    border-color: #1F6178;
    box-shadow: 0 2px 8px rgba(39, 114, 143, 0.3);
}

.btn-outline-primary {
    color: var(--royal-blue);
    border-color: var(--royal-blue);
}

.btn-outline-primary:hover {
    background: var(--royal-blue);
    border-color: var(--royal-blue);
}

.btn-approve {
    background: #2E7D32;
    border-color: #2E7D32;
    color: white;
    border-radius: 8px;
    font-weight: 600;
}

.btn-approve:hover {
    background: #1B5E20;
    border-color: #1B5E20;
    color: white;
}

.btn-reject {
    background: #C62828;
    border-color: #C62828;
    color: white;
    border-radius: 8px;
    font-weight: 600;
}

.btn-reject:hover {
    background: #B71C1C;
    border-color: #B71C1C;
    color: white;
}

/* ===== SIDEBAR (not used currently but kept) ===== */
.sidebar {
    min-height: calc(100vh - 56px);
    background: white;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.05);
}

.sidebar .nav-link {
    color: var(--slate-grey);
    padding: 12px 20px;
    border-radius: 8px;
    margin: 2px 8px;
    font-weight: 500;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: var(--royal-blue);
    color: white;
}

/* ===== PAGE HEADERS ===== */
.page-header {
    margin-bottom: 24px;
}

.page-header h2 {
    font-weight: 700;
    color: var(--deep-navy);
    font-size: 1.6rem;
}

/* ===== TABLES ===== */
.table th {
    font-weight: 600;
    color: var(--slate-grey);
    border-top: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.table td {
    vertical-align: middle;
}

/* ===== LOGIN PAGE ===== */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--deep-navy);
    position: relative;
    overflow: hidden;
}

/* Decorative circles inspired by brand graphic elements */
.login-container::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 40px solid rgba(255, 123, 2, 0.15);
    top: -100px;
    right: -100px;
}

.login-container::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 30px solid rgba(39, 114, 143, 0.2);
    bottom: -80px;
    left: -80px;
}

.login-card {
    width: 420px;
    padding: 44px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 1;
    background: white;
}

.login-card h2 {
    font-weight: 700;
    color: var(--deep-navy);
    margin-bottom: 4px;
    font-size: 1.5rem;
}

.login-logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--deep-navy);
    margin-bottom: 4px;
}

.login-logo .brand-c {
    color: var(--compass-orange);
}

.login-card .form-control {
    border-radius: 8px;
    padding: 10px 14px;
    border: 1.5px solid #dee2e6;
}

.login-card .form-control:focus {
    border-color: var(--royal-blue);
    box-shadow: 0 0 0 3px rgba(39, 114, 143, 0.15);
}

.login-card .input-group-text {
    background: var(--light-bg);
    border-radius: 8px 0 0 8px;
    border: 1.5px solid #dee2e6;
    border-right: none;
    color: var(--royal-blue);
}

.login-card .btn-primary {
    padding: 10px 24px;
    font-size: 1rem;
}

/* ===== NOTIFICATION BADGE ===== */
.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--compass-orange);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--slate-grey);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    color: var(--greyazure);
}

/* ===== FORM ELEMENTS ===== */
.form-control:focus,
.form-select:focus {
    border-color: var(--royal-blue);
    box-shadow: 0 0 0 3px rgba(39, 114, 143, 0.15);
}

.form-label {
    font-weight: 500;
    color: var(--deep-navy);
    font-size: 0.9rem;
}

.form-check-input:checked {
    background-color: var(--royal-blue);
    border-color: var(--royal-blue);
}

/* ===== ALERTS ===== */
.alert-warning {
    background: #FFF8E1;
    border-color: var(--apricot-gold);
    color: #7A5D00;
}

.alert-danger {
    background: #FFF0F0;
    border-color: #FFCDD2;
    color: #C62828;
}

.alert-info {
    background: #E0F2F8;
    border-color: var(--greyazure);
    color: var(--royal-blue);
}

/* ===== NAV TABS (Admin) ===== */
.nav-tabs .nav-link {
    color: var(--slate-grey);
    font-weight: 500;
    border: none;
    padding: 10px 20px;
    border-radius: 8px 8px 0 0;
}

.nav-tabs .nav-link.active {
    color: var(--royal-blue);
    background: white;
    border-bottom: 3px solid var(--compass-orange);
    font-weight: 600;
}

.nav-tabs .nav-link:hover:not(.active) {
    color: var(--deep-navy);
    border-color: transparent;
}

/* ===== BADGES ===== */
.badge.bg-danger { background: var(--compass-orange) !important; }
.badge.bg-info { background: var(--greyazure) !important; color: var(--deep-navy) !important; }
.badge.bg-warning { background: var(--apricot-gold) !important; color: var(--deep-navy) !important; }
.badge.bg-secondary { background: var(--slate-grey) !important; }
.badge.bg-success { background: #2E7D32 !important; }

/* ===== POLICY NOTICE ===== */
.policy-notice {
    background: #E0F2F8;
    border-left: 4px solid var(--royal-blue);
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
    font-size: 0.85rem;
    color: var(--deep-navy);
    margin-bottom: 16px;
}

.policy-notice i {
    color: var(--royal-blue);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .sidebar {
        min-height: auto;
    }
    .balance-number {
        font-size: 1.6rem;
    }
    .login-card {
        width: 90%;
        padding: 28px;
    }
    .page-header h2 {
        font-size: 1.3rem;
    }
}
