:root {
    --primary: #6c5ce7;
    --secondary: #a29bfe;
    --accent: #fd79a8;
    --dark: #2d3436;
    --light: #ffffff;
    --card-bg: #ffffff;
    --text-dark: #333333;
    --text-light: #666666;
    --border-color: #e0e0e0;
    --success: #00b894;
    --error: #d63031;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #f5f6fa;
    color: var(--text-dark);
    min-height: 100vh;
}

/* Navigation Bar */
.navbar {
    background: var(--light);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid var(--border-color);
}


.navbar {
    background: var(--light);
    padding: 10px 5vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
  }

.left-nav {
    display: flex;
    align-items: center;
    gap: 6px; /* Adjust the gap between menu and logo */
}

.menu-toggle {
    color: var(--primary);
    font-size: 1.7rem;
    cursor: pointer;
}

.logo {
    max-width: 34vw;
    display: flex;
    align-items: center;
    margin-left: 15px;
}

.ub1 {
    max-width: 200vw;
    display: flex;
    align-items: center;
    margin-right: -50px;
}


.logo img {
    width: 100%;
    height: auto;
    max-height: 70px;
    object-fit: contain;
}

.profile img {
    max-width: 45px;
    border-radius: 50%;
  }

.profile {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    cursor: pointer;
}

.profile-img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.profile-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--light);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 200px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    transform: translateY(10px);
    z-index: 101;
    border: 1px solid var(--border-color);
}

.profile.active .profile-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-dropdown a {
    color: var(--text-dark);
    text-decoration: none;
    display: block;
    padding: 10px 20px;
    transition: all 0.3s;
}

.profile-dropdown a:hover {
    background: rgba(108, 92, 231, 0.1);
    color: var(--primary);
}

.profile-dropdown a i {
    width: 20px;
    text-align: center;
    margin-right: 10px;
    color: var(--primary);
}

.profile-dropdown .divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 0;
}

.profile-img {
  border-radius: 50%;              /* গোল গোল করার জন্য */
  animation: spin 4s linear infinite; /* ঘূর্ণনের জন্য */
}

/* ঘোরানোর কিফ্রেম */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Sidebar */
.sidebar {
    width: 250px;
    background: var(--light);
    position: fixed;
    top: 0;
    left: -250px;
    height: 100vh;
    transition: all 0.3s ease;
    z-index: 999;
    border-right: 1px solid var(--border-color);
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    height: 70px;
}

.sidebar-logo {
    height: 40px;
}

.sidebar-logo img {
    height: 100%;
    object-fit: contain;
    cursor: pointer;
}

.close-menu {
    color: var(--text-light);
    font-size: 1.2rem;
    cursor: pointer;
}

.sidebar-menu {
    list-style: none;
    padding: 20px 0;
}

.sidebar-menu li {
    padding: 12px 15px;
    transition: all 0.3s;
}

.sidebar-menu li:hover {
    background: rgba(108, 92, 231, 0.1);
}

.sidebar-menu li a {
    color: var(--text-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-menu li i {
    width: 20px;
    text-align: center;
    color: var(--primary);
}

/* Main Content */
.main-content {
    margin-left: 0;
    padding: 30px;
    transition: all 0.3s;
}

.sidebar.active ~ .main-content {
    margin-left: 250px;
}

/* Card Styles */
.card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary);
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

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

/* Responsive */
@media (max-width: 768px) {
    .main-content {
        padding: 20px;
    }
    
    .sidebar.active ~ .main-content {
        margin-left: 0;
    }
}

/* Notification Badge */
.notification-badge {
    background: var(--accent);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
}


/* Sidebar Submenu Styles */
.sidebar-menu .has-submenu {
    position: relative;
}

.sidebar-menu .submenu {
    list-style: none;
    padding-left: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.sidebar-menu .submenu.active {
    max-height: 560px;
}

.sidebar-menu .submenu li {
    padding: 10px 20px 10px 18px;
}

.sidebar-menu .submenu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
    font-size: 15px;
}

.sidebar-menu .submenu li a i {
    width: 20px;
    text-align: center;
    color: var(--primary);
}

.sidebar-menu .submenu-icon {
    margin-left: auto;
    transition: transform 0.3s;
}

.sidebar-menu .has-submenu.active .submenu-icon {
    transform: rotate(180deg);
}

/* Remove dots/bullets */
.sidebar-menu, 
.sidebar-menu ul {
    list-style-type: none;
}

.sidebar-user-box {
    display: flex;
    align-items: center;
    background: #1a1a1a;
    border-radius: 8px;
    padding: 30px 12px;
    margin: 5px 10px -15px 10px;
    color: #fff;
    text-align: center;
}

.sidebar-user-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
    border: 2px solid #6c5ce7;
    animation: spin 4s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }

}

.sidebar-user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.sidebar-user-balance {
    background: #fdcb6e;
    color: #000;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 3px;
}

.sidebar-user-name {
    font-weight: 600;
    font-size: 14px;
    color: #fff;
}

.sidebar-menu .submenu li a {
    white-space: nowrap !important;
}


.profile {
    position: relative !important;
}

.ub {
    position: absolute !important;
    right: 20vw !important; /* Profile pic থেকে 3vw বামে */
    top: 50% !important;
    transform: translateY(-50%) !important;
}