/* Global Styles - IPL Auction Application Redesign */

/* CSS Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}
@import url('https://fonts.googleapis.com/css2?family=Quantico&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Quantico:wght@700&display=swap');
/* Root Variables */
:root {
  /* Colors */
  --primary-color: #FD6F04;
  --primary-color-10: rgba(253, 111, 4, 0.1);
  --primary-color-30: rgba(253, 111, 4, 0.3);
  --primary-color-50: rgba(253, 111, 4, 0.5);

  --bg-dark: rgba(23, 23, 37, 0.5);
  --bg-dark-solid: #0c0c1e;
  --bg-glass: rgba(23, 23, 37, 0.5);

  --text-white: #ffffff;
  --text-gray: rgba(255, 255, 255, 0.7);
  --text-light: rgba(255, 255, 255, 0.5);

  --border-light: rgba(255, 255, 255, 0.1);
  --border-medium: rgba(255, 255, 255, 0.2);

  /* Aliases for static HTML compatibility (Player Form pages) */
  --color-text-white: #ffffff;
  --color-text-light: rgba(255, 255, 255, 0.5);
  --color-primary: #fd6f04;
  --color-bg-main: #0A0A1A;
  --color-bg-glass: rgba(255, 255, 255, 0.08);
  --color-border: rgba(255, 255, 255, 0.25);
  --color-border-dashed: rgba(255, 255, 255, 0.5);
  --color-button-primary-bg: rgba(253, 111, 4, 0.5);

  --success-color: #1E9600;
  --error-color: #C9302C;

  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-xxl: 48px;

  /* Border Radius */
  --radius-sm: 5px;
  --radius-md: 10px;
  --radius-lg: 17px;
  --radius-xl: 20px;
  --radius-full: 100px;

  /* Transitions */
  --transition-fast: 0.2s ease-in-out;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.3);
}

  :root {
      --glass-blur: 35px;
      --glass-saturation: 100%;
      --glass-opacity: 0.08;
      --text-color: #ffffff;
      --header-height: 70px;
      --player-height: 70px;
      --nav-height: 80px;
      --large-radius: 999px;
      --medium-radius: 20px;
      --nav-item-radius: 15px;
      --shadow-color: rgba(0,0,0,0.25);
      --border-color: rgba(255,255,255,0.2);
      --active-fill-color: rgba(255,255,255,0.15);
      --active-text-color: #ff3b30;
      --text-muted-color: rgba(255,255,255,0.6);
    }

    .glass-effect {
      background: rgba(255,255,255,var(--glass-opacity));
      backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
      border: 1px solid var(--border-color);
      box-shadow:
        0 8px 30px var(--shadow-color),
        0 0 40px rgba(255,255,255,0.05),
        inset 0 1px 0 rgba(255,255,255,0.1),
        inset 0 -1px 0 rgba(0,0,0,0.1);
    }


/* Body */
body {
  margin: 0;
  padding: 0;
  font-family: 'Quantico', sans-serif;
  color: var(--text-white);
  background-color: #0E0E23;
  background-image: url('../images/bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Images */
img {
  max-width: 100%;
  display: block;
}

/* Form Elements */
input,
button,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

/* Links */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-color-50);
}

/* Lists */
ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 700;
}

/* Paragraphs */
p {
  margin: 0;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.d-none {
  display: none !important;
}

.d-block {
  display: block !important;
}

.d-flex {
  display: flex !important;
}

.flex-column {
  flex-direction: column;
}

.align-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-sm {
  gap: var(--spacing-sm);
}

.gap-md {
  gap: var(--spacing-md);
}

.gap-lg {
  gap: var(--spacing-lg);
}

.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }

/* Loader/Spinner */
.loader {
  border: 3px solid var(--border-light);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}


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

/* Alert Messages */
.alert {
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-md);
  font-size: 14px;
}

.alert-success {
  background-color: rgba(30, 150, 0, 0.2);
  border: 1px solid var(--success-color);
  color: #4CAF50;
}

