/* MikroTik Control Center — base.css (dipecah dari frontend/index.html) */

:root {
            --bg-light: #f4f7fc;
            --glass-bg: rgba(255, 255, 255, 0.85);
            --glass-border: rgba(255, 255, 255, 0.95);
            --accent: #007aff;
            --success: #34c759;
            --danger: #ff3b30;
            --warning: #ff9500;
            --text-main: #2c2c2e;
            --text-sub: #8e8e93;
            --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.03);
            --shadow-float: 0 20px 40px rgba(0, 0, 0, 0.12);
        }

* { margin: 0; padding: 0; box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }

body { background-color: var(--bg-light); color: var(--text-main); overflow: hidden; height: 100vh; display: flex; }

/* --- LAYOUT & SIDEBAR --- */
#app-layout { width: 100%; height: 100vh; display: none; padding: 15px; gap: 15px; opacity: 0; transition: opacity 0.5s ease; position: relative; }

.brand { font-size: 1.3rem; font-weight: 700; padding: 10px 15px 25px; color: var(--accent); letter-spacing: -0.5px; text-align: center; }

.nav-item { padding: 12px 15px; border-radius: 12px; cursor: pointer; font-weight: 500; color: var(--text-sub); transition: all 0.2s ease; display: flex; justify-content: space-between; align-items: center; }

.nav-item:hover { background: rgba(0,0,0,0.03); color: var(--text-main); }

.nav-item.active { background: #fff; color: var(--accent); box-shadow: 0 2px 10px rgba(0,0,0,0.03); font-weight: 600; }

.nav-group { margin-bottom: 2px; }

.nav-header { padding: 12px 15px; border-radius: 12px; cursor: pointer; font-weight: 600; color: var(--text-main); display: flex; justify-content: space-between; align-items: center; transition: background 0.2s; }

.nav-header:hover { background: rgba(0,0,0,0.03); }

.nav-header .chevron { transition: transform 0.3s ease; font-size: 0.8rem; }

.nav-group.expanded .nav-header .chevron { transform: rotate(180deg); color: var(--accent); }

.nav-submenu { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; display: flex; flex-direction: column; gap: 4px; padding-left: 15px; }

.nav-group.expanded .nav-submenu { max-height: 500px; padding-top: 5px; padding-bottom: 5px; }

/* --- MAIN AREA & TOPBAR --- */
.main-wrapper { flex-grow: 1; display: flex; flex-direction: column; gap: 15px; overflow: hidden; width: 100%; }

.topbar { display: flex; justify-content: space-between; align-items: center; padding: 15px 25px; }

.user-info { display: flex; align-items: center; gap: 15px; }

.role-badge { padding: 5px 12px; border-radius: 10px; font-size: 11px; font-weight: 700; background: rgba(0,0,0,0.05); color: var(--text-main); text-transform: uppercase; letter-spacing: 1px; }

.notif-dot { position: absolute; top: 8px; right: 10px; width: 8px; height: 8px; background: var(--danger); border-radius: 50%; box-shadow: 0 0 0 2px #fff; }

.notif-dropdown { position: absolute; top: 50px; right: 0; width: 340px; padding: 15px; max-height: 400px; overflow-y:auto; z-index: 100; display: none; opacity: 0; transform: translateY(-10px); transition: all 0.3s ease; }

.notif-dropdown.show { display: block; opacity: 1; transform: translateY(0); }

.main-content { flex-grow: 1; overflow-y: auto; padding-right: 5px; padding-bottom: 80px; }

.main-content::-webkit-scrollbar { width: 6px; }

.main-content::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.1); border-radius: 10px; }

.view-section { display: none; animation: fadeIn 0.3s ease; }

.view-section.active { display: block; }

.header-title { font-size: 1.6rem; font-weight: 700; margin-bottom: 15px; letter-spacing: -0.5px; }

/* --- RESPONSIVE --- */
.sidebar-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); backdrop-filter: blur(4px); z-index: 2000; opacity: 0; visibility: hidden; transition: all 0.3s ease; }

.sidebar-overlay.show { opacity: 1; visibility: visible; }

.sidebar { position: fixed; left: -300px; top: 0; height: 100vh; width: 260px; padding: 20px; display: flex; flex-direction: column; gap: 6px; overflow-y: auto; z-index: 2010; margin: 0; border-radius: 0; transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 10px 0 30px rgba(0,0,0,0.1); }

.sidebar::-webkit-scrollbar { display: none; }

.sidebar.show { left: 0; }

.btn-menu { background: var(--accent); color: white; border: none; padding: 8px 12px; border-radius: 10px; cursor: pointer; font-size: 16px; transition: 0.2s; }

.btn-menu:active { transform: scale(0.95); }

@media (max-width: 900px) {
    #app-layout { padding: 15px 5px; }
}

@media (max-width: 480px) {
    .user-info #display-user-wrap { display: none; }
}
