:root {
    --bg-light: #f9f9fb;
    --border-color: #eff2f5;
    --text-muted: #7e8299;
    --primary-blue: #009ef7;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
}

body {
    background-color: var(--bg-light);
}

.dashboard-wrapper {
    display: flex;
    height: 100vh;
}

/* Sidebar Styling */
.mini-sidebar {
    width: 80px;
    background: var(--white);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    position: relative;
    z-index: 100;
}

.logo-icon {
    font-size: 32px;
    color: #181c32;
    margin-bottom: 40px;
}

.nav-icons {
    flex-grow: 1;
    width: 100%;
}

.nav-item {
    position: relative;
    padding: 10px 0;
    width: 100%;
    cursor: pointer;
}

.icon-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
}

.icon-box span { font-size: 24px; }
.icon-box p { font-size: 11px; margin-top: 5px; font-weight: 500; }

/* Hover Effects */
.nav-item:hover .icon-box {
    color: var(--primary-blue);
    background: #f1faff;
    border-radius: 8px;
    margin: 0 10px;
}

/* Popover Menu Styling */
.popover-menu {
    position: absolute;
    left: 85px;
    top: 0;
    width: 220px;
    background: var(--white);
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
    border-radius: 8px;
    padding: 10px 0;
    display: none; /* Hidden by default */
    border: 1px solid var(--border-color);
}

.nav-item:hover .popover-menu {
    display: block;
}

.popover-menu a {
    display: flex;
    justify-content: space-between;
    padding: 10px 20px;
    text-decoration: none;
    color: #3f4254;
    font-size: 14px;
    font-weight: 500;
    transition: 0.2s;
}

.popover-menu a:hover {
    background-color: #f9f9fb;
    color: var(--primary-blue);
}

.arrow {
    font-family: 'Material Symbols Outlined';
    font-size: 16px;
    color: #b5b5c3;
}

.divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 0;
}

/* Main Content Area */
.main-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 25px 35px;
    overflow-y: auto;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.title-section h1 { font-size: 20px; color: #181c32; }
.breadcrumb { font-size: 13px; color: var(--text-muted); margin-top: 5px; }

.header-tools {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--text-muted);
}

.header-tools span { cursor: pointer; font-size: 22px; }

.export-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    border: 1px solid #e1e3ea;
    padding: 8px 15px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
}

.white-board {
    background: var(--white);
    border-radius: 12px;
    flex-grow: 1;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

/* Footer Styling */
.footer {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
}

.footer span { color: #3f4254; font-weight: 600; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { text-decoration: none; color: var(--text-muted); }
.footer-links a:hover { color: var(--primary-blue); }

.bottom-user img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .mini-sidebar { width: 60px; }
    .icon-box p { display: none; }
    .popover-menu { left: 65px; }
}
/* === Global Responsive Boilerplate === */
@media (max-width: 900px) {
    .sidebar { position: absolute; left: -100%; transition: left 0.3s ease; z-index: 1000; box-shadow: 10px 0 30px rgba(0,0,0,0.1); }
    .sidebar.active { left: 0; }
    .main-wrapper { margin-left: 0 !important; width: 100% !important; padding-left: 0 !important; }
    .topbar, .toolbar, .header { flex-direction: column; align-items: flex-start; height: auto !important; padding: 1rem !important; gap: 1rem; }
    .search-box, .search-bar, .search-input { width: 100% !important; max-width: 100% !important; }
    .toolbar-actions, .header-actions { flex-wrap: wrap; width: 100%; justify-content: flex-start; }
    .content, .main-content { padding: 1rem !important; }
    .dashboard-grid, .stats-grid, .features-grid, .mega-menu-content { grid-template-columns: 1fr !important; }
    .overview-grid, .pricing-grid { grid-template-columns: 1fr !important; }
    .profile-header { flex-direction: column; text-align: center; }
    .profile-img-box { margin: 0 auto; }
}
