/* --- Global Base Setup --- */
:root { 
    --p-blue: #0b5cad; 
    --p-dark: #013b75; 
    --p-light: #f2f7fc; 
    --text-main: #1c2430;
    --text-muted: #4e5b6c;
    --bg-body: #f6f8fb;
    --border-color: #e8eef3;
    --go-green: #00aa13;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-body); 
    color: var(--text-main); 
    overflow-x: hidden; 
    padding-bottom: 80px;
}

/* --- Simplified Minimalist Navbar Layout --- */
.navbar {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 60px;
}

.nav-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo img { height: 30px; width: auto; display: block; }

/* --- Interactive User Profile Avatar Dropdown Menu --- */
.user-dropdown-wrapper {
    position: relative;
    display: inline-block;
}

.btn-user-avatar {
    background-color: var(--p-light);
    color: var(--p-blue);
    border: 1px solid var(--border-color);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
}
.btn-user-avatar:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-color: #ffffff;
}

/* Dropdown Card Box Styling Overlay */
.dropdown-action-card {
    position: absolute;
    right: 0;
    top: 48px;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    width: 280px;
    padding: 16px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1000;
}

.dropdown-profile-header { text-align: left; margin-bottom: 12px; }
.dropdown-profile-header h4 { font-size: 1.05rem; font-weight: 700; color: var(--text-main); margin: 0 0 2px 0; }
.dropdown-emp-id { font-size: 0.78rem; color: var(--text-muted); }
.dropdown-emp-id b { color: var(--p-blue); font-weight: 600; }

