/* Smart Web App Green & Pink Theme CSS */

:root {
    --primary-green: #8bc34a;       /* Header and top accent green */
    --primary-pink: #e91e63;        /* Sidebar active/buttons accent pink */
    --primary-pink-hover: #c2185b;  /* Pink button hover */
    --bg-page: #f4f9f1;             /* Very light pale green body background */
    --bg-sidebar: #ffffff;          /* Pure white sidebar */
    --bg-card: #ffffff;             /* Pure white card */
    --border-color: #e0ecd8;        /* Light greenish border */
    --text-primary: #37474f;        /* Dark grey text */
    --text-muted: #78909c;          /* Muted grey text */
    --font-outfit: 'Outfit', sans-serif;
    --font-inter: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-page);
    color: var(--text-primary);
    min-height: 100vh;
    margin: 0;
    font-family: var(--font-inter);
    overflow-x: hidden;
}

/* Gradients for Login Page (matching theme) */
.login-bg {
    background: radial-gradient(circle at 10% 20%, rgba(139, 195, 74, 0.15) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(233, 30, 99, 0.1) 0%, transparent 40%),
                #eef7e8;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    min-height: 100vh;
}

/* Glassmorphism Card for Login */
.login-card.glass-morphism {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 195, 74, 0.2);
    box-shadow: 0 10px 30px rgba(139, 195, 74, 0.15);
    border-radius: 20px;
    width: 100%;
    max-width: 420px;
}

/* Header / Topbar */
.topbar-green {
    background-color: var(--primary-green);
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
    padding: 0;
    height: 60px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.brand-section {
    width: 250px;
    height: 100%;
    background-color: var(--primary-green);
    display: flex;
    align-items: center;
    padding-left: 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.brand-section h5 {
    color: white;
    font-family: var(--font-outfit);
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.5px;
}

.menu-toggle-btn {
    background-color: var(--primary-pink);
    color: white;
    border: none;
    height: 60px;
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.menu-toggle-btn:hover {
    background-color: var(--primary-pink-hover);
}

.topbar-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.breadcrumb-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.88rem;
    font-weight: 500;
}

.search-bar-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    max-width: 320px;
    width: 100%;
}

.search-bar-box input {
    background: transparent;
    border: none;
    color: white;
    padding: 6px 12px;
    font-size: 0.85rem;
    width: 100%;
    outline: none;
}

.search-bar-box input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-bar-box button {
    background-color: var(--primary-pink);
    border: none;
    color: white;
    padding: 6px 14px;
    cursor: pointer;
}

.search-bar-box button:hover {
    background-color: var(--primary-pink-hover);
}

.user-profile-dropdown {
    display: flex;
    align-items: center;
    height: 60px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.05);
    padding: 0 16px;
    text-decoration: none;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.user-profile-dropdown img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
    border: 2px solid white;
}

.user-profile-dropdown .info {
    text-align: left;
    margin-right: 10px;
}

.user-profile-dropdown .info .name {
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    display: block;
    line-height: 1.2;
}

.user-profile-dropdown .info .role {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.72rem;
    display: block;
}

.profile-arrow-pink {
    background-color: var(--primary-pink);
    color: white;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 0.8rem;
}

/* Sidebar Navigation */
.sidebar-white {
    width: 250px;
    background-color: var(--bg-sidebar);
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    position: fixed;
    top: 60px;
    bottom: 0;
    left: 0;
    z-index: 999;
    padding-top: 15px;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.02);
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-item {
    margin-bottom: 2px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    border-left: 4px solid transparent;
    transition: all 0.2s ease;
}

.sidebar-link i.main-icon {
    font-size: 1.1rem;
    margin-right: 12px;
    color: var(--text-muted);
}

.sidebar-link:hover {
    background-color: rgba(139, 195, 74, 0.05);
    color: var(--primary-green);
    border-left-color: var(--primary-green);
}

.sidebar-link.active {
    background-color: #fcfcfc;
    color: var(--primary-pink);
    border-left-color: var(--primary-pink);
    font-weight: 600;
}

.sidebar-link.active i.main-icon {
    color: var(--primary-pink);
}

.sidebar-badge {
    background-color: var(--primary-pink);
    color: white;
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
}

/* Content Layout Grid */
.main-wrapper {
    margin-top: 60px;
    margin-left: 250px;
    padding: 30px;
    min-height: calc(100vh - 60px);
}

