:root {
    --sidebar-bg: #ffffff;
    --border-color: #f0f0f0;
    --text-main: #333333;
    --text-muted: #8c8c8c;
    --primary-blue: #1890ff;
    --active-bg: #e6f7ff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

body {
    background-color: #f5f5f5;
}

.dashboard-container {
    display: flex;
    height: 100vh;
}

/* 1. Mini Sidebar (Icons only) */
.mini-sidebar {
    width: 60px;
    background: #fff;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 0;
}

.mini-icons {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.mini-icons span {
    color: var(--text-muted);
    cursor: pointer;
    font-size: 20px;
}

.user-avatar img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    margin-bottom: 10px;
}

/* 2. Main Sidebar */
.main-sidebar {
    width: 240px;
    background: #fff;
    border-right: 1px solid var(--border-color);
    padding: 20px 0;
    overflow-y: auto;
}

.dropdown-wrapper {
    padding: 0 15px;
    margin-bottom: 25px;
}

.dropdown-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    cursor: pointer;
    background: #fff;
}

.btn-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-text { font-size: 14px; font-weight: 500; }

.dropdown-menu {
    display: none; /* Hidden by default */
    margin-top: 5px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-radius: 8px;
    background: #fff;
}

.dropdown-menu.show { display: block; }

.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    font-size: 14px;
    color: var(--text-main);
    cursor: pointer;
}

.active-dropdown {
    background: var(--active-bg);
    color: var(--primary-blue);
}

.nav-section { margin-bottom: 25px; }

.section-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    padding: 0 20px 10px;
}

.nav-section a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: var(--text-main);
    font-size: 14px;
}

.active-link {
    background: var(--active-bg);
    color: var(--primary-blue) !important;
    border-radius: 0 20px 20px 0;
    margin-right: 15px;
}

/* 3. Content Area */
.content-area {
    flex-grow: 1;
    padding: 24px;
    background: #fafafa;
}

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.page-title { font-size: 20px; font-weight: 600; margin-bottom: 4px;}

.breadcrumb { font-size: 12px; color: var(--text-muted); }

.top-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-actions span { color: var(--text-muted); cursor: pointer; }

.export-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #fff;
    border: 1px solid #d9d9d9;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.blank-canvas {
:root {
    --sidebar-bg: #ffffff;
    --border-color: #f0f0f0;
    --text-main: #333333;
    --text-muted: #8c8c8c;
    --primary-blue: #1890ff;
    --active-bg: #e6f7ff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

body {
    background-color: #f5f5f5;
}

.dashboard-container {
    display: flex;
    height: 100vh;
}

/* 1. Mini Sidebar (Icons only) */
.mini-sidebar {
    width: 60px;
    background: #fff;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 0;
}

.mini-icons {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.mini-icons span {
    color: var(--text-muted);
    cursor: pointer;
    font-size: 20px;
}

.user-avatar img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    margin-bottom: 10px;
}

/* 2. Main Sidebar */
.main-sidebar {
    width: 240px;
    background: #fff;
    border-right: 1px solid var(--border-color);
    padding: 20px 0;
    overflow-y: auto;
}

.dropdown-wrapper {
    padding: 0 15px;
    margin-bottom: 25px;
}

.dropdown-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    cursor: pointer;
    background: #fff;
}

.btn-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-text { font-size: 14px; font-weight: 500; }

.dropdown-menu {
    display: none; /* Hidden by default */
    margin-top: 5px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-radius: 8px;
    background: #fff;
}

.dropdown-menu.show { display: block; }

.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    font-size: 14px;
    color: var(--text-main);
    cursor: pointer;
}

.active-dropdown {
    background: var(--active-bg);
    color: var(--primary-blue);
}

.nav-section { margin-bottom: 25px; }

.section-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    padding: 0 20px 10px;
}

.nav-section a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: var(--text-main);
    font-size: 14px;
}

.active-link {
    background: var(--active-bg);
    color: var(--primary-blue) !important;
    border-radius: 0 20px 20px 0;
    margin-right: 15px;
}

/* 3. Content Area */
.content-area {
    flex-grow: 1;
    padding: 24px;
    background: #fafafa;
}

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.page-title { font-size: 20px; font-weight: 600; margin-bottom: 4px;}

.breadcrumb { font-size: 12px; color: var(--text-muted); }

.top-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-actions span { color: var(--text-muted); cursor: pointer; }

.export-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #fff;
    border: 1px solid #d9d9d9;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.blank-canvas {
    background: #fff;
    border-radius: 12px;
    height: calc(100vh - 120px);
    border: 1px solid var(--border-color);
}

/* Responsive & Mobile Toggle */
.mobile-menu-btn { display: none; cursor: pointer; color: var(--text-main); font-size: 24px; }

@media (max-width: 900px) {
    .mini-sidebar, .main-sidebar { 
        position: absolute; 
        left: -100%; 
        transition: left 0.3s ease; 
        z-index: 1000; 
        height: 100vh;
        box-shadow: 4px 0 10px rgba(0,0,0,0.1); 
    }
    
    .mini-sidebar.active { left: 0; }
    .main-sidebar.active { left: 60px; } /* Appears next to mini sidebar */
    
    .mobile-menu-btn { display: block; }
    
    .top-header { flex-direction: column; gap: 15px; }
    .title-wrapper { display: flex; align-items: center; gap: 10px; width: 100%; }
    .top-actions { width: 100%; justify-content: flex-end; }
    .main-footer { flex-direction: column; gap: 15px; text-align: center; }
    .footer-right { justify-content: center; flex-wrap: wrap; }
}

@media (max-width: 480px) {
    .top-actions { justify-content: center; }
}

/* Footer Styling */
.main-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5px;
    font-size: 13px;
    color: #7e8299; /* Muted color */
}

.brand-name {
    color: #3f4254;
    font-weight: 500;
}

.footer-right {
    display: flex;
    gap: 15px;
}

.footer-right a {
    text-decoration: none;
    color: #7e8299;
    transition: color 0.2s;
}

.footer-right a:hover {
    color: var(--primary-blue);
}

/* Sidebar links hover effect */
.nav-section a:hover {
    color: var(--primary-blue);
    background: var(--active-bg);
    border-radius: 0 20px 20px 0;
    margin-right: 15px;
}

/* Tooltip container logic */
.mini-icons span {
    position: relative;
    display: inline-block;
}

/* Tooltip text styling */
.mini-icons span::after {
    content: attr(data-tooltip); /* HTML ke data-tooltip se text lega */
    position: absolute;
    left: 120%; /* Icon ke right mein dikhega */
    top: 50%;
    transform: translateY(-50%);
    background: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s;
    z-index: 100;
}

/* Hover karne par tooltip dikhana */
.mini-icons span:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Dropdown menu items hover */
.menu-item:hover {
    background-color: var(--active-bg);
    color: var(--primary-blue);
}
/* === 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; }
}