.alert-error {
  background-color: rgba(201, 48, 44, 0.2);
  border: 1px solid var(--error-color);
  color: #FF6B6B;
}

.alert-info {
  background-color: var(--primary-color-10);
  border: 1px solid var(--primary-color-30);
  color: var(--primary-color);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}


.dashboard-layout {
    display: flex;
    gap: 1.5rem; padding-inline: 1rem;
}

/* ========================================
   SIDEBAR STYLES (Shared across modules)
   ======================================== */

   /* App Header */
.app-header, .dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  /*padding: 0 0 1rem;*/
  padding: 1rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Burger Menu */
.burger-menu {
  display: none; /* Hidden on desktop */
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  transition: opacity var(--transition-fast);
  position: relative;
}

.burger-menu:hover {
  opacity: 0.7;
}

.burger-menu svg {
  display: block;
}

.burger-menu svg path {
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
  transform-origin: center;
}

/* Burger to Close animation */
/* Path order: middle (12), top (6), bottom (18) */
.burger-menu.active svg path:nth-child(1) {
  /* Middle line - fade out */
  opacity: 0;
  transform: scaleX(0);
}

.burger-menu.active svg path:nth-child(2) {
  /* Top line - rotate and move down to center */
  transform: translateY(6px) rotate(45deg);
}

.burger-menu.active svg path:nth-child(3) {
  /* Bottom line - rotate and move up to center */
  transform: translateY(-3px) rotate(-45deg);
}

/* Main Container */
.dashboard-container, .page-container {
    min-height: 100vh;
    /*padding: 2rem;*/
    position: relative;
}
.dashboard-sidebar {
    position: sticky;
    top: 5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: 60px;
    height: calc(100vh - 7rem);
    max-height: calc(100vh - 7rem);
    padding: 0.6rem 0 2rem;
    flex-shrink: 0;
    background: rgba(23, 23, 37, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    overflow-y: auto;
}

.sidebar-bg {
    display: none;
}

.sidebar-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.sidebar-profile-pic {
    position: relative;
    width: 45px;
    height: 45px;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #FD6F04, #FF8C42);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.sidebar-profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.sidebar-nav-main,
.sidebar-nav-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.sidebar-nav-main ul,
.sidebar-nav-bottom ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav-item, #player-form-sidebar-menu li, #player-form-sidebar-footer li {
    width: 24px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
}


.sidebar-nav-item img, #player-form-sidebar-menu li img, #player-form-sidebar-footer li img {
    width: 30px;
    height: 30px;
    opacity: 0.7;
    transition: opacity var(--transition-normal);
}

.sidebar-nav-item:hover img,
.sidebar-nav-item.active img {
    opacity: 1;
}