/* Dashboard White Cards */
.card-dashboard {
    background-color: var(--bg-card);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(139, 195, 74, 0.03);
    padding: 20px;
    margin-bottom: 24px;
}

.card-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.card-title-bar h5 {
    font-family: var(--font-outfit);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

/* Metrics Cards (like Total Traffic, Subscribers) */
.metrics-card-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.metrics-icon-box {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 1.6rem;
    color: white;
}

.metrics-icon-box.green-box {
    background-color: #009688; /* Teal traffic */
}

.metrics-icon-box.pink-box {
    background-color: var(--primary-pink); /* Pink subscribers */
}

.metrics-info {
    text-align: right;
}

.metrics-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.metrics-info h3 {
    font-family: var(--font-outfit);
    font-size: 1.8rem;
    font-weight: 700;
    margin: 4px 0 0 0;
    color: var(--text-primary);
}

/* Custom Table in Dashboard */
.custom-table {
    width: 100%;
    margin-bottom: 0;
    border-collapse: collapse;
}

.custom-table th {
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border-color);
    padding: 12px 16px;
    background: rgba(139, 195, 74, 0.02);
}

.custom-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.88rem;
    color: var(--text-primary);
}

.custom-table tr:hover td {
    background-color: rgba(139, 195, 74, 0.02);
}

/* Pink action buttons */
.btn-pink {
    background-color: var(--primary-pink);
    color: white !important;
    border: none;
    font-family: var(--font-outfit);
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.btn-pink:hover {
    background-color: var(--primary-pink-hover);
}

.btn-outline-green {
    background-color: transparent;
    color: var(--primary-green) !important;
    border: 1px solid var(--primary-green);
    font-family: var(--font-outfit);
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 4px;
    transition: all 0.2s;
}

.btn-outline-green:hover {
    background-color: var(--primary-green);
    color: white !important;
}

/* Badges */
.badge-shift-pagi {
    background-color: rgba(139, 195, 74, 0.15) !important;
    color: #558b2f !important;
    border: 1px solid rgba(139, 195, 74, 0.3);
}

.badge-shift-sian {
    background-color: rgba(233, 30, 99, 0.1) !important;
    color: #c2185b !important;
    border: 1px solid rgba(233, 30, 99, 0.2);
}

.badge-shift-mala {
    background-color: rgba(0, 150, 136, 0.1) !important;
    color: #00796b !important;
    border: 1px solid rgba(0, 150, 136, 0.2);
}

/* Webcam view inside dashboard */
.webcam-container {
    max-width: 480px;
    margin: 0 auto;
    border: 2px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Modal styling */
.modal-glass {
    background: white !important;
    border-radius: 12px;
}

.modal-header {
    background-color: #f9fbf7;
    border-bottom: 1px solid var(--border-color);
}

.modal-footer {
    background-color: #f9fbf7;
    border-top: 1px solid var(--border-color);
}

.form-control, .form-select {
    background-color: #fafdf8;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    border-radius: 4px;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-green) !important;
    box-shadow: 0 0 0 3px rgba(139, 195, 74, 0.15);
    background-color: white;
}

/* Responsive adjustment */
@media (max-width: 991px) {
    .sidebar-white {
        left: -250px;
        transition: left 0.3s ease;
    }
    .sidebar-white.open {
        left: 0;
    }
    .main-wrapper {
        margin-left: 0;
        padding: 20px;
    }
}

/* ==========================================================================
   HELPER STYLES FOR PEGAWAI DASHBOARD & LOGIN (GREEN & PINK COMPATIBILITY)
   ========================================================================== */

/* Glass Card styling adapted for light green/pink background */
.card-glass {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(139, 195, 74, 0.05);
    padding: 24px;
}

.card-glass h4, .card-glass h5, .card-glass h6, .card-glass span, .card-glass p, .card-glass label {
    color: var(--text-primary) !important;
}

.divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 15px 0;
}

.nav-glass {
    background-color: var(--primary-green) !important;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.text-indigo-light {
    color: var(--primary-pink) !important;
}

.text-success-light {
    color: #4caf50 !important;
}

/* Profile Avatar */
.profile-avatar-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-green);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.profile-avatar-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: #fafdf8;
    border: 4px solid var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: var(--text-muted);
}

