@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500;600;700&display=swap');

/* ============================================
   HR Portal - Employee Self-Service
   Mobile-First Responsive Stylesheet
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --primary: #33009A;
    --primary-light: #d260fb;
    --primary-lighter: #f3eeff;
    --primary-dark: #2f0094;
    --accent: #7C3AED;
    --accent-light: #e0f2fe;
    --success: #10b981;
    --success-light: #d1fae5;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --info: #06b6d4;
    --info-light: #cffafe;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    --body-bg: #f8f6f3;
    --card-bg: rgba(255, 255, 255, 0.85);
    --card-bg-solid: #ffffff;
    --card-radius: 16px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --card-shadow: 0 2px 12px rgba(0,0,0,0.04);
    --card-shadow-hover: 0 8px 24px rgba(51,0,154,0.08);
    --card-shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.1), 0 8px 16px rgba(0, 0, 0, 0.06);
    --top-bar-height: 60px;
    --bottom-nav-height: 68px;
    --side-menu-width: 270px;
    --font-family: 'Jost', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --gradient-primary: linear-gradient(135deg, #33009A, #7C3AED);
    --gradient-accent: linear-gradient(135deg, #7C3AED, #a855f7);
    --gradient-success: linear-gradient(135deg, #10b981, #34d399);
    --gradient-warm: linear-gradient(135deg, #f59e0b, #f97316);
    --gradient-hero: linear-gradient(135deg, #33009A 0%, #d260fb 100%);
    --glass-bg: rgba(255,255,255,0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
    --blur: 12px;
}

/* --- Base Styles --- */
[ng\:cloak], [ng-cloak], .ng-cloak {
    display: none !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-family);
    background-color: var(--body-bg);
    background-image:
        radial-gradient(ellipse at 0% 0%, rgba(51,0,154,0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 100%, rgba(210,96,251,0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 0%, rgba(251,191,36,0.04) 0%, transparent 40%);
    background-attachment: fixed;
    color: var(--gray-900);
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    letter-spacing: -0.01em;
}

/* --- Premium Glassmorphism Card Base --- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}
.glass-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
}

/* --- Premium Gradient Backgrounds --- */
.gradient-primary { background: var(--gradient-primary) !important; }
.gradient-accent { background: var(--gradient-accent) !important; }
.gradient-success { background: var(--gradient-success) !important; }
.gradient-warm { background: var(--gradient-warm) !important; }
.gradient-hero { background: var(--gradient-hero) !important; }

/* --- Animated Skeleton Loading --- */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.skeleton {
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: 8px;
}

/* --- Premium Pulse Animation --- */
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(51, 0, 154, 0.4); }
    50% { box-shadow: 0 0 0 12px rgba(51, 0, 154, 0); }
}
.pulse-glow { animation: pulse-glow 2s infinite; }

/* --- Float In Animation --- */
@keyframes floatIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.float-in { animation: floatIn 0.5s ease-out forwards; }

/* --- Counter Animation --- */
@keyframes countUp {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}
.count-up { animation: countUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }

/* --- Premium Scrollbar --- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* --- Premium Focus Styles --- */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 4px;
}

a {
    color: var(--accent);
    text-decoration: none;
    cursor: pointer;
}

a:hover {
    color: var(--primary);
    text-decoration: none;
}

/* --- Layout --- */
.app-layout {
    display: flex;
    min-height: calc(100vh - var(--top-bar-height));
    padding-top: var(--top-bar-height);
}

.main-content {
    flex: 1;
    min-width: 0;
    padding-bottom: calc(var(--bottom-nav-height) + 16px);
}

@media (min-width: 768px) {
    .main-content {
        margin-left: var(--side-menu-width);
        padding: 24px 28px;
        padding-bottom: 24px;
    }
}

/* --- Top Bar --- */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--top-bar-height);
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: var(--gray-800);
    z-index: 1030;
    box-shadow: 0 1px 8px rgba(0,0,0,0.04);
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 16px;
    max-width: 100%;
}

.top-bar-brand .brand-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1a0040;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
}

.top-bar-brand .brand-link i {
    font-size: 22px;
}

.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-icon {
    position: relative;
    background: none;
    border: none;
    color: #475569;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.25s;
}

.btn-icon:hover {
    background: rgba(51,0,154,0.06);
    color: #33009A;
}

.notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #ef5350;
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.notification-wrapper {
    position: relative;
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: -8px;
    width: 320px;
    background: var(--white);
    border-radius: var(--card-radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 1050;
    overflow: hidden;
}

@media (max-width: 767.98px) {
    .notification-dropdown {
        position: fixed;
        top: var(--top-bar-height);
        left: 8px;
        right: 8px;
        width: auto;
    }
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-900);
}

.notification-list {
    max-height: 300px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-100);
    cursor: pointer;
    transition: var(--transition);
    color: var(--gray-900);
    text-decoration: none;
}

.notification-item:hover {
    background: var(--gray-50);
    color: var(--gray-900);
    text-decoration: none;
}

.notification-item.unread {
    background: var(--accent-light);
}

.notification-icon {
    flex-shrink: 0;
    font-size: 16px;
    margin-top: 2px;
}

.notification-text {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
}

.notification-time {
    font-size: 11px;
    color: var(--gray-500);
}

.dropdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
}

/* --- Avatar --- */
.avatar-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    font-weight: 600;
    flex-shrink: 0;
}

.avatar-sm {
    width: 36px;
    height: 36px;
    font-size: 13px;
}

.avatar-md {
    width: 48px;
    height: 48px;
    font-size: 16px;
}

.avatar-lg {
    width: 64px;
    height: 64px;
    font-size: 22px;
}

.avatar-xl {
    width: 96px;
    height: 96px;
    font-size: 32px;
}

.profile-avatar-wrapper {
    cursor: pointer;
}

/* --- Side Menu (Desktop) --- */
.side-menu {
    position: fixed;
    top: var(--top-bar-height);
    left: 0;
    bottom: 0;
    width: var(--side-menu-width);
    background: #0a0020;
    border-right: none;
    display: flex;
    flex-direction: column;
    z-index: 1020;
    overflow-y: auto;
}

.side-menu-profile {
    padding: 24px 16px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.03);
}

.side-menu-profile .avatar-circle {
    margin: 0 auto 8px;
}

.side-menu-username {
    font-weight: 600;
    margin: 0;
    font-size: 15px;
    color: #fff;
}

.side-menu-role {
    color: rgba(255,255,255,0.45);
    font-size: 12px;
}

.side-menu-nav {
    flex: 1;
    padding: 8px 0;
}

.side-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: rgba(255,255,255,0.55);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s;
    border-left: 3px solid transparent;
    text-decoration: none;
}

.side-menu-item:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
    text-decoration: none;
}

.side-menu-item.active {
    background: rgba(51,0,154,0.25);
    color: #fff;
    border-left-color: #d260fb;
    font-weight: 600;
}

.side-menu-item i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.side-menu-footer {
    padding: 8px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.logout-item {
    color: #ef4444 !important;
}

.logout-item:hover {
    background: rgba(239,68,68,0.1) !important;
}

/* --- Mobile Bottom Navigation --- */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1030;
}

.bottom-nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: var(--bottom-nav-height);
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.bottom-nav-bar .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    flex: 1;
    padding: 8px 4px;
    border: none;
    background: none;
    color: var(--gray-500);
    font-size: 10px;
    cursor: pointer;
    transition: var(--transition);
    min-height: 44px;
}

.bottom-nav-bar .nav-item i {
    font-size: 20px;
}

.bottom-nav-bar .nav-item.active {
    color: var(--primary);
}

