/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #f8f9fb;
    color: #1a1a1a;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* ============================================= */
/* NAVBAR GLASSMORPHISM                          */
/* ============================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
    padding: 0.65rem 2rem;
}

.navbar-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand i {
    color: #4f46e5;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.navbar-links a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
}

.navbar-links a:hover {
    background: rgba(79, 70, 229, 0.1);
    color: #4f46e5;
}

.navbar-links .btn-login,
.navbar-links .btn-register {
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-links .btn-login {
    background: transparent;
    border: 2px solid #e9ecef;
    color: #1a1a1a;
}

.navbar-links .btn-login:hover {
    border-color: #4f46e5;
    color: #4f46e5;
    background: transparent;
}

.navbar-links .btn-register {
    background: #1a1a1a;
    color: white;
}

.navbar-links .btn-register:hover {
    background: #2d2d2d;
    transform: translateY(-1px);
}

.notification-badge {
    position: relative;
}

.notification-count {
    position: absolute;
    top: -6px;
    right: -10px;
    background: #dc2626;
    color: white;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0 3px;
    line-height: 1;
    transition: all 0.3s ease;
}

@keyframes badgePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

.notification-count.pulse {
    animation: badgePulse 0.4s ease;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #1a1a1a;
    padding: 0.5rem;
    border-radius: 12px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.user-menu:hover {
    background: rgba(0, 0, 0, 0.05);
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* ============================================= */
/* CURRENT TIME                                  */
/* ============================================= */
.current-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    background: rgba(79, 70, 229, 0.05);
    border-radius: 10px;
    font-size: 0.8rem;
    color: #6c757d;
    border: 1px solid rgba(79, 70, 229, 0.08);
}

.current-time .date {
    font-weight: 500;
    color: #1a1a1a;
    white-space: nowrap;
}