/* Digital Clock widget in Pegawai Dashboard */
.clock-widget {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(139, 195, 74, 0.05);
}

.clock-time {
    font-family: var(--font-outfit);
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--primary-pink);
    letter-spacing: 1px;
}

.clock-date {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-top: 5px;
}

/* Webcam capture styling */
.webcam-overlay {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: rgba(233, 30, 99, 0.85);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
}

/* Thumbnail preview for log list */
.log-thumbnail {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s;
}

.log-thumbnail:hover {
    transform: scale(1.1);
}

.log-thumbnail-placeholder {
    width: 45px;
    height: 45px;
    background-color: #fafdf8;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-muted);
}

/* Login Form Customization */
.login-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-box {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(139, 195, 74, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px auto;
}

.glow-icon {
    font-size: 1.8rem;
    color: var(--primary-green);
}

.login-header {
    text-align: center;
    margin-bottom: 25px;
}

.login-header h2 {
    font-family: var(--font-outfit);
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.login-header p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 0;
}

.input-group-text {
    background-color: #fafdf8;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
}

.form-control.password-input {
    border-right: none !important;
}

.password-toggle {
    background-color: #fafdf8;
    border: 1px solid var(--border-color);
    border-left: none;
    display: flex;
    align-items: center;
    padding: 0 12px;
    cursor: pointer;
    color: var(--text-muted);
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.captcha-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.captcha-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.captcha-question {
    font-family: var(--font-outfit);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-pink);
    background-color: rgba(233, 30, 99, 0.05);
    border: 1px dashed rgba(233, 30, 99, 0.3);
    padding: 8px 16px;
    border-radius: 4px;
    user-select: none;
}

.captcha-input {
    flex: 1;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 8px;
    outline: none;
}

.captcha-refresh {
    background-color: #fafdf8;
    border: 1px solid var(--border-color);
    color: var(--primary-green);
    width: 40px;
    height: 40px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.captcha-refresh:hover {
    background-color: #eef6e9;
}

.btn-login {
    background-color: var(--primary-green);
    border: none;
    font-family: var(--font-outfit);
    font-weight: 600;
    padding: 10px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.btn-login:hover {
    background-color: #7cb342;
}

.login-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Custom Pagination Styling */
.pagination {
    margin: 0;
    gap: 4px;
    flex-wrap: wrap;
}

.pagination .page-item .page-link {
    color: var(--text-primary) !important;
    background-color: white !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 6px !important;
    padding: 6px 13px !important;
    font-weight: 500 !important;
    font-size: 0.875rem !important;
    line-height: 1.4 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important;
    transition: all 0.18s ease !important;
    min-width: 36px;
    text-align: center;
}

.pagination .page-item .page-link:hover {
    background-color: #f1f8e9 !important;
    border-color: var(--primary-green) !important;
    color: var(--primary-green) !important;
    box-shadow: 0 2px 6px rgba(139, 195, 74, 0.2) !important;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-pink) !important;
    border-color: var(--primary-pink) !important;
    color: white !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.3) !important;
}

.pagination .page-item.disabled .page-link {
    background-color: #fafafa !important;
    border-color: #e8e8e8 !important;
    color: #bdbdbd !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
}


/* =============================================
   Shift Name Badge Styles
   ============================================= */
[class^="badge-shift-"],
[class*=" badge-shift-"] {
    display: inline-block;
    font-weight: 600;
    font-size: 0.78rem !important;
    border-radius: 20px;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

/* Pagi — light green */
.badge-shift-pagi {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

/* Siang — amber/orange */
.badge-shift-sian {
    background-color: #fff8e1;
    color: #f57f17;
    border: 1px solid #ffe082;
}

/* Malam — indigo/purple */
.badge-shift-mala {
    background-color: #ede7f6;
    color: #4527a0;
    border: 1px solid #b39ddb;
}

/* Midle — teal */
.badge-shift-midle {
    background-color: #e0f7fa;
    color: #00695c;
    border: 1px solid #80cbc4;
}


/* =============================================
   Employee Status Filter Tabs
   ============================================= */
.status-filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 14px 20px 0;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 0;
}

.status-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px 8px 0 0;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    border-bottom: none;
    position: relative;
    bottom: -2px;
    transition: all 0.18s ease;
    color: var(--text-muted);
    background-color: #f4f7f0;
}

.status-tab:hover {
    background-color: #eaf3e0;
    color: var(--text-primary);
}

.status-tab .tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 700;
    background-color: rgba(0,0,0,0.08);
    color: inherit;
}