.bottom-nav-bar .nav-item.active i {
    color: var(--primary);
}

.nav-label {
    font-weight: 500;
}

/* More Menu */
.more-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1031;
}

.more-menu-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: 20px 20px 0 0;
    z-index: 1032;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    max-height: 70vh;
    overflow-y: auto;
}

.more-menu-panel.show {
    transform: translateY(0);
}

.more-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--primary);
    color: var(--white);
    border-radius: 20px 20px 0 0;
}

.more-menu-title {
    font-weight: 600;
    font-size: 16px;
}

.more-menu-body {
    padding: 8px 0;
}

.more-menu-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    color: var(--gray-800);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    border-bottom: 1px solid var(--gray-100);
}

.more-menu-item:hover {
    background: var(--gray-50);
    text-decoration: none;
    color: var(--gray-800);
}

.more-menu-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-lighter);
    color: var(--primary);
    font-size: 16px;
}

/* --- Page Container --- */
.page-container {
    padding: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .page-container {
        padding: 24px 32px;
    }
}

/* --- Page Header --- */
.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.page-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}

.page-subtitle {
    font-size: 13px;
    margin: 2px 0 0;
}

.page-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* --- Section Block --- */
.section-block {
    background: var(--card-bg);
    border-radius: var(--card-radius);
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: var(--card-shadow);
}

@media (min-width: 768px) {
    .section-block {
        padding: 20px;
    }
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0 0 12px;
}

.section-header .section-title {
    margin-bottom: 0;
}

.section-link {
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    color: var(--accent);
}

.section-link:hover {
    color: var(--primary);
}

/* --- Login Page --- */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #33009A 0%, #5A2BC4 100%);
    padding: 16px;
}

.login-container {
    width: 100%;
    max-width: 440px;
}

.login-card {
    background: var(--white);
    border-radius: 16px;
    padding: 40px 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.login-logo {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: #33009A;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 32px;
}

.login-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 4px;
}

.login-subtitle {
    color: var(--gray-500);
    margin: 0 0 24px;
    font-size: 14px;
}

.btn-microsoft {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    background: var(--white);
    color: var(--gray-800);
    border: 2px solid var(--gray-300);
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    min-height: 52px;
}

.btn-microsoft:hover {
    border-color: var(--gray-400);
    background: var(--gray-50);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.microsoft-icon {
    flex-shrink: 0;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: var(--gray-400);
    font-size: 12px;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-300);
}

.login-help-text {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.5;
}

.login-footer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-200);
}

/* Demo User Cards */
.demo-users-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.demo-user-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.demo-user-card:hover {
    border-color: var(--primary);
    background: var(--primary-lighter);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
    transform: translateY(-1px);
}

.demo-user-photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--gray-200);
}

.demo-user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.demo-user-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-900);
}

.demo-user-role {
    display: flex;
    align-items: center;
}

.role-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.role-badge-manager {
    background: #fef3c7;
    color: #b45309;
}

.role-badge-employee {
    background: #dbeafe;
    color: #1d4ed8;
}

.demo-user-dept {
    font-size: 12px;
    color: var(--gray-500);
}

/* User Photo in Dashboard */
.welcome-user-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.welcome-role-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
    vertical-align: middle;
}

.welcome-role-badge.manager {
    background: #fef3c7;
    color: #b45309;
}

.welcome-role-badge.employee {
    background: #dbeafe;
    color: #1d4ed8;
}

/* My Team Section */
.team-section {
    margin-bottom: 20px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.team-member-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    cursor: pointer;
}

.team-member-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
}

.team-member-photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.team-member-info {
    flex: 1;
    min-width: 0;
}

.team-member-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
}

.team-member-designation {
    font-size: 12px;
    color: var(--gray-500);
    margin: 0;
}

.team-member-status {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.team-member-status.online {
    background: var(--success);
}

.team-member-status.offline {
    background: var(--gray-300);
}

.team-member-status.away {
    background: var(--warning);
}

/* Pending Approvals Section */
.approval-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    margin-bottom: 12px;
    border-left: 4px solid var(--warning);
}

.approval-card .employee-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.approval-info {
    flex: 1;
    min-width: 0;
}

.approval-info .emp-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--gray-900);
}

.approval-info .approval-detail {
    font-size: 13px;
    color: var(--gray-600);
    margin: 4px 0;
}

.approval-info .approval-reason {
    font-size: 12px;
    color: var(--gray-500);
    font-style: italic;
}

.approval-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    align-items: flex-start;
}

.approval-actions .btn {
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 8px;
}

.btn-approve {
    background: var(--success);
    color: var(--white);
    border: none;
}

.btn-approve:hover {
    background: #059669;
    color: var(--white);
}

.btn-reject {
    background: var(--danger-light);
    color: var(--danger);
    border: none;
}

.btn-reject:hover {
    background: var(--danger);
    color: var(--white);
}

/* WFH Multi-Date Calendar */
.wfh-calendar {
    user-select: none;
}

.wfh-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.wfh-calendar-header h6 {
    margin: 0;
    font-weight: 600;
    font-size: 15px;
}

.wfh-calendar-header .btn {
    padding: 4px 10px;
    font-size: 13px;
}

.wfh-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.wfh-calendar-grid .day-header {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-500);
    padding: 6px 0;
    text-transform: uppercase;
}

.wfh-calendar-grid .day-cell {
    text-align: center;
    padding: 8px 4px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--gray-700);
}

.wfh-calendar-grid .day-cell:hover:not(.disabled):not(.weekend) {
    background: var(--primary-lighter);
}

.wfh-calendar-grid .day-cell.selected {
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
}

.wfh-calendar-grid .day-cell.weekend {
    color: #b0a0c8;
    background: rgba(148, 130, 180, 0.12);
    cursor: not-allowed;
    font-style: italic;
}

.wfh-calendar-grid .day-cell.disabled {
    color: #c0b4d6;
    background: rgba(200, 190, 220, 0.1);
    cursor: default;
}

.wfh-calendar-grid .day-cell.today {
    border: 2px solid var(--primary);
    font-weight: 600;
}

.selected-dates-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.date-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: var(--primary-lighter);
    color: var(--primary);
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
}

.date-chip .remove-date {
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    opacity: 0.7;
}

.date-chip .remove-date:hover {
    opacity: 1;
}

/* --- Dashboard --- */
.dashboard-page {
    padding: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .dashboard-page {
        padding: 24px 32px;
    }
}

/* Welcome Section */
.welcome-section {
    background: linear-gradient(135deg, var(--primary) 0%, #3f51b5 50%, #5c6bc0 100%);
    border-radius: var(--card-radius);
    padding: 16px 20px;
    margin-bottom: 12px;
    color: var(--white);
}

.welcome-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.welcome-greeting {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 4px;
}

.welcome-date {
    margin: 0;
    opacity: 0.85;
    font-size: 13px;
}

.welcome-avatar {
    cursor: pointer;
    flex-shrink: 0;
}

/* Quick Actions */
.quick-actions-scroll {
    overflow-x: auto;
    margin: 0 -16px;
    padding: 0 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.quick-actions-scroll::-webkit-scrollbar {
    display: none;
}

.quick-actions-row {
    display: flex;
    gap: 12px;
    padding-bottom: 4px;
    min-width: max-content;
}

.quick-action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 8px;
    min-width: 80px;
    border: none;
    background: none;
    cursor: pointer;
    transition: var(--transition);
}

.quick-action-item:hover {
    transform: translateY(-2px);
}

.quick-action-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: var(--transition);
}

.quick-action-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-700);
    text-align: center;
    white-space: nowrap;
}