.current-time .time {
    font-weight: 700;
    color: #4f46e5;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.current-time .divider {
    width: 1.5px;
    height: 18px;
    background: linear-gradient(to bottom, transparent, #4f46e5, transparent);
    margin: 0 0.25rem;
    opacity: 0.3;
}

/* ============================================= */
/* HAMBURGER MENU                                */
/* ============================================= */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #1a1a1a;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================= */
/* MOBILE MENU                                   */
/* ============================================= */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    padding: 5rem 2rem 2rem;
    overflow-y: auto;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu-links {
    list-style: none;
}

.mobile-menu-links li {
    margin-bottom: 0.5rem;
}

.mobile-menu-links a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.mobile-menu-links a:hover {
    background: #f8f9fb;
}

.mobile-menu-links a i {
    width: 24px;
    text-align: center;
    font-size: 1.2rem;
    color: #4f46e5;
}

.mobile-menu-divider {
    border-top: 1px solid #e9ecef;
    margin: 1rem 0;
}

/* ============================================= */
/* DROPDOWN MENU                                 */
/* ============================================= */
.dropdown-menu {
    animation: fadeIn 0.2s ease;
}

.dropdown-menu a:hover {
    background: #f8f9fb;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================= */
/* SIDEBAR                                       */
/* ============================================= */
.sidebar {
    position: fixed;
    top: 65px;
    left: 0;
    bottom: 0;
    width: 260px;
    background: white;
    border-right: 1px solid #f1f3f5;
    padding: 2rem 1rem;
    overflow-y: auto;
    z-index: 100;
    transition: transform 0.3s ease;
}

.sidebar-nav {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 0.5rem;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #6c757d;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: #f8f9fb;
    color: #1a1a1a;
}

.sidebar-nav a i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

/* ============================================= */
/* MAIN CONTENT                                  */
/* ============================================= */
.main-content {
    margin-left: 260px;
    margin-top: 65px;
    padding: 2rem;
    min-height: calc(100vh - 65px);
    transition: margin-left 0.3s ease;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

/* ============================================= */
/* CARDS                                         */
/* ============================================= */
.card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid #f1f3f5;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
}

/* ============================================= */
/* BUTTONS                                       */
/* ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.5rem;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: #1a1a1a;
    color: white;
}

.btn-primary:hover {
    background: #2d2d2d;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #f1f3f5;
    color: #1a1a1a;
}

.btn-secondary:hover {
    background: #e9ecef;
}

.btn-success {
    background: #059669;
    color: white;
}

.btn-success:hover {
    background: #047857;
}

.btn-danger {
    background: #dc2626;
    color: white;
}

.btn-danger:hover {
    background: #b91c1c;
}

.btn-warning {
    background: #f59e0b;
    color: white;
}

.btn-warning:hover {
    background: #d97706;
}

.btn-sm {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
}

/* ============================================= */
/* FORMS                                         */
/* ============================================= */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 500;
    font-size: 0.9rem;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

/* ============================================= */
/* BADGES                                        */
/* ============================================= */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.badge-info {
    background: #dbeafe;
    color: #1e40af;
}

/* ============================================= */
/* PROGRESS BAR                                  */
/* ============================================= */
.progress-bar {
    width: 100%;
    height: 8px;
    background: #f1f3f5;
    border-radius: 999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4f46e5, #7c3aed);
    border-radius: 999px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================= */
/* GRID                                          */
/* ============================================= */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* ============================================= */
/* HERO SECTION                                  */
/* ============================================= */
.hero-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fb 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.hero-content {
    max-width: 700px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #6c757d;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================= */
/* STAT CARDS                                    */
/* ============================================= */
.stat-card {
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    word-break: break-all;
}

.stat-label {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
}

/* ============================================= */
/* TABLE                                         */
/* ============================================= */
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.table th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #6c757d;
    border-bottom: 2px solid #f1f3f5;
    white-space: nowrap;
}

.table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f1f3f5;
    font-size: 0.9rem;
}

.table tr:hover {
    background: #f8f9fb;
}

/* ============================================= */
/* MODAL                                         */
/* ============================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 1rem;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* ============================================= */
/* FLASH MESSAGES                                */
/* ============================================= */
.flash-message {
    position: fixed;
    top: 80px;
    right: 2rem;
    z-index: 3000;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 500;
    animation: slideIn 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    max-width: 400px;
}

.flash-success {
    background: #059669;
    color: white;
}

.flash-error {
    background: #dc2626;
    color: white;
}

.flash-info {
    background: #4f46e5;
    color: white;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ============================================= */
/* EMPTY STATE                                   */
/* ============================================= */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.empty-state-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.empty-state-text {
    color: #6c757d;
    font-size: 0.9rem;
}

/* ============================================= */
/* TABS                                          */
/* ============================================= */
.tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #f1f3f5;
    margin-bottom: 2rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tab {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    color: #6c757d;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.25s ease;
    white-space: nowrap;
    text-decoration: none;
}

.tab.active {
    color: #1a1a1a;
    border-bottom-color: #1a1a1a;
}

.tab:hover {
    color: #1a1a1a;
}

/* ============================================= */
/* TOGGLE SWITCH                                 */
/* ============================================= */
.toggle {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e9ecef;
    transition: 0.25s;
    border-radius: 28px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.25s;
    border-radius: 50%;
}

.toggle input:checked + .toggle-slider {
    background-color: #1a1a1a;
}

.toggle input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

/* ============================================= */
/* CHART CONTAINERS                              */
/* ============================================= */
.chart-container {
    position: relative;
    width: 100%;
    height: 300px;
}

/* ============================================= */
/* MEMBER LIST                                   */
/* ============================================= */
.member-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f3f5;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.member-item:last-child {
    border-bottom: none;
}

.member-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* ============================================= */
/* LEADERBOARD                                   */
/* ============================================= */
.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    background: white;
    border: 2px solid #f1f3f5;
    transition: all 0.25s ease;
}

.leaderboard-item:hover {
    border-color: #e9ecef;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.leaderboard-rank {
    font-size: 1.5rem;
    font-weight: 700;
    color: #6c757d;
    width: 50px;
    text-align: center;
}

.leaderboard-rank.rank-1 {
    color: #f59e0b;
}

.leaderboard-rank.rank-2 {
    color: #94a3b8;
}

.leaderboard-rank.rank-3 {
    color: #d97706;
}

/* ============================================= */
/* UTILITY CLASSES                               */
/* ============================================= */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.ml-auto { margin-left: auto; }
.flex { display: flex; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 0.75rem; }
.gap-3 { gap: 1rem; }
.text-small { font-size: 0.85rem; }
.text-muted { color: #6c757d; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.flex-wrap { flex-wrap: wrap; }

/* ============================================= */
/* SIDEBAR OVERLAY (MOBILE)                      */
/* ============================================= */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
}

/* ============================================= */
/* TOUCH FRIENDLY                                */
/* ============================================= */
a, button, .btn, .tab, .bottom-nav-item, .dropdown-item, .sidebar-nav a {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* ============================================= */
/* INPUT DATE FIX                                */
/* ============================================= */
input[type="date"] {
    -webkit-appearance: none;
    appearance: none;
    min-height: 44px;
}

select.form-input,
select.form-select {
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236c757d' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

textarea.form-textarea {
    min-height: 80px;
    resize: vertical;
}

/* ============================================= */
/* ACTION BUTTONS                                */
/* ============================================= */
.action-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.action-btn {
    flex: 1;
    min-width: 80px;
    justify-content: center;
    padding: 0.65rem 0.5rem;
    font-size: 0.85rem;
}

.action-btn i {
    margin-right: 0.35rem;
    font-size: 0.9rem;
}

.action-btn span {
    white-space: nowrap;
}

/* ============================================= */
/* RESPONSIVE DESIGN                             */
/* ============================================= */
@media (max-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .current-time {
        display: none;
    }
}

/* ============================================= */
/* MOBILE (max-width: 768px)                     */
/* ============================================= */
@media (max-width: 768px) {
    .navbar {
        padding: 0.65rem 1rem;
    }
    
    .navbar-links {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    /* SEMBUNYIKAN LOGO DI MOBILE */
    .navbar-logo {
        display: none !important;
    }
    
    .logo-fallback-icon {
        display: none !important;
    }
    
    .brand-text {
        display: none;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
        cursor: pointer;
    }
    
    .current-time {
        display: none;
    }
    
    /* MOBILE TIME - TAMPIL DENGAN BAIK */
    .mobile-time {
        display: flex;
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
        color: #6c757d;
        background: rgba(79, 70, 229, 0.04);
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .mobile-time i {
        color: #4f46e5;
        font-size: 0.7rem;
    }
    
    .mobile-time .date {
        font-weight: 600;
        color: #1a1a1a;
        white-space: nowrap;
    }
    
    .mobile-time .time {
        font-weight: 700;
        color: #4f46e5;
        font-variant-numeric: tabular-nums;
        letter-spacing: 0.3px;
        white-space: nowrap;
        background: rgba(79, 70, 229, 0.08);
        padding: 0.2rem 0.6rem;
        border-radius: 6px;
    }
    
    .mobile-time .dot {
        color: #dee2e6;
        margin: 0 0.15rem;
        font-weight: bold;
    }
    
    /* SIDEBAR MOBILE */
    .sidebar {
        transform: translateX(-100%);
        position: fixed;
        top: 65px;
        left: 0;
        bottom: 0;
        z-index: 150;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .sidebar-overlay.active {
        display: block;
    }
    
    /* MAIN CONTENT MOBILE */
    .main-content {
        margin-left: 0;
        padding: 1.5rem 1rem;
        padding-bottom: 6rem;
    }
    
    /* GRID 1 KOLOM */
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    /* HERO */
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-section {
        min-height: 60vh;
    }
    
    /* CARD */
    .card {
        padding: 1rem;
    }
    
    /* STAT */
    .stat-value {
        font-size: 1.5rem;
    }
    
    /* MODAL */
    .modal {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    /* FLASH */
    .flash-message {
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
    
    /* TABLE */
    .table {
        min-width: 500px;
    }
    
    /* MEMBER */
    .member-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    /* LEADERBOARD */
    .leaderboard-item {
        flex-direction: column;
        text-align: center;
    }
    
    /* DROPDOWN */
    .dropdown-menu {
        width: 280px !important;
        right: -50px !important;
    }
    
    /* BUTTON MOBILE */
    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .btn-sm {
        padding: 0.5rem 0.85rem;
        font-size: 0.8rem;
        min-height: 38px;
    }
    
    /* ACTION BUTTONS MOBILE */
    .action-buttons {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .action-buttons .action-btn {
        padding: 0.7rem 0.5rem;
        font-size: 0.8rem;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.4rem;
    }
    
    .action-buttons .action-btn i {
        font-size: 0.9rem;
    }
    
    /* FORM INPUT MOBILE */
    .form-input,
    .form-select,
    .form-textarea {
        padding: 0.85rem 1rem;
        font-size: 1rem;
        border-radius: 10px;
    }
    
    /* PROGRESS BAR */
    .progress-bar {
        height: 10px;
        border-radius: 10px;
    }
    
    /* CHART */
    .chart-container {
        height: 250px;
    }
    
    /* TABS */
    .tabs {
        gap: 0;
        overflow-x: auto;
    }
    
    .tab {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }
    
    /* USER MENU */
    .user-name {
        display: none;
    }
    
    .chevron-icon {
        display: none;
    }
    
    .user-badge {
        display: none;
    }
    
    .user-menu {
        padding: 0.3rem;
    }
    
    .dropdown-menu {
        width: 300px;
        right: -10px;
    }
    
    .profile-dropdown {
        width: 200px;
    }
    
    .navbar-links {
        gap: 0.75rem;
    }
    
    /* NOTIFICATION DROPDOWN */
    .dropdown-item {
        padding: 0.75rem 1rem;
    }
    
    .notif-text {
        font-size: 0.75rem;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    /* WELCOME CARD */
    .card.mb-3:first-child .avatar {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
    
    /* FLEX COLUMN */
    .flex.gap-2 {
        flex-direction: column;
    }
    
    .flex.gap-2 .btn {
        width: 100%;
    }
}

/* ============================================= */
/* EXTRA SMALL (max-width: 480px)                */
/* ============================================= */
@media (max-width: 480px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .card-title {
        font-size: 1rem;
    }
    
    .dropdown-menu {
        width: 280px;
        right: -20px;
    }
    
    .action-buttons {
        gap: 0.4rem;
    }
    
    .action-btn {
        min-width: 60px;
        padding: 0.6rem 0.3rem;
        font-size: 0.7rem;
    }
    
    .action-btn i {
        font-size: 0.75rem;
    }
    
    .navbar-logo {
        width: 26px;
        height: 26px;
    }
    
    .stat-value {
        font-size: 1.2rem;
    }
    
    h1 {
        font-size: 1.3rem !important;
    }
    
    h2 {
        font-size: 1.15rem !important;
    }
    
    .modal {
        padding: 1rem;
        margin: 0.5rem;
    }
    
    .form-label {
        font-size: 0.85rem;
    }
    
    .bottom-nav-item {
        min-width: 50px;
        padding: 0.3rem 0.4rem;
    }
    
    .bottom-nav-item i {
        font-size: 1.1rem;
    }
    
    .bottom-nav-item span {
        font-size: 0.6rem;
    }
}

/* ============================================= */
/* BOTTOM NAVIGATION (MOBILE)                    */
/* ============================================= */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 1000;
    padding: 0.4rem 0.5rem;
    padding-bottom: env(safe-area-inset-bottom, 0.5rem);
    justify-content: space-around;
    align-items: center;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0.4rem 0.5rem;
    border-radius: 12px;
    text-decoration: none;
    color: #6c757d;
    transition: all 0.2s ease;
    min-width: 55px;
    position: relative;
}

.bottom-nav-item i {
    font-size: 1.2rem;
    transition: all 0.2s ease;
}

.bottom-nav-item span {
    font-size: 0.65rem;
    font-weight: 500;
}

.bottom-nav-item.active {
    color: #4f46e5;
}

.bottom-nav-item.active i {
    transform: scale(1.1);
}

.bottom-nav-badge {
    position: absolute;
    top: 2px;
    right: 4px;
    background: #dc2626;
    color: white;
    border-radius: 50%;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .bottom-nav {
        display: flex;
    }
}

/* ============================================= */
/* ADMIN DROPUP (MOBILE)                         */
/* ============================================= */
.admin-dropup {
    display: none;
    position: fixed;
    bottom: 5rem;
    left: 1rem;
    right: 1rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.05);
    z-index: 1002;
    animation: dropupFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    max-width: 450px;
    margin: 0 auto;
}

@keyframes dropupFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.admin-dropup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-bottom: 1px solid #fcd34d;
    font-weight: 700;
    color: #92400e;
    font-size: 0.9rem;
}

.admin-dropup-header i {
    color: #f59e0b;
    font-size: 1rem;
}

.admin-dropup-close {
    background: rgba(0, 0, 0, 0.1);
    border: none;
    color: #92400e;
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.admin-dropup-close:hover {
    background: rgba(0, 0, 0, 0.2);
}

.admin-dropup-body {
    padding: 0.5rem;
}

.admin-dropup-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    text-decoration: none;
    border-radius: 14px;
    transition: all 0.15s ease;
    margin-bottom: 0.25rem;
}

.admin-dropup-item:last-child {
    margin-bottom: 0;
}

.admin-dropup-item:hover {
    background: #f8f9fb;
}

.admin-dropup-item.active {
    background: rgba(79, 70, 229, 0.06);
}

.admin-dropup-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f3f5;
    border-radius: 12px;
    font-size: 1rem;
    color: #6c757d;
    flex-shrink: 0;
    transition: all 0.2s;
}

.admin-dropup-item.active .admin-dropup-icon {
    background: rgba(79, 70, 229, 0.1);
    color: #4f46e5;
}

.admin-dropup-content {
    flex: 1;
    min-width: 0;
}

.admin-dropup-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
}

.admin-dropup-desc {
    display: block;
    font-size: 0.7rem;
    color: #6c757d;
    line-height: 1.3;
    margin-top: 0.1rem;
}

.admin-dropup-arrow {
    color: #dee2e6;
    font-size: 0.7rem;
    flex-shrink: 0;
}

.admin-dropup-divider {
    border-top: 1px solid #f1f3f5;
    margin: 0.4rem 0.75rem;
}

.admin-dropup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1001;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (min-width: 769px) {
    .admin-dropup,
    .admin-dropup-overlay {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .admin-dropup {
        left: 0.75rem;
        right: 0.75rem;
        bottom: 4.5rem;
    }
}

/* ============================================= */
/* NAVBAR USER SPECIFIC STYLES                   */
/* ============================================= */
.navbar-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.avatar-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.avatar-img-lg {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.nav-item {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    width: 360px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12);
    border: 1px solid #f1f3f5;
    z-index: 1001;
    overflow: hidden;
}

.profile-dropdown {
    width: 240px;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f1f3f5;
}

.dropdown-header h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.dropdown-body {
    max-height: 320px;
    overflow-y: auto;
}

.dropdown-empty {
    padding: 2.5rem 1rem;
    text-align: center;
}

.dropdown-empty i {
    font-size: 2rem;
    color: #dee2e6;
    margin-bottom: 0.5rem;
    display: block;
}

.dropdown-empty p {
    color: #6c757d;
    font-size: 0.85rem;
}

.dropdown-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    text-decoration: none;
    border-bottom: 1px solid #f8f9fb;
    transition: background 0.15s ease;
}

.dropdown-item:hover {
    background: #f8f9fb;
}

.notif-icon {
    font-size: 0.9rem;
    min-width: 20px;
    margin-top: 2px;
}

.notif-content {
    flex: 1;
    min-width: 0;
}

.notif-text {
    font-size: 0.8rem;
    line-height: 1.4;
    color: #1a1a1a;
    margin-bottom: 0.2rem;
}

.notif-time {
    font-size: 0.7rem;
    color: #6c757d;
}

.dropdown-footer {
    padding: 0.85rem 1.25rem;
    border-top: 1px solid #f1f3f5;
    text-align: center;
}

.dropdown-footer a {
    font-size: 0.8rem;
    color: #4f46e5;
    text-decoration: none;
    font-weight: 600;
}

.dropdown-footer a i {
    font-size: 0.65rem;
    margin-left: 0.25rem;
}

.profile-preview {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.profile-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
}

.profile-username {
    font-size: 0.75rem;
    color: #6c757d;
    line-height: 1.3;
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1.25rem;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 0.85rem;
    transition: background 0.15s ease;
}

.dropdown-link:hover {
    background: #f8f9fb;
}

.dropdown-link i {
    width: 20px;
    text-align: center;
    color: #6c757d;
    font-size: 0.9rem;
}

.admin-link {
    color: #f59e0b !important;
    font-weight: 600;
}

.admin-link i {
    color: #f59e0b !important;
}

.logout-link {
    color: #dc2626 !important;
}

.logout-link i {
    color: #dc2626 !important;
}

.dropdown-divider {
    border-top: 1px solid #f1f3f5;
    margin: 0.4rem 0;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: #1a1a1a;
    padding: 0.4rem 0.6rem;
    border-radius: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.user-menu:hover {
    background: rgba(0, 0, 0, 0.04);
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.user-name {
    font-size: 0.85rem;
    font-weight: 500;
}

.user-badge {
    font-size: 0.6rem;
    color: #f59e0b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chevron-icon {
    font-size: 0.6rem;
    color: #6c757d;
    margin-left: 0.15rem;
}

/* ============================================= */
/* DESKTOP TIME                                  */
/* ============================================= */
.desktop-time {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.85rem;
    background: rgba(79, 70, 229, 0.04);
    border-radius: 10px;
    font-size: 0.8rem;
    color: #6c757d;
    border: 1px solid rgba(79, 70, 229, 0.06);
}

.desktop-time i {
    color: #4f46e5;
    font-size: 0.7rem;
}

.desktop-time .date {
    font-weight: 500;
    color: #1a1a1a;
    white-space: nowrap;
}

.desktop-time .time {
    font-weight: 700;
    color: #4f46e5;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.desktop-time .divider {
    width: 1.5px;
    height: 16px;
    background: linear-gradient(to bottom, transparent, #4f46e5, transparent);
    margin: 0 0.2rem;
    opacity: 0.25;
}

@media (max-width: 768px) {
    .desktop-time {
        display: none !important;
    }
}

/* ============================================= */
/* MOBILE TIME                                   */
/* ============================================= */
.mobile-time {
    display: none;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    color: #6c757d;
    background: rgba(79, 70, 229, 0.04);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.mobile-time i {
    color: #4f46e5;
    font-size: 0.7rem;
}

.mobile-time .date {
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
}

.mobile-time .time {
    font-weight: 700;
    color: #4f46e5;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.3px;
    white-space: nowrap;
    background: rgba(79, 70, 229, 0.08);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
}

.mobile-time .dot {
    color: #dee2e6;
    margin: 0 0.15rem;
    font-weight: bold;
}

@media (max-width: 768px) {
    .mobile-time {
        display: flex;
    }
}

/* ============================================= */
/* LOADING SPINNER                               */
/* ============================================= */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f1f3f5;
    border-top-color: #4f46e5;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Improved Animations & Transitions */
#step-email, #step-otp, #step-reset, #step-login {
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

#step-email.fade-out, #step-otp.fade-out, #step-reset.fade-out, #step-login.fade-out {
    opacity: 0;
    transform: translateY(10px);
}

/* OTP Input Animation */
.otp-input {
    letter-spacing: 6px;
    font-size: 1.4rem;
    text-align: center;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.otp-input:focus {
    transform: scale(1.02);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.otp-input.success {
    border-color: #059669;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

/* Password Input Animation */
.password-input {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.password-input:focus {
    transform: translateX(4px);
}

/* Icon Animation */
.icon-animate {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.icon-animate:hover {
    transform: scale(1.1) rotate(5deg);
}

/* Alert Animation */
.alert-animate {
    animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: top;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px) scaleY(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scaleY(1);
    }
}

/* Button Loading Animation */
.btn-loading {
    position: relative;
    overflow: hidden;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    from {
        width: 0;
        height: 0;
        opacity: 0.5;
    }
    to {
        width: 200px;
        height: 200px;
        opacity: 0;
    }
}

/* Card Transition */
.card {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.15);
}

/* OTP Box Animation */
.otp-box {
    position: relative;
    overflow: hidden;
}

.otp-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(79, 70, 229, 0.05), transparent);
    transition: left 0.5s ease;
}

.otp-box:hover::before {
    left: 100%;
}

/* Countdown Animation */
.countdown-pulse {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* Success Check Animation */
.checkmark {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    animation: scaleIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Shake animation for error */
.shake {
    animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-4px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(4px);
    }
}

/* Floating animation for icons */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

.icon-float {
    animation: float 3s ease-in-out infinite;
}

/* Typing animation for status text */
.typing {
    overflow: hidden;
    border-right: 2px solid #4f46e5;
    white-space: nowrap;
    animation: typing 2s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink-caret {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: #4f46e5;
    }
}

/* Smooth focus ring */
.form-input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
    transition: all 0.2s ease;
}