/* Submenu Flyout Panel */
.submenu-flyout {
    position: fixed;
    left: 113px;
    top: 90px;
    width: 240px;
    background: rgba(23, 23, 37, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    padding: 20px;
    z-index: 100;
}

.submenu-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.submenu-item {
    display: flex;
    align-items: center;
    padding: 0;
    border: 0;
    color: var(--text-white);
    text-decoration: none;
    font-size: 14px;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.submenu-item:hover {
    color: var(--primary-color);
}

.submenu-item.active {
    background: var(--primary-color-30);
    border-color: var(--primary-color);
}

/* Sub-submenu */
.sub-submenu {
    position: fixed;
    left: 373px;
    background: rgba(23, 23, 37, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    padding: 16px;
    z-index: 101;
    min-width: 200px;
}

.sub-submenu-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sub-submenu-item {
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    color: var(--text-white);
    text-decoration: none;
    font-size: 13px;
    transition: all var(--transition-fast);
    cursor: pointer;
    display: block;
}

.sub-submenu-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Submenu Flyout Panel */
.submenu-flyout {
    position: fixed;
    left: 83px;
    top: 5.5rem;
    width: 175px;
    height: calc(100vh - 8rem);
    background: rgba(23, 23, 37, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    padding: 20px;
    z-index: 100;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
    display: none;
}
.submenu-flyout.active { display: block;}
.submenu-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.submenu-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-white);
    margin: 0;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.submenu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.submenu-item {
    position: relative;
}

.submenu-item a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast), color var(--transition-fast); width: 100%;
}

.submenu-item a:hover {
    color: var(--text-white);
}

.submenu-item a.has-children {
    position: relative;
}

.submenu-arrow {
    font-size: 18px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    transition: transform var(--transition-fast);
}

.submenu-item:hover .submenu-arrow {
    transform: translateX(3px);
}

/* Sub-submenu (3rd level) */
.sub-submenu {
    list-style: none;
    padding: 12px;
    margin: 0;
    display: none;
    flex-direction: column;
    gap: 4px;
    background: rgba(23, 23, 37, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    position: absolute;
    left: calc(100% + 1rem);
    top: 0;
    min-width: 200px;
    z-index: 101;
}

/* Add invisible bridge to prevent hover loss */
.sub-submenu::before {
    content: '';
    position: absolute;
    right: 100%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: transparent;
}

.submenu-item {
    position: relative;
}

.submenu-item:hover .sub-submenu,
.submenu-item .sub-submenu:hover {
    display: flex;
}

.sub-submenu li a {
    padding: 8px 12px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.sub-submenu li a:hover {
    color: var(--primary-color);
    background: rgba(253, 111, 4, 0.1);
}

.button-group {
    display: flex;
    gap: 10px;
}

.btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 64px; padding: 10px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-weight: 700;
    font-size: 10px;
    line-height: 1;
    color: var(--text-white);
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.5);
}
.btn:hover { transform: scale(1.05); }

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-submit {
    background-color: var(--primary-color-10);
    border-color: var(--primary-color-30);
}

.btn-submit:hover:not(:disabled) {
    background-color: var(--primary-color-30);
    border-color: var(--primary-color-50);
}

.btn-cancel {
    background-color: transparent;
    border: 1px solid var(--border-medium);
}

.btn-cancel:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Mobile Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

.password-input-wrapper .error-message { margin-top: 10px; }

.pic-circle { width: 40px; height: 40px; overflow: hidden; border-radius: 50%; position: relative; background: linear-gradient(135deg, #FD6F04, #FF8C42); }
.pic-circle img {  object-fit: cover;  width: 50px; height: 50px; border-radius: 50%; object-fit: cover; position: absolute; }

.pic-circle .player-avatar-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; }
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.brand-logo {
  width: 54px;
  height: 37px;
}

.separator {
  width: 2px;
  height: 29px;
  background-color: rgba(255, 255, 255, 0.25);
}

.brand-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  color: var(--text-white);
}
.user-info {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-gray);
}

.user-info p {
  margin: 0;
}

	:root{
 --glass: rgba(255,255,255,0.10);
 --glass-border: rgba(255,255,255,0.18);
}

/* Domestic Dashboard Styles */
.chart-title { font-size: 14px; line-height: 18px; text-transform: uppercase; }
.pie-chart {}
.chart-container { display: flex; gap: 0.5rem;  flex-direction: column; text-transform: uppercase;  }
.pie-chart .VictoryContainer svg {   max-width: 190px;min-width: 190px;}
.chart-inner { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 1rem; 
  padding: 1rem; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); min-height: 280px; 
 backdrop-filter: blur(8px) saturate(130%);
 -webkit-backdrop-filter: blur(8px) saturate(130%);
 background: var(--glass);}
.pie-chart .VictoryContainer { display: flex; align-items: center; justify-content: center; }
.pie-legent-wrap {display: flex; align-items: center; justify-content: center; gap: 2px 5px; width: 100%; flex-wrap: wrap; }
.legent-label .content-stretch p, .legent-label  p { font-size: 12px; }
.legent-label .content-stretch p { margin-right: 5px; }