.dropdown-profile-body {
    background-color: var(--p-light);
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-info-item { display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; }
.info-label { color: var(--text-muted); font-weight: 500; }
.info-value { color: var(--text-main); font-weight: 700; max-width: 140px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.dropdown-divider-line { height: 1px; background-color: var(--border-color); margin: 12px 0; }

.dropdown-action-btn {
    width: 100%; background: transparent; border: none; color: #f43f5e; font-size: 0.85rem; font-weight: 700;
    padding: 10px 12px; border-radius: 8px; display: flex; align-items: center; gap: 8px; cursor: pointer; transition: background-color 0.15s ease;
}
.dropdown-action-btn:hover { background-color: #fff1f2; }

/* --- Premium Philips Nuance Dynamic Header Banner --- */
.hero-banner { 
    background: linear-gradient(135deg, #002347 0%, var(--p-dark) 50%, var(--p-blue) 100%); 
    color: #ffffff;
    padding: 100px 24px;
    text-align: center;
    border-bottom: 3px solid #0062b1; /* Royal blue branding accent divider line */
    position: relative;
}

/* Subtle technological background mesh glow effect using pseudo-elements */
.hero-banner::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(11, 92, 173, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container { max-width: 800px; margin: 0 auto; position: relative; z-index: 2; }
.brand-welcome-text { text-align: center; }
.hero-banner h1 { font-size: 2.4rem; font-weight: 800; color: #ffffff; letter-spacing: -0.5px; margin-bottom: 8px; text-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.hero-banner p { font-size: 1rem; color: rgba(255, 255, 255, 0.8); margin: 0; }

.hub-integrated-desc {
    font-size: 0.95rem !important;
    line-height: 1.6;
    margin-top: 12px !important;
    color: rgba(255, 255, 255, 0.95) !important;
    max-width: 650px;
    margin-left: auto !important;
    margin-right: auto !important;
    font-weight: 400;
}

/* --- Main Layout Grid Workspace --- */
.main-content { max-width: 1200px; margin: 35px auto; padding: 0 24px; }
.content-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.section-title { font-size: 1.3rem; font-weight: 800; color: var(--p-dark); margin: 0; }
.app-count { background-color: #e2e8f0; color: #475569; padding: 4px 12px; border-radius: 20px; font-size: 0.78rem; font-weight: 700; }
.app-count.active-badge { background-color: var(--p-light); color: var(--p-blue); }

/* --- Gojek Pill Capsule Filter Search Bar --- */
.search-section-wrapper { width: 100%; margin-bottom: 30px; }
.search-box-inner { position: relative; width: 100%; }
.search-icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }

.search-input {
    width: 100%; padding: 14px 20px 14px 50px; font-size: 0.95rem; color: var(--text-main);
    background-color: #ffffff; border: 1px solid var(--border-color); border-radius: 100px;
    outline: none; box-shadow: 0 2px 6px rgba(0,0,0,0.01); transition: all 0.2s ease;
}
.search-input:focus {
    border-color: var(--p-blue);
    box-shadow: 0 4px 25px rgba(11, 92, 173, 0.06), 0 0 0 4px rgba(11, 92, 173, 0.12);
}

/* --- GOJEK LAUNCHER SYMMETRICAL LAUNCHER GRID --- */
.apps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px; }

.app-card { 
    background-color: #ffffff; border: 1px solid var(--border-color); border-radius: 18px; padding: 25px 14px; 
    display: flex; flex-direction: column; align-items: center; text-align: center; justify-content: center;
    text-decoration: none; transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s;
}
.app-card:hover { transform: translateY(-5px); box-shadow: 0 12px 30px rgba(11, 92, 173, 0.06); border-color: #cbd5e1; text-decoration: none; }

.app-icon-box { 
    width: 60px; height: 60px; background-color: var(--p-light); color: var(--p-blue); border-radius: 20px;
    display: flex; align-items: center; justify-content: center; margin-bottom: 12px; flex-shrink: 0; transition: background-color 0.2s;
}
.app-card:hover .app-icon-box { background-color: #e2eefc; }
.app-icon-box.danger-zone { background-color: #fff1f2; color: #f43f5e; }
.app-card:hover .app-icon-box.danger-zone { background-color: #ffe4e6; }
.app-icon-box.audit-zone { background-color: #f0fdf4; color: #16a34a; }
.app-card:hover .app-icon-box.audit-zone { background-color: #dcfce7; }

.app-title { font-size: 0.85rem; font-weight: 700; color: var(--text-main); margin: 0; line-height: 1.3; margin-top:5px; }

/* --- Clean Skeleton Loader --- */
.skeleton-card { pointer-events: none; background-color: #ffffff; border-color: #f1f5f9; }
.skeleton-element { background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%); background-size: 200% 100%; animation: pulseLoader 1.5s infinite linear; }
.skeleton-icon { width: 68px; height: 68px; border-radius: 20px; margin: 0 auto 12px auto; }
.skeleton-title { width: 90px; height: 14px; border-radius: 4px; margin: 0 auto; }

/* --- Welcome User Block Styling --- */
.welcome-user-block {
    margin-bottom: 25px;
    padding: 0 8px; /* Menyelaraskan dengan search bar */
    animation: fadeInAnimation 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.greeting-time {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 2px;
}

.user-first-name {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--p-dark);
    margin: 0 0 4px 0;
    letter-spacing: -0.5px;
}

.welcome-subtext {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
}

/* Animasi lambaian tangan kecil yang halus */
.wave-emoji {
    display: inline-block;
    animation: wave-animation 2.5s infinite;
    transform-origin: 70% 70%;
}

/* Pastikan class .app-card Anda memiliki posisi relatif agar badge tidak lari keluar dari kartu */
.app-card {
    position: relative; 
    /* ... (biarkan style .app-card Anda yang lain tetap ada) ... */
}

/* Style khusus untuk Badge Kategori */
.app-category-badge {
    position: absolute;
    top: 0px;           /* Jarak dari atas kartu */
    right: 0px;         /* Jarak dari kanan kartu (ubah jadi left: 10px; jika ingin di kiri) */
    background-color: #f1f5f9; /* Warna abu-abu terang */
    color: #64748b;      /* Warna teks abu-abu gelap */
    font-size: 0.55rem;  /* Ukuran font kecil agar tidak dominan */
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 8px; /* Membuat sudutnya membulat seperti pil */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;          /* Memastikan badge selalu berada di lapisan atas */
    border: 1px solid #e2e8f0;
}

/* Opsi: Jika ingin badge berubah warna saat kartu di-hover */
.app-card:hover .app-category-badge {
    background-color: #0b5cad; /* Warna biru senada dengan tombol login Anda */
    color: #ffffff;
    border-color: #0b5cad;
    transition: all 0.3s ease;
}

@keyframes wave-animation {
    0% { transform: rotate( 0.0deg) }
    10% { transform: rotate(14.0deg) }
    20% { transform: rotate(-8.0deg) }
    30% { transform: rotate(14.0deg) }
    40% { transform: rotate(-4.0deg) }
    50% { transform: rotate(10.0deg) }
    60% { transform: rotate( 0.0deg) }
    100% { transform: rotate( 0.0deg) }
}

@keyframes pulseLoader { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* --- Clean Center-Aligned Corporate Footer Style --- */
.main-footer { 
    background-color: #ffffff; border-top: 1px solid var(--border-color); padding: 20px 0; width: 100%; 
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999; /* Agar selalu berada di atas elemen lain */
    background-color: #ffffff;
}
.footer-container-inner { 
    max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; justify-content: center; align-items: center; text-align: center; 
}
.footer-copyright-block { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.copyright-text { font-size: 0.85rem; color: var(--text-muted); margin: 0; }
.copyright-text span { font-weight: 700; color: var(--p-dark); }
.site-location { font-size: 0.78rem; color: var(--text-muted); margin: 0; display: flex; align-items: center; gap: 5px; opacity: 0.85; }

/* --- Transitions --- */
.fade-in { animation: fadeInAnimation 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; }


/* Menghilangkan padding default modal-body agar iframe memenuhi modal */
#attendanceContent {
    border-radius: 0 0 0.3rem 0.3rem;
    overflow: hidden;
}

/* Memastikan spinner berada di tengah iframe container */
.iframe-container {
    background: #f8f9fa;
}

.btn-user-avatar {
    width: 42px; 
    height: 42px;
    padding: 0 !important;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #002b6b; /* Warna biru khas Philips */
    background-color: #f8fafc;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.btn-user-avatar:hover {
    box-shadow: 0 4px 12px rgba(0,43,107,0.3);
    transform: scale(1.05);
    border-color: #0b5fb4;
}
.btn-user-avatar img.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.btn-user-avatar svg {
    color: #002b6b;
}


@keyframes fadeInAnimation { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 768px) {
    .apps-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .dropdown-action-card { width: calc(100vw - 48px); right: -12px; }
    .hero-banner h1 { font-size: 1.8rem; }
    .hub-integrated-desc { font-size: 0.88rem !important; }
}
@media (max-width: 480px) { .apps-grid { grid-template-columns: repeat(2, 1fr); } }