/* IDM MALANG Global Styles (Bootstrap Integrated) */
:root {
    --bg: #F8F9FA;
    --surface: #FFFFFF;
    --accent: #6366F1;
    --text: #1F2937;
    --text-dim: #6B7280;
    --border: #E5E7EB;
    --shadow: rgba(0, 0, 0, 0.05);
}

* {
    font-family: 'Poppins', sans-serif !important;
}

body {
    background-color: var(--bg);
    color: var(--text);
    padding-bottom: 110px;
    /* Adjusted space for floating nav */
    /* Space for floating nav */
}

/* --- Header --- */
header {
    padding: 15px 20px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px var(--shadow);
}

.logo {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--accent);
    letter-spacing: 0.5px;
}

/* --- Welcome Section --- */
.welcome {
    padding-top: 20px;
    padding-bottom: 20px;
}

/* --- Stat Card --- */
.stat-card {
    background: var(--surface);
    padding: 20px;
    border-radius: 18px;
    border: 1px solid var(--border);
    text-align: center;
    box-shadow: 0 4px 6px var(--shadow);
    height: 100%;
}

.stat-card i {
    color: var(--accent);
    font-size: 1.8rem;
}

.stat-card .val {
    font-size: 1.4rem;
    font-weight: 700;
    display: block;
    color: var(--text);
}

.stat-card .label {
    font-size: 0.72rem;
    color: var(--text-dim);
    text-transform: uppercase;
    font-weight: 600;
}

/* --- Activity List --- */
.activity-item {
    border-radius: 15px;
    border: 1px solid var(--border);
    box-shadow: 0 2px 4px var(--shadow);
    border-left: 5px solid var(--accent) !important;
}

/* --- Floating Glass Nav --- */
.floating-nav {
    position: fixed;
    bottom: 15px;
    /* Lowered from 25px */
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 94%;
    max-width: 480px;
    height: 72px;
    background: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 35px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    z-index: 9999;
}

.nav-item {
    flex: 1;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-dim) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    padding-top: 2px;
    /* Subtle push down for content */
}

.nav-item i {
    font-size: 1.5rem;
    margin-bottom: 2px;
    transition: transform 0.2s ease;
}

.nav-item span {
    font-size: 0.7rem;
    font-weight: 600;
}

.nav-item.active {
    color: var(--accent) !important;
}

.nav-item.active i {
    transform: translateY(-4px);
}

@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .floating-nav {
        bottom: calc(15px + env(safe-area-inset-bottom));
    }
}

/* --- Drawer Styles --- */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.drawer {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 85%;
    background: var(--surface);
    border-radius: 25px 25px 0 0;
    z-index: 10001;
    transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.drawer.show {
    bottom: 0;
}

.drawer-overlay.show {
    display: block;
    opacity: 1;
}

.drawer-handle {
    width: 40px;
    height: 5px;
    background: #e0e0e0;
    border-radius: 10px;
    margin: 0 auto 20px;
}

.table-custom {
    font-size: 0.8rem;
}

.table-custom th {
    background: #f8f9fa;
    position: sticky;
    top: 0;
    z-index: 1;
}