/* Leave Balance Circular Progress */
.leave-balance-card {
    background: var(--card-bg);
    border-radius: var(--card-radius);
    padding: 16px 8px;
    text-align: center;
}

.leave-circle-container {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 8px;
}

.leave-circle {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.leave-circle-bg {
    fill: none;
    stroke: var(--gray-200);
    stroke-width: 6;
}

.leave-circle-progress {
    fill: none;
    stroke-width: 6;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.6s ease;
}

.leave-circle-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    line-height: 1.2;
}

.leave-remaining {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    display: block;
}

.leave-total {
    font-size: 10px;
    color: var(--gray-500);
}

.leave-type-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-600);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Upcoming Items */
.upcoming-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.upcoming-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
}

.upcoming-item:last-child {
    border-bottom: none;
}

.upcoming-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.upcoming-info {
    flex: 1;
    min-width: 0;
}

.upcoming-label {
    display: block;
    font-size: 11px;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.upcoming-info strong {
    font-size: 13px;
    color: var(--gray-800);
}

/* My Info Grid */
.my-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.my-info-item {
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-100);
}

.info-label {
    display: block;
    font-size: 11px;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.info-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-800);
}

/* Activity Feed */
.activity-feed {
    display: flex;
    flex-direction: column;
}

.activity-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    flex-shrink: 0;
    font-size: 16px;
    margin-top: 2px;
}

.activity-message {
    font-size: 13px;
    margin: 0;
    color: var(--gray-800);
    line-height: 1.4;
}

.activity-time {
    font-size: 11px;
}

/* News Feed */
.news-feed {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.news-card {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    background: var(--gray-50);
    transition: var(--transition);
}

.news-card:hover {
    background: var(--gray-100);
}

.news-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 16px;
    flex-shrink: 0;
}

.news-content {
    flex: 1;
    min-width: 0;
}

.news-title {
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 2px;
    color: var(--gray-900);
}

.news-message {
    font-size: 12px;
    color: var(--gray-600);
    margin: 0 0 4px;
    line-height: 1.4;
}

.news-time {
    font-size: 11px;
}

/* --- Status Badges --- */
.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: capitalize;
    white-space: nowrap;
}

.status-approved {
    background: var(--success-light);
    color: var(--success);
}

.status-pending {
    background: var(--warning-light);
    color: var(--warning);
}

.status-rejected {
    background: var(--danger-light);
    color: var(--danger);
}

.status-cancelled {
    background: var(--gray-100);
    color: var(--gray-600);
}

.status-completed {
    background: var(--success-light);
    color: var(--success);
}

.status-in-progress {
    background: var(--info-light);
    color: var(--info);
}

.status-draft {
    background: var(--gray-100);
    color: var(--gray-600);
}

.status-default {
    background: var(--gray-100);
    color: var(--gray-600);
}

/* --- Request Cards (Mobile) --- */
.request-card {
    background: var(--card-bg);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    margin-bottom: 12px;
    overflow: hidden;
}

.request-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-100);
}

.request-type {
    font-weight: 600;
    font-size: 14px;
    color: var(--gray-800);
}

.request-card-body {
    padding: 12px 16px;
}

.request-dates {
    font-size: 13px;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.request-dates i {
    color: var(--gray-400);
    margin-right: 6px;
}

.request-reason {
    font-size: 13px;
    color: var(--gray-600);
}

.request-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

/* --- Stat Cards --- */
.stat-card {
    background: var(--card-bg);
    border-radius: var(--card-radius);
    padding: 16px;
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-card-compact {
    background: var(--card-bg);
    border-radius: var(--card-radius);
    padding: 16px;
    box-shadow: var(--card-shadow);
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.2;
}

.stat-label {
    font-size: 11px;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Tables --- */
.table {
    font-size: 13px;
}

.table th {
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    border-bottom-width: 2px;
}

.table td {
    vertical-align: middle;
}

/* --- Document Cards --- */
.document-card {
    background: var(--card-bg);
    border-radius: var(--card-radius);
    padding: 20px 16px;
    box-shadow: var(--card-shadow);
    text-align: center;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.document-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
}

.document-icon {
    margin-bottom: 12px;
}

.document-info {
    flex: 1;
}

.document-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0 0 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.document-type-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    background: var(--primary-lighter);
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.document-meta {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.document-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
}

.document-list-icon {
    flex-shrink: 0;
    width: 40px;
    text-align: center;
}

.document-list-info {
    flex: 1;
    min-width: 0;
}

.document-list-info h6 {
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* --- Payslip Cards --- */
.payslip-card {
    background: var(--card-bg);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    margin-bottom: 12px;
    overflow: hidden;
}

.payslip-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--gray-100);
}

.payslip-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.payslip-info {
    flex: 1;
}

.payslip-card-body {
    padding: 14px 16px;
}

.payslip-amounts {
    display: flex;
    gap: 24px;
    margin-bottom: 12px;
}

.payslip-amount {
    display: flex;
    flex-direction: column;
}

.amount-label {
    font-size: 11px;
    color: var(--gray-500);
    text-transform: uppercase;
}

.amount-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-800);
}

.amount-net {
    color: var(--success);
}

.payslip-actions {
    display: flex;
    gap: 8px;
}

/* --- Review Cards --- */
.review-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--card-bg);
    border-radius: var(--card-radius);
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: var(--card-shadow);
    cursor: pointer;
    transition: var(--transition);
}

.review-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-1px);
}

.review-card-left {
    flex-shrink: 0;
}

.review-type-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.bg-primary-light {
    background: var(--primary-lighter);
    color: var(--primary);
}

.bg-info-light {
    background: var(--info-light);
    color: var(--info);
}

.review-card-content {
    flex: 1;
    min-width: 0;
}

.review-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.review-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-900);
}

.review-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.review-type-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
}

.review-stars i {
    font-size: 14px;
}

.review-card-arrow {
    flex-shrink: 0;
}

/* Star Rating */
.star-rating-container {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.star-rating {
    display: flex;
    gap: 8px;
}

.star-icon {
    cursor: pointer;
    transition: var(--transition);
}

.star-icon:hover {
    transform: scale(1.15);
}

.rating-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-500);
}

/* Probation View */
.objective-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.objective-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
}

.objective-item:last-child {
    border-bottom: none;
}

.objective-status-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.objective-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.objective-title {
    font-size: 14px;
    color: var(--gray-800);
}

.objective-status {
    font-weight: 600;
}

.review-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--gray-700);
}

.review-list {
    padding-left: 20px;
}

.review-list li {
    padding: 4px 0;
    font-size: 14px;
    color: var(--gray-700);
    line-height: 1.5;
}

.recommendation-box {
    display: flex;
    gap: 8px;
    padding: 16px;
    background: var(--success-light);
    border-radius: 8px;
    border-left: 4px solid var(--success);
}

.recommendation-box p {
    font-size: 14px;
    color: var(--gray-800);
    font-style: italic;
    line-height: 1.6;
}

/* --- Benefits --- */
.benefit-card {
    background: var(--card-bg);
    border-radius: var(--card-radius);
    padding: 20px;
    box-shadow: var(--card-shadow);
    display: flex;
    gap: 16px;
    height: 100%;
    transition: var(--transition);
}

.benefit-card:hover {
    box-shadow: var(--card-shadow-hover);
}

.benefit-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
    flex-shrink: 0;
}

.benefit-card-content {
    flex: 1;
}

.benefit-name {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 2px;
    color: var(--gray-900);
}

.benefit-provider {
    font-size: 12px;
    margin: 0 0 6px;
}

.benefit-description {
    font-size: 12px;
    color: var(--gray-600);
    margin: 0 0 8px;
    line-height: 1.4;
}