.domestic-circle-chart SVG { }
.b-box-container { display: flex; align-items: end; flex-wrap: wrap;}
.b-box { /*flex: 1 1 calc(33.33% - 40px); min-width: 250px;*/ box-sizing: border-box; }
.recharts-legend-item { font-size: 12px;}

.pie-tool { font-size: 9px;}
.overall-chart, .reg-state-chart, .playerrole-chart,.roalbased-chart { width: 22%; }
.reg-state-chart { width: 25%;  }
.playerrole-chart .chart-inner { min-height: 278px; }
.roalbased-chart { width: 28%;}
.reg-price-chart { width: 48%; }
.headtmap-chart { width: 43%;}
.heat-map-card { height: 305px; }
.heat-map-box { left: 8rem; top: 1rem; }
.heat-map-legent { left: 4rem;
    top: 0.5rem;
    gap: 27px;}
.heat-map-xasis { top: 13rem; left: 18rem; }
.w-\[50px\] { width:45px; }
.h-\[48px\] , .h-\[51px\] { height: 45px; }
.size-\[50px\] { width: 45px; height: 45px; }
.export-icon {     width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    top: 1px;
    left: -3.5rem;
    border-radius: 50%;}
.filter-section { max-width: 400px; width: 100%; }
.drop-down-text { left: 7.8rem; font-size: 12px;} 
.heat-cont {     left: -35px; top: 11px;}
.heat-tooltip { padding: 5px; font-size: 12px;}

.header-cell { text-transform: uppercase; font-size: 12px;}

@media (max-width: 1200px) {
    .playerrole-chart { width: 32%; }
  .roalbased-chart { width: 65%; }
}

/* Tablet screens (2 boxes per row) */
@media (max-width: 1024px) {
.b-box-container .b-box { width: 48%;}
}
/* Mobile screens (1 box per row) */
@media (max-width: 768px) {
 .b-box-container .b-box { width: 100%; }
  .b-box-container { grid-template-columns: 300px repeat(2, minmax(150px, 1fr)); }
  .pie-legent-wrap { flex-wrap: wrap; gap: 0.5rem;} 
}

