/* Seven Staff - Enterprise Design Standard (SDS) v3.0 */

:root {
    --primary: #004218; /* Seven Green */
    --primary-soft: #F0F4F0;
    --bg-app: #F7F8FA;
    --surface: #FFFFFF;
    --divider: #ECECEC;
    --text-main: #1A1C1E;
    --text-muted: #6B7280;
    --text-light: #9CA3AF;

    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #3B82F6;
    --success: #10B981;

    --radius-card: 28px;
    --radius-btn: 20px;
    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.04);
    --transition: 180ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Reset */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body {
    margin: 0; padding: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-app);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
}

/* --- Layout Elements --- */
.sds-app-shell {
    max-width: 480px; /* Standard Premium Mobile Width */
    margin: 0 auto;
    background: var(--bg-app);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 0 100px rgba(0,0,0,0.05);
}

.sds-toolbar {
    height: 72px;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--divider);
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* --- Attendance Hero --- */
.attendance-hero {
    padding: 24px;
    background: var(--surface);
}

.attendance-card {
    background: var(--surface);
    border-radius: var(--radius-card);
    border: 1px solid var(--divider);
    padding: 32px;
    position: relative;
    box-shadow: var(--shadow-soft);
}

.clock-display {
    font-size: 38px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.absen-btn-container {
    display: flex;
    justify-content: center;
    margin: 24px 0;
}

.absen-btn-circle {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 15px 35px rgba(0, 66, 24, 0.15);
    background: linear-gradient(135deg, var(--primary), #057a2c);
    color: white;
}

.absen-btn-circle:active {
    transform: scale(0.92);
}

.absen-btn-circle i { font-size: 32px; }
.absen-btn-label { font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em; }

/* --- Menu Grid --- */
.quick-menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 24px;
}

.menu-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.menu-card:active { transform: scale(0.9); }

.menu-icon-box {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: var(--surface);
    border: 1px solid var(--divider);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    box-shadow: var(--shadow-soft);
    font-size: 24px;
}

.menu-label {
    font-size: 9px;
    font-weight: 800;
    color: var(--text-muted);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

/* --- Bottom Nav --- */
.bottom-nav {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 432px;
    height: 72px;
    background: var(--surface);
    border-radius: 24px;
    border: 1px solid var(--divider);
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    z-index: 2000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-light);
    transition: var(--transition);
}

.nav-item--active { color: var(--primary); }

.nav-item--center {
    width: 64px;
    height: 64px;
    background: var(--primary);
    border-radius: 50%;
    color: white;
    margin-top: -32px;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 66, 24, 0.2);
}

.nav-item i { font-size: 22px; }
.nav-item span { font-size: 8px; font-weight: 800; text-transform: uppercase; }

/* --- Animations --- */
.animate-fade { animation: fadeIn 300ms ease-out forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.animate-scale { animation: scaleIn 250ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }

/* Toast Animations */
.toast-hide { opacity: 0; transform: translateY(-20px); }
.toast-show { opacity: 1; transform: translateY(0); }

/* Custom Check for Timeline */
.mod-default-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* Hide Scrollbar */
.hide-scrollbar::-webkit-scrollbar { display: none; }