/* Category Scroll */
.category-scroll-wrapper {
    overflow-x: auto;
    margin: 0 -16px;
    padding: 0 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.category-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

.category-scroll {
    display: flex;
    gap: 8px;
    padding-bottom: 4px;
    min-width: max-content;
}

.category-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid var(--gray-300);
    border-radius: 20px;
    background: var(--white);
    color: var(--gray-700);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.category-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.category-chip.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* Discount Cards */
.discount-card {
    background: var(--card-bg);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.discount-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
}

.discount-card-header {
    padding: 20px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--white);
    min-height: 80px;
}

.discount-initial {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.discount-percentage {
    font-size: 20px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.25);
    padding: 4px 10px;
    border-radius: 8px;
}

.discount-card-body {
    padding: 14px 16px;
    flex: 1;
}

.discount-retailer {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 4px;
}

.discount-description {
    font-size: 11px;
    color: var(--gray-600);
    margin: 0 0 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.discount-type-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    background: var(--gray-100);
    color: var(--gray-600);
}

.discount-card-footer {
    padding: 0 16px 14px;
}

/* --- Holidays --- */
.upcoming-holiday-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.upcoming-holiday-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 10px;
    background: var(--primary-lighter);
}

.upcoming-holiday-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 48px;
    padding: 6px 8px;
    background: var(--primary);
    color: var(--white);
    border-radius: 8px;
}

.holiday-day-num {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

.holiday-month-abbr {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.upcoming-holiday-info {
    flex: 1;
}

.upcoming-holiday-info strong {
    display: block;
    font-size: 14px;
    color: var(--gray-900);
}

.upcoming-holiday-countdown {
    font-size: 11px;
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
}

.legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.legend-public {
    background: var(--primary);
}

.legend-company {
    background: var(--success);
}

.holiday-month-group {
    margin-bottom: 20px;
}

.holiday-month-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-800);
    padding: 10px 0;
    border-bottom: 2px solid var(--gray-200);
    margin-bottom: 4px;
}

.holiday-list {
    background: var(--card-bg);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.holiday-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-100);
    transition: var(--transition);
}

.holiday-item:last-child {
    border-bottom: none;
}

.holiday-item.holiday-past {
    opacity: 0.5;
}

.holiday-item.holiday-upcoming {
    background: var(--primary-lighter);
}

.holiday-date-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 44px;
}

.holiday-date-num {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.2;
}

.holiday-date-day {
    font-size: 10px;
    color: var(--gray-500);
    text-transform: uppercase;
}

.holiday-info-col {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.holiday-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800);
}

.holiday-type-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
}

.badge-public {
    background: var(--primary-lighter);
    color: var(--primary);
}

.badge-company {
    background: var(--success-light);
    color: var(--success);
}

.holiday-countdown-col {
    flex-shrink: 0;
}

/* --- Profile --- */
.profile-header-section {
    background: linear-gradient(135deg, var(--primary) 0%, #3f51b5 100%);
    border-radius: var(--card-radius);
    padding: 32px 20px;
    margin: 16px 16px 16px;
    text-align: center;
    color: var(--white);
}

@media (min-width: 768px) {
    .profile-header-section {
        margin: 24px 32px 16px;
    }
}

.profile-header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-photo-wrapper {
    position: relative;
    margin-bottom: 12px;
}

.profile-photo-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 14px;
    background: var(--white);
    color: var(--gray-700);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.profile-name {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 4px;
}

.profile-title {
    color: rgba(255, 255, 255, 0.8) !important;
    margin: 0 0 4px;
    font-size: 14px;
}

.profile-email {
    font-size: 13px;
    opacity: 0.85;
    margin: 0;
}

.profile-fields {
    display: flex;
    flex-direction: column;
}

.profile-field-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
}

@media (min-width: 768px) {
    .profile-field-row {
        flex-direction: row;
        align-items: center;
    }
}

.profile-field-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 160px;
    margin-bottom: 0;
}

.profile-field-value {
    font-size: 14px;
    color: var(--gray-800);
}

/* --- Forms --- */
.form-control-lg,
.form-select-lg {
    min-height: 48px;
    font-size: 15px;
    border-radius: 8px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.12);
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.form-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

@media (max-width: 767.98px) {
    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }
}

.balance-info-bar {
    padding: 12px 16px;
    background: var(--info-light);
    border-radius: 8px;
    font-size: 13px;
    color: var(--info);
}

.total-days-display {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--primary-lighter);
    border-radius: 8px;
    font-size: 14px;
}

.total-days-value {
    font-size: 24px;
    color: var(--primary);
}

/* --- Buttons --- */
.btn {
    font-weight: 600;
    font-size: 13px;
    border-radius: 8px;
    transition: var(--transition);
}

.btn-primary {
    background: #33009A;
    border-color: #33009A;
}

.btn-primary:hover {
    background: #27007A;
    border-color: #27007A;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 15px;
    min-height: 48px;
}

/* --- Nav Pills (Tabs) --- */
.nav-pills .nav-link {
    color: var(--gray-600);
    font-weight: 600;
    font-size: 13px;
    border-radius: 8px;
    padding: 10px 16px;
    transition: var(--transition);
}

.nav-pills .nav-link:hover {
    background: var(--gray-100);
    color: var(--gray-800);
}

.nav-pills .nav-link.active {
    background: var(--primary);
    color: var(--white);
}

/* --- Alerts --- */
.alert {
    border-radius: var(--card-radius);
    border: none;
    font-size: 13px;
}