@media (max-width: 768px) {
   .dashboard-container {
        padding: 0;
    }

    .dashboard-layout {
        flex-direction: column;
        gap: 20px;
    }
    .heat-cont { left: -60px;}

    /* Mobile Sliding Sidebar */
    .dashboard-sidebar {
        position: fixed;
        top: 4.9rem;
        left: 0rem;
        width: auto;
        height: calc(100vh - 5.5rem);
        max-height: calc(100vh - 5.5rem);
        flex-direction: column;
        padding: 1rem 0.5rem 2.5rem;
        border-radius: 0;
        transform: translateX(-100%);
        transition: transform 0.4s ease-in-out;
        z-index: 1000;
        overflow-y: auto; border-radius: 40px;
    }

    .dashboard-sidebar.active {
        transform: translateX(0);
        left: 0.5rem;
    }

    /* Show menu labels on mobile */
    .sidebar-nav-item {
        width: 100%;
        height: auto;
        margin-bottom: 0;
        justify-content: center;
    }

    .sidebar-nav-item a {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 0;
        color: rgba(255, 255, 255, 0.8);
        text-decoration: none;
        font-size: 14px;
        font-family: 'Quantico', sans-serif;
        transition: color 0.3s ease;
    }

    .sidebar-nav-item a:hover,
    .sidebar-nav-item a.active {
        color: var(--primary-color);
    }

    .sidebar-nav-item img {
        width: 24px;
        height: 24px;
        opacity: 0.8;
        transition: filter 0.3s ease;
    }

    .sidebar-nav-item a:hover img,
    .sidebar-nav-item a.active img {
        opacity: 1;
    }

    /* Change SVG icon color to orange when active */
    .sidebar-nav-item.active-menu img {
        filter: brightness(0) saturate(100%) invert(46%) sepia(94%) saturate(2483%) hue-rotate(360deg) brightness(101%) contrast(98%);
    }

    /* Add text labels after icons */
    .sidebar-nav-item a::after {
        content: attr(title);
        font-size: 14px;
        font-weight: 400; display: none;
    }

    .sidebar-top,
    .sidebar-nav-main,
    .sidebar-nav-bottom,
    .sidebar-nav-main ul,
    .sidebar-nav-bottom ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 2.5rem;
        width: 100%;
    }

    .sidebar-profile-pic {
        margin-bottom: 0;
    }

    /* Mobile Submenu Flyout */
    .submenu-flyout {
        position: fixed;
        left: 75px;
        top: 4.8rem;
        width: 180px;
        height: calc(100vh - 5.5rem);
        max-height: calc(100vh - 5.5rem);
        border-radius: 20px;
        padding: 1rem;
        overflow-y: auto;
        overflow-x: visible;
        transform: translateX(-100%);
        transition: transform 0.4s ease-in-out, opacity 0.3s ease-in-out;
        z-index: 999;
        opacity: 0;
        pointer-events: none;
        display: block !important;
    }

    .submenu-flyout.active {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
    }

    .submenu-title {
        font-size: 16px;
        font-weight: 700;
        color: var(--text-white);
        margin-bottom: 0;
        padding-bottom: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }

    .submenu-list {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        position: relative;
        z-index: 1;
    }

    .submenu-item {
        position: relative;
        z-index: auto; flex-direction: column; width: 100%; align-items: flex-start;
    }

    .submenu-item a {
        font-size: 14px;
        color: rgba(255, 255, 255, 1);
        text-decoration: none;
        transition: color 0.3s ease;
        display: block;
        position: relative;
    }

    .submenu-item a:hover,
    .submenu-item a.active {
        color: var(--primary-color);
    }

    /* Sub-submenu on mobile */
    .sub-submenu {
        position: relative;
        margin-left: 0;
        padding: 0;
        background: transparent;
        border: none;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity 0.4s ease-in-out,
                    padding 0.4s ease-in-out,
                    margin 0.4s ease-in-out;
        min-width: 100%;
        left:0;
        backdrop-filter: none;
    }

    .sub-submenu.active {
        max-height: 600px;
        opacity: 1;
        overflow: visible;
        display: block; left: 0; border-radius: 0;
        
    }

    .sub-submenu li {
        opacity: 0;
        transform: translateX(-10px);
        transition: opacity 0.3s ease-out, transform 0.3s ease-out;
        margin-bottom: 16px;
    }

    .sub-submenu.active li {
        opacity: 1;
        transform: translateX(0);
    }

    .sub-submenu.active li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .sub-submenu.active li:nth-child(2) {
        transition-delay: 0.15s;
    }

    .sub-submenu.active li:nth-child(3) {
        transition-delay: 0.2s;
    }

    .sub-submenu.active li:nth-child(4) {
        transition-delay: 0.25s;
    }

    .sub-submenu li:last-child {
        margin-bottom: 0;
    }

    .sub-submenu li a {
        font-size: 13px;
        color: rgba(255, 255, 255, 0.7);
        padding: 4px 0;
    }

    .sub-submenu li a:hover {
        color: var(--primary-color);
    }

    .submenu-item a.has-children {
        display: flex;
        justify-content: space-between;
        align-items: center; padding: 0; width: 100%; margin-bottom: 10px;
    }

    .submenu-arrow {
        transition: transform 0.3s ease;
    }

    .submenu-item.expanded .submenu-arrow {
        transform: rotate(90deg);
    }

    .dashboard-filters {
        flex-wrap: wrap;
    }

    .stat-card, .stat-card.pie-charts-card {
        padding: 1rem; flex-direction: column;
    }
    

    /* Show burger menu on mobile */
    .burger-menu {
        display: flex;
    }

}