/* Active tab — overrides color per status */
.status-tab.active {
    border-color: var(--border-color);
    border-bottom-color: white;
    background-color: white;
    z-index: 1;
}

/* Tab color variants */
.tab-aktif.active            { color: #2e7d32; }
.tab-aktif.active .tab-count { background-color: #c8e6c9; color: #1b5e20; }
.tab-aktif:hover             { color: #2e7d32; }

.tab-cuti.active             { color: #f57f17; }
.tab-cuti.active .tab-count  { background-color: #ffe082; color: #e65100; }
.tab-cuti:hover              { color: #f57f17; }

.tab-keluar.active             { color: #c62828; }
.tab-keluar.active .tab-count  { background-color: #ffcdd2; color: #b71c1c; }
.tab-keluar:hover              { color: #c62828; }

.tab-luar.active             { color: #1565c0; }
.tab-luar.active .tab-count  { background-color: #bbdefb; color: #0d47a1; }
.tab-luar:hover              { color: #1565c0; }

.tab-nonaktif.active             { color: #546e7a; }
.tab-nonaktif.active .tab-count  { background-color: #cfd8dc; color: #37474f; }
.tab-nonaktif:hover              { color: #546e7a; }


/* =============================================
   Pegawai Dashboard — Green / White / Pink Theme
   ============================================= */

/* Color utilities for dashboard */
.text-green { color: #5daa3e !important; }
.text-pink  { color: #e91e63 !important; }

/* Body */
.pgw-body {
    background: #f0f6ee;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
}

/* ── Topbar ─────────────────────────────────── */
.pgw-topbar {
    background: linear-gradient(90deg, #5daa3e 0%, #7bc34a 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    height: 58px;
    box-shadow: 0 2px 12px rgba(93, 170, 62, 0.3);
}
.pgw-brand {
    display: flex;
    align-items: center;
    color: white;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
}
.pgw-topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}
.pgw-hello {
    color: rgba(255,255,255,0.88);
    font-size: 0.88rem;
}
.pgw-hello strong { color: white; }
.pgw-logout-btn {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.18);
    color: white;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 20px;
    padding: 5px 16px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.18s;
}
.pgw-logout-btn:hover {
    background: rgba(255,255,255,0.28);
    color: white;
}

/* ── Wrapper ─────────────────────────────────── */
.pgw-wrapper {
    max-width: 1200px;
    margin: 28px auto;
    padding: 0 20px 40px;
}

/* ── Cards ───────────────────────────────────── */
.pgw-card {
    background: white;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    border: 1px solid #e8f0e4;
}

.pgw-card-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #37474f;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

/* ── Profile Card ────────────────────────────── */
.pgw-profile-card {
    background: linear-gradient(160deg, #5daa3e 0%, #7bc34a 50%, #5daa3e 100%);
    border: none;
    color: white;
    padding: 28px 24px 20px;
}

.pgw-avatar-wrap { margin-bottom: 14px; }
.pgw-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.55);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.pgw-avatar-placeholder {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 2.2rem;
    color: rgba(255,255,255,0.7);
    border: 2px dashed rgba(255,255,255,0.4);
}
.pgw-name {
    font-weight: 700;
    font-size: 1.05rem;
    color: white;
    margin-bottom: 3px;
}
.pgw-position {
    color: rgba(255,255,255,0.75);
    font-size: 0.82rem;
    margin-bottom: 0;
}
.pgw-divider {
    height: 1px;
    background: rgba(255,255,255,0.25);
    margin: 14px 0;
}

/* Profile info rows */
.pgw-info-list { text-align: left; }
.pgw-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    font-size: 0.83rem;
}
.pgw-info-row:last-child { border-bottom: none; }
.pgw-info-label { color: rgba(255,255,255,0.72); }
.pgw-info-value { color: white; font-weight: 600; }

.pgw-badge-aktif {
    background: rgba(255,255,255,0.25);
    color: white;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 20px;
    padding: 2px 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* ── Shift Table ─────────────────────────────── */
.pgw-shift-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
}
.pgw-shift-table thead th {
    color: #78909c;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 8px;
    border-bottom: 2px solid #f0f0f0;
}
.pgw-shift-table tbody td {
    padding: 8px 8px;
    border-bottom: 1px solid #f5f5f5;
    color: #37474f;
}
.pgw-shift-table tbody tr:last-child td { border-bottom: none; }

/* ── Clock Card ──────────────────────────────── */
.pgw-clock-card {
    background: linear-gradient(135deg, #5daa3e 0%, #8bc34a 100%);
    border: none;
    color: white;
    padding: 28px 24px;
}
.pgw-clock-date {
    font-size: 0.72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.75);
    margin-bottom: 6px;
}
.pgw-clock-time {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 700;
    letter-spacing: 4px;
    color: white;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    text-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.pgw-clock-sub {
    color: rgba(255,255,255,0.78);
    font-size: 0.82rem;
    margin: 10px 0 0;
}

/* ── Alerts ──────────────────────────────────── */
.pgw-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 0.87rem;
}
.pgw-alert-success {
    background: #f0faf0;
    border: 1px solid #c8e6c9;
}
.pgw-alert-warning {
    background: #fff8e1;
    border: 1px solid #ffe082;
}
.pgw-alert-danger {
    background: #fff0f0;
    border: 1px solid #ffcdd2;
}

/* ── Webcam ──────────────────────────────────── */
.pgw-webcam-wrap {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #e8f0e4;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.pgw-webcam-wrap video { display: block; border-radius: 10px; }
.pgw-webcam-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(93,170,62,0.85);
    color: white;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    backdrop-filter: blur(6px);
    pointer-events: none;
}

/* ── Action Buttons ──────────────────────────── */
.pgw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    color: white !important;
}

/* Green — Absen Masuk */
.pgw-btn-green {
    background: linear-gradient(135deg, #5daa3e 0%, #8bc34a 100%);
    box-shadow: 0 4px 18px rgba(93,170,62,0.45);
}
.pgw-btn-green:hover {
    background: linear-gradient(135deg, #4c9030 0%, #7aad3a 100%);
    box-shadow: 0 8px 24px rgba(93,170,62,0.55);
    transform: translateY(-2px);
    color: white !important;
}
.pgw-btn-green:active { transform: translateY(0); }

/* Global Custom Button Green */
.btn-green {
    background: linear-gradient(135deg, #24b47e 0%, #34d399 100%) !important;
    border: none !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(36, 180, 126, 0.3) !important;
    transition: all 0.2s ease-in-out !important;
}
.btn-green:hover, .btn-green:focus {
    background: linear-gradient(135deg, #1f9a6c 0%, #059669 100%) !important;
    color: white !important;
    box-shadow: 0 6px 18px rgba(36, 180, 126, 0.45) !important;
    transform: translateY(-1px);
}
.btn-green:active {
    transform: translateY(0) !important;
}
.btn-outline-green {
    border: 2px solid #24b47e !important;
    color: #24b47e !important;
    background: transparent !important;
    transition: all 0.2s ease-in-out !important;
}
.btn-outline-green:hover, .btn-outline-green:focus {
    background: #24b47e !important;
    color: white !important;
}

@keyframes pulse-green {
    0%   { box-shadow: 0 4px 18px rgba(93,170,62,0.45), 0 0 0 0 rgba(93,170,62,0.45); }
    70%  { box-shadow: 0 4px 18px rgba(93,170,62,0.45), 0 0 0 18px rgba(93,170,62,0); }
    100% { box-shadow: 0 4px 18px rgba(93,170,62,0.45), 0 0 0 0 rgba(93,170,62,0); }
}
.pgw-btn-pulse-green { animation: pulse-green 2.2s ease-out infinite; }

/* Pink — Absen Pulang */
.pgw-btn-pink {
    background: linear-gradient(135deg, #e91e63 0%, #f06292 100%);
    box-shadow: 0 4px 18px rgba(233,30,99,0.4);
}
.pgw-btn-pink:hover {
    background: linear-gradient(135deg, #c2185b 0%, #e91e63 100%);
    box-shadow: 0 8px 24px rgba(233,30,99,0.55);
    transform: translateY(-2px);
    color: white !important;
}
.pgw-btn-pink:active { transform: translateY(0); }

@keyframes pulse-pink {
    0%   { box-shadow: 0 4px 18px rgba(233,30,99,0.4), 0 0 0 0 rgba(233,30,99,0.4); }
    70%  { box-shadow: 0 4px 18px rgba(233,30,99,0.4), 0 0 0 18px rgba(233,30,99,0); }
    100% { box-shadow: 0 4px 18px rgba(233,30,99,0.4), 0 0 0 0 rgba(233,30,99,0); }
}
.pgw-btn-pulse-pink { animation: pulse-pink 2.2s ease-out infinite; }


/* Glassmorphism Navbar */
.nav-glass {
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    box-shadow: 0 2px 24px rgba(0,0,0,0.35);
}

/* Glassmorphism Card */
.card-glass {
    background: rgba(30, 41, 59, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.06);
    color: white;
    transition: box-shadow 0.2s ease;
}
.card-glass:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.06);
}

/* Clock Widget */
.clock-card { text-align: center; }
.clock-date {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    margin-bottom: 6px;
    font-family: 'Inter', sans-serif;
}
.clock-time {
    font-size: clamp(2.8rem, 6vw, 4rem);
    font-weight: 700;
    letter-spacing: 4px;
    color: white;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    text-shadow: 0 0 40px rgba(129,140,248,0.3);
}

/* Profile Avatar */
.profile-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(129,140,248,0.45) !important;
    box-shadow: 0 0 0 4px rgba(129,140,248,0.12);
}
.profile-avatar-container { position: relative; }
.profile-avatar-placeholder {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(129,140,248,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 2.2rem;
    color: rgba(129,140,248,0.55);
    border: 2px solid rgba(129,140,248,0.2);
    box-shadow: 0 0 0 4px rgba(129,140,248,0.08);
}

/* Divider */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
    margin: 10px 0;
}

/* Alert Indigo (shift locked) */
.alert-indigo {
    background: rgba(79, 70, 229, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: 12px;
    color: white;
}

/* Alert Success override for dark bg */
.card-glass .alert-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    color: white;
}
.card-glass .alert-danger {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    color: white;
}

/* Webcam Container */
.webcam-container { position: relative; border-radius: 12px; overflow: hidden; }
.webcam-container video { border-radius: 12px; display: block; }
.webcam-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.55);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
    pointer-events: none;
    color: white;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ── Absen Buttons ─────────────────────────── */
.btn-indigo {
    background: linear-gradient(135deg, #4f46e5 0%, #818cf8 100%);
    border: none;
    color: white !important;
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.45);
    transition: all 0.22s ease;
    letter-spacing: 0.5px;
}
.btn-indigo:hover,
.btn-indigo:focus {
    background: linear-gradient(135deg, #4338ca 0%, #6366f1 100%);
    color: white !important;
    box-shadow: 0 8px 28px rgba(79, 70, 229, 0.6);
    transform: translateY(-2px);
}
.btn-indigo:active { transform: translateY(0); }

/* Pulse animation for action buttons */
@keyframes pulse-ring {
    0%   { box-shadow: 0 4px 20px rgba(79,70,229,0.45), 0 0 0 0 rgba(79,70,229,0.45); }
    70%  { box-shadow: 0 4px 20px rgba(79,70,229,0.45), 0 0 0 16px rgba(79,70,229,0); }
    100% { box-shadow: 0 4px 20px rgba(79,70,229,0.45), 0 0 0 0 rgba(79,70,229,0); }
}
@keyframes pulse-ring-red {
    0%   { box-shadow: 0 4px 20px rgba(220,53,69,0.45), 0 0 0 0 rgba(220,53,69,0.45); }
    70%  { box-shadow: 0 4px 20px rgba(220,53,69,0.45), 0 0 0 16px rgba(220,53,69,0); }
    100% { box-shadow: 0 4px 20px rgba(220,53,69,0.45), 0 0 0 0 rgba(220,53,69,0); }
}

.btn-action-pulse.btn-indigo {
    animation: pulse-ring 2.2s ease-out infinite;
}
.btn-action-pulse.btn-danger {
    animation: pulse-ring-red 2.2s ease-out infinite;
    color: white !important;
    box-shadow: 0 4px 20px rgba(220,53,69,0.45);
}

/* Extra small button size for tables */
.btn-xs {
    padding: 4px 10px !important;
    font-size: 0.72rem !important;
    font-family: var(--font-inter) !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.btn-xs i {
    font-size: 0.85rem !important;
}