/* --- Utilities --- */
.view-container {
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive Overrides --- */
@media (max-width: 767.98px) {
    .page-title {
        font-size: 20px;
    }

    .welcome-greeting {
        font-size: 20px;
    }

    .stat-value {
        font-size: 18px;
    }

    .leave-circle-container {
        width: 70px;
        height: 70px;
    }

    .leave-remaining {
        font-size: 16px;
    }

    .discount-card-header {
        min-height: 64px;
        padding: 14px 12px;
    }

    .discount-initial {
        font-size: 18px;
    }

    .discount-percentage {
        font-size: 16px;
    }

    .discount-retailer {
        font-size: 13px;
    }

    .quick-action-icon {
        width: 46px;
        height: 46px;
        font-size: 20px;
    }

    .my-info-grid {
        grid-template-columns: 1fr;
    }

    .profile-header-section {
        margin: 0;
        border-radius: 0 0 var(--card-radius) var(--card-radius);
    }

    .section-block {
        margin-left: 0;
        margin-right: 0;
    }

    /* Ensure touch targets are 44px minimum */
    .btn, .form-control, .form-select, input, select, textarea {
        min-height: 44px;
    }

    .form-check-input {
        min-height: auto;
        width: 20px;
        height: 20px;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    :root {
        --side-menu-width: 220px;
    }
}

@media (min-width: 992px) {
    .welcome-greeting {
        font-size: 26px;
    }
}

/* --- Scrollbar Styling --- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/* --- Calendar --- */
.calendar-table {
    table-layout: fixed;
}
.calendar-table th {
    background: var(--gray-50);
    font-size: 12px;
}
.calendar-cell {
    vertical-align: top;
    height: 90px;
    position: relative;
}
@media (max-width: 767.98px) {
    .calendar-cell { height: 60px; }
}
.calendar-day-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.calendar-day-num {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 2px;
}
.calendar-today {
    background: var(--primary-lighter) !important;
}
.calendar-weekend {
    background: var(--gray-50);
}
.calendar-event-badge {
    font-size: 10px;
    padding: 1px 4px;
    border-radius: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 1px;
}
.bg-pink {
    background-color: #ec4899 !important;
    color: white !important;
}

/* --- Print Styles --- */
@media print {
    .top-bar,
    .side-menu,
    .mobile-bottom-nav,
    .page-actions,
    .form-actions {
        display: none !important;
    }

    .main-content {
        margin-left: 0 !important;
    }

    body {
        background: white;
    }

    .section-block {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* PE Enhanced Theme - Employee Portal */
.dashboard-page .welcome-section {
    background: linear-gradient(135deg, #33009A 0%, #2f0094 40%, #d260fb 100%);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}
.dashboard-page .welcome-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(210,96,251,0.3), transparent);
    border-radius: 50%;
}

.section-block {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.stat-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: all 0.3s;
}
.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(51,0,154,0.08);
}

.page-title {
    font-weight: 800;
    letter-spacing: -0.5px;
}

.btn-primary, .btn-microsoft {
    background: linear-gradient(135deg, #33009A, #2f0094) !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(51,0,154,0.2);
}
.btn-primary:hover, .btn-microsoft:hover {
    box-shadow: 0 6px 20px rgba(51,0,154,0.3);
    transform: translateY(-1px);
}


/* PE SOLUTIONS PREMIUM THEME - EMPLOYEE PORTAL */

/* Page title */
.page-title { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; color: #1a0040; }

/* Section blocks */
.section-block { background: #fff; border-radius: 20px; padding: 22px; margin-bottom: 16px; border: 1px solid rgba(0,0,0,0.03); box-shadow: 0 2px 16px rgba(0,0,0,0.04); }

/* Welcome section gradient */
.welcome-section { background: linear-gradient(135deg, #1a0040 0%, #33009A 50%, #d260fb 100%) !important; border-radius: 24px !important; position: relative; overflow: hidden; box-shadow: 0 8px 32px rgba(51,0,154,0.2); }
.welcome-section::before { content: ''; position: absolute; top: -60%; right: -15%; width: 450px; height: 450px; background: radial-gradient(circle, rgba(251,191,36,0.15), transparent 60%); border-radius: 50%; pointer-events: none; }

/* Stat cards */
.stat-card { background: #fff; border-radius: 20px; border: 1px solid rgba(0,0,0,0.03); box-shadow: 0 2px 16px rgba(0,0,0,0.04); transition: all 0.35s; }
.stat-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(51,0,154,0.08); }

/* Cards */
.card { border-radius: 20px; border: 1px solid rgba(0,0,0,0.03); box-shadow: 0 2px 16px rgba(0,0,0,0.04); }

/* Status badges */
.status-badge { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 20px; font-size: 11px; font-weight: 600; }

/* Buttons */
.btn-primary { background: linear-gradient(135deg, #33009A, #2f0094) !important; border: none !important; box-shadow: 0 4px 12px rgba(51,0,154,0.2); border-radius: 12px; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(51,0,154,0.3); }

/* Form controls */
.form-control, .form-select { border-radius: 12px; border: 2px solid rgba(0,0,0,0.06); transition: all 0.3s; }
.form-control:focus, .form-select:focus { border-color: #33009A; box-shadow: 0 0 0 3px rgba(51,0,154,0.08); }

/* Top bar glassmorphism */
header, .top-bar { backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }

/* Profile header */
.profile-header-section { border-radius: 24px; overflow: hidden; }

/* Leave balance cards */
.leave-balance-card { background: #fff; border-radius: 16px; padding: 16px; border: 1px solid rgba(0,0,0,0.03); box-shadow: 0 2px 12px rgba(0,0,0,0.04); transition: all 0.3s; text-align: center; }
.leave-balance-card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(51,0,154,0.08); }

/* Approval cards */
.approval-card { border-radius: 16px; border: 1px solid rgba(0,0,0,0.04); padding: 16px; margin-bottom: 10px; transition: all 0.3s; }

/* Calendar */
.calendar-table { border-radius: 16px; overflow: hidden; }
.calendar-cell { min-height: 80px; transition: background 0.2s; }
.calendar-cell:hover { background: rgba(51,0,154,0.02); }
.calendar-today { background: rgba(51,0,154,0.04) !important; }
.calendar-event-badge { padding: 2px 6px; border-radius: 6px; font-size: 10px; margin-top: 2px; }


/* ═══════════════════════════════════════════════════════════════
   CREXTIO-INSPIRED PREMIUM LAYOUT - EMPLOYEE PORTAL
   ═══════════════════════════════════════════════════════════════ */

/* Outer page — warm gray like Crextio */
body {
    background: #c8c3bd !important;
    background-image: linear-gradient(160deg, #d4cfc9 0%, #c8c3bd 30%, #e8ddd0 100%) !important;
}

/* Main content — cream rounded container */
.main-content {
    background: linear-gradient(180deg, #faf5ee 0%, #f5f0e8 50%, #ede5d8 100%) !important;
    border-radius: 28px !important;
    margin: 8px !important;
    padding: 24px 28px !important;
    min-height: calc(100vh - 16px) !important;
    box-shadow: 0 0 40px rgba(0,0,0,0.08) !important;
}

/* Side menu — dark, rounded right edge */
.side-menu {
    background: linear-gradient(180deg, #0a0020 0%, #13003d 100%) !important;
    border-radius: 0 24px 24px 0 !important;
    margin: 8px 0 8px 0 !important;
    height: calc(100vh - 16px) !important;
    box-shadow: 0 0 30px rgba(0,0,0,0.15) !important;
    top: var(--top-bar-height) !important;
}

/* Top bar — transparent on cream */
.top-bar {
    background: transparent !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    border-bottom: 1px solid rgba(0,0,0,0.04) !important;
}
.top-bar-brand .brand-link {
    color: #0a0020 !important;
}
.btn-icon {
    color: #475569 !important;
}

/* Section blocks */
.section-block {
    background: #fff !important;
    border-radius: 20px !important;
    border: none !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05) !important;
}

/* Welcome section */
.welcome-section {
    box-shadow: 0 8px 32px rgba(51,0,154,0.15) !important;
}

/* Cards */
.card {
    border: none !important;
    border-radius: 20px !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05) !important;
}

/* Stat cards */
.stat-card {
    border: none !important;
    border-radius: 20px !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05) !important;
}

/* Leave balance cards */
.leave-balance-card {
    border: none !important;
    border-radius: 20px !important;
    box-shadow: 0 2px 16px rgba(0,0,0,0.04) !important;
}

/* Page titles */
.page-title {
    font-size: 28px !important;
    font-weight: 800 !important;
    color: #0a0020 !important;
}

/* Section titles */
.section-title {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #0a0020 !important;
}

/* Buttons */
.btn-primary, .btn-microsoft {
    background: linear-gradient(135deg, #33009A, #1a0040) !important;
    border-radius: 14px !important;
    font-weight: 700 !important;
}

/* Tables */
.table thead th {
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    color: #94a3b8 !important;
    border-bottom: 2px solid rgba(0,0,0,0.04) !important;
}
.table tbody tr:hover {
    background: rgba(251,191,36,0.04) !important;
}

/* Calendar */
.calendar-table { border: none !important; }

/* Quick actions — warm icons */
.quick-action-item {
    transition: all 0.3s;
}
.quick-action-item:hover {
    transform: translateY(-4px);
}
.quick-action-icon {
    border-radius: 16px !important;
    width: 52px !important;
    height: 52px !important;
}

/* Avatars */
.avatar-circle {
    border-radius: 50% !important;
}

/* Profile header */
.profile-header-section {
    border-radius: 24px !important;
}

/* Payslip cards */
.payslip-card {
    border-radius: 20px;
    border: none;
    box-shadow: 0 2px 16px rgba(0,0,0,0.04);
}

/* Approval cards */
.approval-card {
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04) !important;
}

/* Nav pills */
.nav-pills .nav-link.active {
    background: linear-gradient(135deg, #33009A, #1a0040) !important;
    border-radius: 12px !important;
}
.nav-pills .nav-link {
    border-radius: 12px !important;
}

/* Scrollbar */
::-webkit-scrollbar-thumb { background: #c8c3bd !important; border-radius: 4px; }


/* ═══════════════════════════════════════════════════════════════
   TOP NAVIGATION LAYOUT (No Sidebar on Desktop)
   ═══════════════════════════════════════════════════════════════ */

/* Hide side menu on desktop */
@media (min-width: 768px) {
    .side-menu { display: none !important; }
    .main-content {
        margin-left: 0 !important;
        padding: 24px 32px !important;
    }
}

/* Top bar — full width with nav links */
.top-bar {
    position: fixed !important;
    top: 0; left: 0; right: 0;
    height: 64px !important;
    background: #fff !important;
    backdrop-filter: none !important;
    border-bottom: 1px solid rgba(0,0,0,0.06) !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04) !important;
    z-index: 1030;
}

.top-bar-inner {
    max-width: 1400px;
    margin: 0 auto;
}

/* Top nav links — pill style like Crextio */
.top-nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #f1f5f9;
    border-radius: 12px;
    padding: 4px;
}
.top-nav-link {
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none;
    white-space: nowrap;
}
.top-nav-link:hover {
    color: #1a0040;
    background: rgba(255,255,255,0.6);
    text-decoration: none;
}
.top-nav-link.active {
    background: #1a0040;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ── Employee top-bar dropdown menus ─────────────────────────── */
.ee-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.04);
    min-width: 200px;
    padding: 6px;
    z-index: 10000;
    animation: eeDropIn 0.15s ease-out;
}
@keyframes eeDropIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.ee-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 7px solid #fff;
}
.ee-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    text-decoration: none;
    transition: all 0.15s;
    white-space: nowrap;
}
.ee-dropdown-item:hover {
    background: #f1f5f9;
    color: #1a0040;
    text-decoration: none;
}
.ee-dropdown-item.active {
    background: rgba(51,0,154,0.08);
    color: #33009A;
    font-weight: 600;
}

/* Fix body and main content colors — PE purple theme, NOT cream */
body {
    background: #e8e4f0 !important;
    background-image: linear-gradient(160deg, #e8e4f0 0%, #ddd8e8 30%, #eae5f2 100%) !important;
}

.main-content {
    background: linear-gradient(180deg, #f8f6fc 0%, #f3f0fa 50%, #eee9f6 100%) !important;
    border-radius: 24px !important;
    margin: 8px !important;
    margin-top: calc(64px + 8px) !important;
    min-height: calc(100vh - 80px) !important;
    box-shadow: 0 0 40px rgba(51,0,154,0.06) !important;
}

/* Section blocks — white on light purple */
.section-block {
    background: #fff !important;
    border-radius: 20px !important;
    box-shadow: 0 2px 16px rgba(51,0,154,0.04) !important;
    border: 1px solid rgba(51,0,154,0.03) !important;
}

/* Cards */
.card {
    border-radius: 20px !important;
    border: 1px solid rgba(51,0,154,0.03) !important;
    box-shadow: 0 2px 16px rgba(51,0,154,0.04) !important;
}

/* Leave balance cards */
.leave-balance-card {
    border-radius: 20px !important;
    box-shadow: 0 2px 12px rgba(51,0,154,0.04) !important;
    border: 1px solid rgba(51,0,154,0.03) !important;
}

/* Welcome section */
.welcome-section {
    border-radius: 24px !important;
}

/* Page container padding fix */
.page-container {
    padding: 0 !important;
}
.view-container {
    padding-top: 0 !important;
}

/* Scrollbar purple tint */
::-webkit-scrollbar-thumb { background: #c4b8d9 !important; }


/* Remove white inner container — transparent with PE theme */
.main-content {
    background: transparent !important;
    border-radius: 0 !important;
    margin: 0 !important;
    margin-top: 64px !important;
    box-shadow: none !important;
}

body {
    background: #f0ecf7 !important;
    background-image: 
        radial-gradient(ellipse at 10% 10%, rgba(51,0,154,0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 90%, rgba(210,96,251,0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(51,0,154,0.02) 0%, transparent 60%) !important;
    background-attachment: fixed !important;
}

/* Section blocks — glass */
.section-block {
    background: rgba(255,255,255,0.7) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255,255,255,0.5) !important;
}

/* Cards — glass */
.card {
    background: rgba(255,255,255,0.7) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255,255,255,0.5) !important;
}

/* Stat cards */
.stat-card {
    background: rgba(255,255,255,0.7) !important;
    backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255,255,255,0.5) !important;
}

/* Leave balance */
.leave-balance-card {
    background: rgba(255,255,255,0.7) !important;
    backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255,255,255,0.5) !important;
}

/* Top bar — glass */
.top-bar {
    background: rgba(255,255,255,0.7) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-bottom: 1px solid rgba(255,255,255,0.4) !important;
}

/* Top nav links background */
.top-nav-links {
    background: rgba(51,0,154,0.06) !important;
}
.top-nav-link:hover {
    background: rgba(255,255,255,0.5) !important;
}
.top-nav-link.active {
    background: #1a0040 !important;
    color: #fff !important;
}

/* Tables */
.table { background: transparent !important; }

/* Quick action icons */
.quick-action-icon {
    backdrop-filter: blur(8px);
}

/* Approval card */
.approval-card {
    background: rgba(255,255,255,0.7) !important;
    backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255,255,255,0.5) !important;
}

/* Payslip card */
.payslip-card {
    background: rgba(255,255,255,0.7) !important;
    backdrop-filter: blur(8px) !important;
}

/* Calendar */
.calendar-table { background: rgba(255,255,255,0.5) !important; border-radius: 16px !important; }


/* Purple-tinted translucent cards */
.section-block {
    background: rgba(233, 225, 248, 0.55) !important;
    backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(210, 195, 240, 0.4) !important;
    box-shadow: 0 4px 20px rgba(51,0,154,0.05), inset 0 1px 0 rgba(255,255,255,0.5) !important;
}

.card {
    background: rgba(233, 225, 248, 0.55) !important;
    backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(210, 195, 240, 0.4) !important;
    box-shadow: 0 4px 20px rgba(51,0,154,0.05), inset 0 1px 0 rgba(255,255,255,0.5) !important;
}

.stat-card {
    background: rgba(233, 225, 248, 0.55) !important;
    backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(210, 195, 240, 0.4) !important;
    padding: 12px 14px !important;
    border-radius: 14px !important;
}

.leave-balance-card {
    background: rgba(233, 225, 248, 0.55) !important;
    backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(210, 195, 240, 0.4) !important;
    padding: 12px !important;
    border-radius: 14px !important;
}
.leave-balance-card .leave-circle-container { transform: scale(0.85); margin: -4px 0; }
.leave-balance-card .leave-type-label { font-size: 11px !important; margin-top: 2px !important; }

.approval-card {
    background: rgba(233, 225, 248, 0.55) !important;
    border: 1px solid rgba(210, 195, 240, 0.4) !important;
}

.payslip-card {
    background: rgba(233, 225, 248, 0.55) !important;
    border: 1px solid rgba(210, 195, 240, 0.4) !important;
}

/* Form controls */
.form-control, .form-select {
    background: rgba(245, 240, 255, 0.5) !important;
}
.form-control:focus, .form-select:focus {
    background: rgba(255,255,255,0.9) !important;
}

/* Table header */
.table thead th {
    background: rgba(233, 225, 248, 0.3) !important;
}

/* Top nav links */
.top-nav-links {
    background: rgba(233, 225, 248, 0.5) !important;
    border: 1px solid rgba(210, 195, 240, 0.3) !important;
}

/* Calendar table */
.calendar-table {
    background: rgba(233, 225, 248, 0.35) !important;
}

/* Holiday items */
.holiday-item, .upcoming-holiday-card {
    background: rgba(245, 240, 255, 0.5) !important;
    border-radius: 12px !important;
}


/* Darker purple background — cards will contrast better */
body {
    background: #ddd5eb !important;
    background-image: 
        radial-gradient(ellipse at 10% 10%, rgba(51,0,154,0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 90%, rgba(210,96,251,0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 30%, rgba(51,0,154,0.06) 0%, transparent 60%) !important;
    background-attachment: fixed !important;
}


/* Table styling — dark purple header, tinted rows */
.table thead th {
    background: #1a0040 !important;
    color: rgba(255,255,255,0.8) !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    padding: 14px 16px !important;
    border: none !important;
}
.table thead tr:first-child th:first-child {
    border-radius: 12px 0 0 0 !important;
}
.table thead tr:first-child th:last-child {
    border-radius: 0 12px 0 0 !important;
}

.table tbody td {
    padding: 14px 16px !important;
    border-bottom: 1px solid rgba(51,0,154,0.06) !important;
    background: transparent !important;
    font-size: 13.5px !important;
}

.table tbody tr:hover {
    background: rgba(51,0,154,0.04) !important;
}

.table tbody tr:nth-child(even) {
    background: rgba(233, 225, 248, 0.25) !important;
}

.table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
}


/* Table rows — visible alternating colors */
.table tbody tr:nth-child(odd) {
    background: rgba(255,255,255,0.65) !important;
}
.table tbody tr:nth-child(even) {
    background: rgba(220, 210, 240, 0.35) !important;
}
.table tbody tr:hover {
    background: rgba(51,0,154,0.08) !important;
}


/* ═══════════════════════════════════════════════
   CALENDAR - Premium Redesign
   ═══════════════════════════════════════════════ */

.calendar-table {
    background: rgba(255,255,255,0.5) !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    border: none !important;
    border-collapse: separate !important;
    border-spacing: 4px !important;
}

/* Day header row */
.calendar-table thead th {
    background: #1a0040 !important;
    color: rgba(255,255,255,0.9) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    padding: 14px 8px !important;
    text-align: center !important;
    border: none !important;
}
.calendar-table thead th:first-child { border-radius: 14px 0 0 0 !important; }
.calendar-table thead th:last-child { border-radius: 0 14px 0 0 !important; }

/* Weekend headers */
.calendar-table thead th.text-danger {
    color: #d260fb !important;
}

/* Calendar cells */
.calendar-table td,
.calendar-cell {
    background: rgba(255,255,255,0.45) !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 8px !important;
    min-height: 100px !important;
    vertical-align: top !important;
    transition: all 0.25s !important;
}

.calendar-table td:hover,
.calendar-cell:hover {
    background: rgba(255,255,255,0.75) !important;
    box-shadow: 0 4px 16px rgba(51,0,154,0.08) !important;
}

/* Empty/other month cells */
.calendar-table td.bg-light,
.calendar-cell.other-month {
    background: rgba(233,225,248,0.2) !important;
}

/* Today */
.calendar-today,
td.calendar-today {
    background: rgba(51,0,154,0.08) !important;
    box-shadow: inset 0 0 0 2px #33009A !important;
}

/* Weekend cells */
.calendar-weekend,
td.calendar-weekend {
    background: rgba(210,96,251,0.04) !important;
}

/* Day number */
.calendar-day-num {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #1a0040 !important;
    display: inline-block;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 4px;
}

/* Today's number */
.calendar-today .calendar-day-num,
.fw-bold.text-primary {
    background: #33009A !important;
    color: #fff !important;
    border-radius: 8px !important;
}

/* Event badges */
.calendar-event-badge {
    padding: 3px 8px !important;
    border-radius: 8px !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    margin-top: 2px !important;
    display: flex !important;
    align-items: center !important;
    gap: 3px !important;
    line-height: 1.3 !important;
}

/* Holiday badge */
.calendar-event-badge.bg-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    color: #fff !important;
    border-radius: 8px !important;
}

/* Leave event */
.calendar-event-badge[ng-style] {
    border-radius: 8px !important;
    backdrop-filter: blur(4px) !important;
}

/* Month navigation */
.card-header.bg-white {
    background: transparent !important;
    border-bottom: 1px solid rgba(51,0,154,0.06) !important;
}

/* Calendar card wrapper */
.card.border-0.shadow-sm {
    background: rgba(233,225,248,0.45) !important;
    backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(210,195,240,0.4) !important;
    border-radius: 24px !important;
}


/* All stat cards — fixed equal height */
.stat-card, .stat-card-compact {
    min-height: 140px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}
.row > [class*="col"] > .stat-card,
.row > [class*="col"] > .card {
    height: 100% !important;
}

/* Leave balance cards equal */
.leave-balance-card {
    min-height: 160px !important;
}



/* Fix text-primary not getting background from btn-primary override */
.text-primary { color: #33009A !important; background: transparent !important; -webkit-background-clip: unset !important; -webkit-text-fill-color: unset !important; }
.text-success { color: #059669 !important; background: transparent !important; }
.text-warning { color: #d97706 !important; background: transparent !important; }
.text-danger { color: #dc2626 !important; background: transparent !important; }
.text-info { color: #0284c7 !important; background: transparent !important; }
.text-muted { color: #64748b !important; }


/* Fix today's date number in calendar — white text on purple circle, not solid box */
.calendar-today .calendar-day-num,
.calendar-today .fw-bold {
    background: #33009A !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    width: 30px !important;
    height: 30px !important;
    line-height: 30px !important;
    display: inline-block !important;
    text-align: center !important;
    border-radius: 50% !important;
    font-size: 14px !important;
}

/* Fix text-primary used inside stat cards — must show as colored text not filled box */
.card .text-primary,
.card .fs-3.text-primary,
.card .fs-4.text-primary,
.stat-card .text-primary {
    color: #33009A !important;
    background: none !important;
    -webkit-text-fill-color: #33009A !important;
    -webkit-background-clip: unset !important;
}

/* Fix all stat number displays */
.card .fs-3, .card .fs-4 {
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
}


/* Fix today date in calendar */
.calendar-today .calendar-day-num,
.calendar-today .fw-bold {
    background: #33009A !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    width: 30px !important;
    height: 30px !important;
    line-height: 30px !important;
    display: inline-block !important;
    text-align: center !important;
    border-radius: 50% !important;
    font-size: 14px !important;
}

/* Fix stat card text — no background fill */
.card .fs-3, .card .fs-4,
.stat-card .fs-3, .stat-card .fs-4 {
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
}


/* ═══════════════════════════════════════════════
   MOBILE RESPONSIVE FIXES
   ═══════════════════════════════════════════════ */

/* Show bottom nav on mobile */
@media (max-width: 767px) {
    .mobile-bottom-nav {
        display: block !important;
    }
    .bottom-nav-bar {
        background: rgba(255,255,255,0.95) !important;
        backdrop-filter: blur(16px) !important;
        border-top: 1px solid rgba(51,0,154,0.08) !important;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.06) !important;
        border-radius: 20px 20px 0 0 !important;
    }
    .bottom-nav-bar .nav-item.active {
        color: #33009A !important;
    }
    .bottom-nav-bar .nav-item.active i {
        color: #33009A !important;
    }

    /* Main content padding for bottom nav */
    .main-content {
        padding: 16px !important;
        padding-bottom: 90px !important;
        margin: 0 !important;
        margin-top: 60px !important;
        border-radius: 0 !important;
    }

    /* Top bar compact */
    .top-bar {
        height: 56px !important;
    }
    .top-bar-inner {
        padding: 0 12px !important;
    }

    /* Cards — less padding on mobile */
    .section-block, .card {
        padding: 16px !important;
        border-radius: 16px !important;
    }

    /* Welcome section */
    .welcome-section {
        border-radius: 16px !important;
        margin: 0 -4px !important;
    }

    /* Stat cards row */
    .row.g-3 > [class*="col-4"],
    .row.g-3 > [class*="col-6"] {
        padding-left: 4px !important;
        padding-right: 4px !important;
    }

    /* Page title smaller */
    .page-title {
        font-size: 22px !important;
    }

    /* Table responsive */
    .table-responsive {
        border-radius: 12px !important;
        overflow: hidden !important;
    }

    /* Quick action icons smaller */
    .quick-action-icon {
        width: 44px !important;
        height: 44px !important;
    }

    /* More menu overlay */
    .more-menu-overlay {
        background: rgba(10,0,32,0.5) !important;
        backdrop-filter: blur(4px) !important;
    }
    .more-menu {
        background: #fff !important;
        border-radius: 20px 20px 0 0 !important;
        box-shadow: 0 -8px 32px rgba(0,0,0,0.12) !important;
    }
}

/* Hide bottom nav on desktop */
@media (min-width: 768px) {
    .mobile-bottom-nav {
        display: none !important;
    }
}


/* Mobile grid fix — full width columns */
@media (max-width: 767px) {
    .row > .col-6, .row > .col-md-3, .row > .col-md-4,
    .row > .col-lg-6, .row > .col-lg-3 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
    .row > .col-12 { flex: 0 0 100% !important; max-width: 100% !important; }

    /* Tables — horizontal scroll */
    .table-responsive {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    .table {
        min-width: 500px !important;
    }

    /* Stat card text smaller */
    .stat-card .fs-3, .stat-card .fs-4,
    .card .fs-3, .card .fs-4 {
        font-size: 22px !important;
    }

    /* Section block overflow */
    .section-block {
        overflow-x: auto !important;
    }

    /* Approval page — stack buttons */
    .d-flex.gap-2 {
        flex-wrap: wrap !important;
    }

    /* Page container no overflow */
    .page-container, .container-fluid {
        overflow-x: hidden !important;
    }

    body {
        overflow-x: hidden !important;
    }

    .main-content {
        overflow-x: hidden !important;
    }
}


/* ============================================
   Chat Widget - Floating Chatbot
   ============================================ */

/* Floating Action Button */
.chat-widget-fab {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary, #33009A);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(51, 0, 154, 0.35);
    z-index: 9999;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-size: 24px;
}
.chat-widget-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(51, 0, 154, 0.45);
}

/* Chat Panel */
.chat-widget-panel {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 380px;
    height: 520px;
    max-height: calc(100vh - 60px);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: chatSlideUp 0.25s ease-out;
}

@keyframes chatSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Header */
.chat-widget-header {
    background: var(--primary, #33009A);
    color: #fff;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.chat-widget-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.chat-widget-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.chat-widget-title {
    font-weight: 600;
    font-size: 15px;
    line-height: 1.2;
}
.chat-widget-subtitle {
    font-size: 11px;
    opacity: 0.8;
}
.chat-widget-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.15s;
}
.chat-widget-close:hover {
    background: rgba(255,255,255,0.15);
}

/* Message Body */
.chat-widget-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--gray-50, #f9fafb);
}
.chat-widget-body::-webkit-scrollbar {
    width: 5px;
}
.chat-widget-body::-webkit-scrollbar-thumb {
    background: var(--gray-300, #d1d5db);
    border-radius: 10px;
}

/* Messages */
.chat-widget-message {
    display: flex;
    flex-direction: column;
    max-width: 85%;
}
.chat-msg-user {
    align-self: flex-end;
    align-items: flex-end;
}
.chat-msg-bot {
    align-self: flex-start;
    align-items: flex-start;
}
.chat-msg-bubble {
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 13.5px;
    line-height: 1.5;
    word-wrap: break-word;
}
.chat-msg-user .chat-msg-bubble {
    background: var(--primary, #33009A);
    color: #fff;
    border-bottom-right-radius: 4px;
}
.chat-msg-bot .chat-msg-bubble {
    background: #fff;
    color: var(--gray-600, #4b5563);
    border: 1px solid var(--gray-200, #e5e7eb);
    border-bottom-left-radius: 4px;
}
.chat-msg-time {
    font-size: 10px;
    color: var(--gray-400, #9ca3af);
    margin-top: 3px;
    padding: 0 4px;
}

/* Typing indicator */
.chat-typing {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 18px !important;
}
.typing-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gray-400, #9ca3af);
    animation: typingBounce 1.2s infinite ease-in-out;
}
.typing-dot:nth-child(2) { animation-delay: 0.15s; }
.typing-dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-6px); opacity: 1; }
}

/* Input Area */
.chat-widget-input {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border-top: 1px solid var(--gray-200, #e5e7eb);
    background: #fff;
    flex-shrink: 0;
}
.chat-widget-input input {
    flex: 1;
    border: 1px solid var(--gray-300, #d1d5db);
    border-radius: 24px;
    padding: 9px 16px;
    font-size: 13.5px;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
}
.chat-widget-input input:focus {
    border-color: var(--primary, #33009A);
    box-shadow: 0 0 0 2px rgba(51, 0, 154, 0.1);
}
.chat-widget-input button {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: var(--primary, #33009A);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    flex-shrink: 0;
    transition: background 0.15s, opacity 0.15s;
}
.chat-widget-input button:hover:not(:disabled) {
    background: var(--primary-dark, #2f0094);
}
.chat-widget-input button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Voice button */
.chat-voice-btn {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px;
    border-radius: 50% !important;
    background: #f3f4f6 !important;
    color: #33009A !important;
    border: none !important;
    cursor: pointer;
    transition: all 0.2s;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
}
.chat-voice-btn:hover {
    background: #ede9fe !important;
}
.chat-voice-btn.listening {
    background: #ef4444 !important;
    color: #fff !important;
    animation: voice-pulse 1.2s infinite;
}
@keyframes voice-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.4); }
    50% { box-shadow: 0 0 0 8px rgba(239,68,68,0); }
}

/* Speaker button on bot messages */
.chat-speak-btn {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 12px;
    padding: 0 4px;
    margin-left: 4px;
    transition: color 0.15s;
}
.chat-speak-btn:hover {
    color: #33009A;
}

/* Chat quick-link buttons */
.chat-link-btn {
    display: inline-block;
    padding: 4px 12px;
    margin: 2px 3px;
    background: linear-gradient(135deg, #33009A, #7c3aed);
    color: #fff !important;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.15s;
    white-space: nowrap;
}
.chat-link-btn:hover {
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(51,0,154,0.3);
}

/* Mobile responsive */
@media (max-width: 480px) {
    .chat-widget-panel {
        width: calc(100vw - 16px);
        height: calc(100vh - 16px);
        max-height: calc(100vh - 16px);
        bottom: 8px;
        right: 8px;
        border-radius: 12px;
    }
    .chat-widget-fab {
        bottom: 80px;
        right: 16px;
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
}
