/* ============================================
   RESPONSIVE DASHBOARD CSS WITH LIGHT THEME
   Enhanced mobile menu with burger animation
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


.p-0{padding: 0 !important;}
.b-r-0{border-radius: 0 !important;}
/* ============================================
   CSS VARIABLES FOR THEMING
   ============================================ */


:root {
    /* Dark Theme (Default) */
    --bg-primary: #0a0a0a;
    --bg-secondary: rgb(26 26 26 / 65%);
    --bg-tertiary: #222;
    --border-color: #3333336e;
    --text-primary: #fff;
    --text-secondary: #aaa;
    --text-tertiary: #888;
    --text-quaternary: #666;
    --accent-primary: #7c3aed;
    --accent-secondary: #a855f7;
    --hover-bg: #333;
    --card-gradient-start: #1a1a1a38;
    --card-gradient-end: #22222261;
    --scrollbar-track: #1a1a1a;
    --scrollbar-thumb: #333;
    --overlay-bg: rgba(0, 0, 0, 0.7);
    --success-bg: rgba(74, 222, 128, 0.2);
    --success-text: #4ade80;
    --warning-bg: rgba(251, 191, 36, 0.2);
    --warning-text: #fbbf24;
    --error-bg: rgba(248, 113, 113, 0.2);
    --error-text: #f87171;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 30px rgba(124, 58, 237, 0.3);
}

/* Light Theme */
body.light-theme {
    --bg-primary: #ececee;
    --bg-secondary: rgba(255, 255, 255, 0.35);
    --bg-tertiary: #fafafa;
    --border-color: #e5e5e736;
    --text-primary: #1d1d1f;
    --text-secondary: #515154;
    --text-tertiary: #86868b;
    --text-quaternary: #a1a1a6;
    --accent-primary: #7c3aed;
    --accent-secondary: #a855f7;
    --hover-bg: #f5f5f7;
    --card-gradient-start: #ffffff29;
    --card-gradient-end: #fafafab0;
    --scrollbar-track: #f5f5f7;
    --scrollbar-thumb: #d2d2d7;
    --overlay-bg: rgba(0, 0, 0, 0.3);
    --success-bg: rgba(52, 211, 153, 0.15);
    --success-text: #059669;
    --warning-bg: rgba(251, 191, 36, 0.15);
    --warning-text: #d97706;
    --error-bg: rgba(239, 68, 68, 0.15);
    --error-text: #dc2626;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 10px 30px rgba(124, 58, 237, 0.2);
    --font-family-sans-serif: "poppins", sans-serif;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-family-sans-serif: "poppins", sans-serif;
    font-family: poppins, sans-serif;
    line-height: 1.4;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ============================================
   THEME TOGGLE BUTTON
   ============================================ */

.theme-toggle {
    position: relative;
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
}

.theme-toggle:hover {
    background: var(--hover-bg);
    transform: scale(1.1);
    border-color: var(--accent-primary);
}

.theme-icon {
    transition: all 0.3s ease;
    color: #fff;
}

.theme-icon.sun {
    display: none;
}

.calculators .dashboard-header{
        grid-template-columns: repeat(1, 1fr);
}

.calculators .stat-label
 {
    font-size: 13px;
    color: var(--text-tertiary);
    line-height: 2.0rem;
    text-transform: uppercase;
}

.calc{margin-top:-5px; float: left;}
.logo-light{display: none;}
.light-theme .logo-dark{display: none}

.light-theme .logo-light{display: block;}

body.light-theme .theme-icon.moon {
    display: none;
}

body.light-theme .theme-icon.sun {
    display: block;
    color: #777;
}

/* ============================================
   LAYOUT CONTROLS
   ============================================ */

.layout-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    min-height: 80px;
}

.layout-btn {
    width: 36px;
    height: 36px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    font-size: 16px;
}

.layout-btn:hover {
    background: var(--hover-bg);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-2px);
}

.layout-btn:active {
    transform: translateY(0);
}

.layout-btn.save {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #fff;
}

.layout-btn.save:hover {
    background: #6d28d9;
}

/* ============================================
   SIDEBAR - BASE STYLES
   ============================================ */

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 240px;
    height: 100vh;
    background: rgba(26, 26, 26, 0.95);
    border-right: 1px solid var(--border-color);
    padding: 0 0 0px 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.3s ease;
    z-index: 999;
    overflow: hidden;
    scrollbar-gutter: stable;
}
.light-theme .nav-text{color: #fff;}

.recommendz {float: right;
    position: absolute;
    right: 1.5rem;}

.sidebar:hover {
    overflow-y: auto;
}

.sidebar.minimized {
    width: 80px;
}

.sidebar.minimized .nav-text,
.sidebar.minimized .section-title,
.sidebar.minimized .logo-text {
    opacity:1;
    visibility: visible;
        text-indent: -5000px;

}

.sidebar .nav-text,
.sidebar .section-title,
.sidebar .logo-text{text-indent: 0; display: inline-block;    margin-left: 8px;}

.sidebar.minimized .share-text{
    display: none;
}
.sidebar.minimized .nav-item {
    justify-content: center;
}

/* Logo Section */
.logo-section {
    padding: 8px 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: -10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    background: var(--bg-secondary);
    z-index: 1;
    position: sticky;
    top: 0;
    left: 0;
    height: 55px;
    transition: background-color 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

/* FIXED: Logo icon - using gradient background instead of missing image */
.logo-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 5px;
}

.logo-icon:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.logo-text {
    font-size: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
    white-space: nowrap;
    color: var(--text-primary);
}

.minor {
    font-size: 20px;
    font-weight: 100;
}

/* ============================================
   BURGER MENU BUTTON
   ============================================ */

.menu-toggle {
    width: 35px;
    height: 35px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    margin-right: -15px;
}

.menu-toggle:hover {
    /*background: var(--hover-bg);*/
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: #fff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.sidebar.mobile-open .menu-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.sidebar.mobile-open .menu-toggle span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.sidebar.mobile-open .menu-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ============================================
   NAVIGATION SCROLLER
   ============================================ */

.nav_scroller {
    margin-top: 0px;
    width: 100%;
    position: relative;
}

.section-title {
    width: 100%;
    padding: 0.4rem 25px;
    font-size: 12px;
    color: var(--text-tertiary);
    margin: 10px 0 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    white-space: nowrap;
    border-top: 1px dotted var(--border-color);
    border-bottom: 1px dotted var(--border-color);
    text-align: left;
    display: inline-flex;
}

.nav-item {
    display: block;
    align-items: center;
    gap: 15px;
    padding: 5px 25px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    font-size: 13px;
    max-height: 40px;
    overflow: hidden;
    line-height: 1.9rem;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent-primary);
    transform: scaleY(0);
    transition: all 0.3s ease;
}

.nav-item:hover,
.nav-item.active {
    color: var(--text-primary);
    background: rgba(124, 58, 237, 0.1);
}

.nav-item.active::before {
    transform: scaleY(1);
}

.nav-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.nav-text {
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* ============================================
   TOP HEADER
   ============================================ */
.light-theme input[type=search] {border: 1px solid #d4d4d4;}

.topheader {
    position: fixed;
    top: 0;
    left: 240px;
    right: 0;
    height: 55px;
    /*background: var(--bg-tertiary);*/
    background: #64646414;
    z-index: 998;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 7%;
    border-bottom: 1px solid var(--border-color);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.3s ease;
    font-size: 12px;
    backdrop-filter: blur(4px);
}

.topheader.expanded {
    left: 80px;
}

.header-left,
.header-middle,
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-middle {
    flex: 1;
    justify-content: center;
    max-width: 600px;
}

.search-box {
    position: relative;
    width: 100%;
    max-width: 400px;
margin-right: -100px;
}

.search-box input {
    width: 100%;
    height: 40px;
    background:rgb(134 134 134 / 10%);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 0 20px 0 45px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
}

.search-box input::placeholder {
    color: var(--text-tertiary);
}

/* FIXED: Search box - using emoji instead of missing image */
.search-box::before {
    content: '🔍';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    opacity: 0.6;
    z-index: 1;
}

input[type=search] {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #373737;

    font-size: 13px;
    padding: 12px 20px 12px 40px;
    font-weight: 100;
}

.notification-icon {
    position: relative;
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.notification-icon:hover {
    background: var(--hover-bg);
    transform: scale(1.1);
    border: 1px solid var(--accent-primary);
}

.notification-icon::after {
    content: "";
    font-size: 16px;
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    background: var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    color: #fff;
}

.profile-section {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 0px;
    border-radius: 100%;
    transition: all 0.3s ease;
    border: none;
}

.profile-section:hover {
    border: 0px solid var(--border-color);
    padding: 0 !important;
    margin: 0;
}

/* FIXED: Profile image - using gradient background instead of missing image */
.profile-image {
    width: 36px;
    height: 36px;
    border-radius: 100%;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    color: #fff;
    background-size: cover;
    background-position: center;
    padding: 0;
    transition: all 0.3s ease;
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.main-content {
    margin-left: 240px;
    margin-top: 55px;
    padding: 30px 60px;
    transition: margin-left 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.3s ease;
    min-height: calc(100vh - 70px);
      display: block;
    position: absolute;
    right: 0;
    left: 0;
}

.main-content.expanded {
    margin-left: 80px;
}

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

.dashboard-header-content h1 {
    font-size: 25px;
    margin-bottom: 5px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
        background: linear-gradient(95deg, #059dff 15%, #6549D5 45%, #E33FA1 75%, #FB5343 100%) 98% / 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dashboard-header-content p {
    color: var(--text-tertiary);
    font-size: 14px;
}

/* ============================================
   DRAGGABLE STATS GRID
   ============================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, var(--card-gradient-start) 0%, var(--card-gradient-end) 100%);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: default;

}

/* Drag Handle - Three Dots */
.drag-handle {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
}

.stat-card:hover .drag-handle,
.chart-card:hover .drag-handle,
.table-section:hover .drag-handle {
    opacity: 1;
}

.drag-handle:hover {
    background: var(--hover-bg);
    border-color: var(--accent-primary);
    transform: scale(1.1);
}

.drag-handle:active {
    cursor: grabbing;
}

.drag-handle::before {
    content: '⋮';
    font-size: 18px;
    color: var(--text-tertiary);
    font-weight: bold;
}

/* Dragging States - ENTIRE CARD HIGHLIGHTED */
.stat-card.dragging,
.chart-card.dragging,
.table-section.dragging {
    opacity: 1 !important;
    transform: scale(1.02);
    border: 3px solid var(--accent-primary);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(168, 85, 247, 0.1));
    box-shadow: 0 15px 40px rgba(124, 58, 237, 0.4);
    z-index: 1000;
    position: relative;
}

.stat-card.dragging *,
.chart-card.dragging *,
.table-section.dragging * {
    opacity: 1 !important;
}

.stat-card.dragging .drag-handle,
.chart-card.dragging .drag-handle,
.table-section.dragging .drag-handle {
    cursor: grabbing;
    opacity: 1;
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #fff;
}

/* Drag Mode - Fade out non-dragged cards */
body.drag-mode .stat-card:not(.dragging),
body.drag-mode .chart-card:not(.dragging),
body.drag-mode .table-section:not(.dragging) {
    border: 2px dashed var(--border-color);
    background: var(--bg-secondary);
}

body.drag-mode .stat-card:not(.dragging) > *:not(.drag-handle),
body.drag-mode .chart-card:not(.dragging) > *:not(.drag-handle),
body.drag-mode .table-section:not(.dragging) > *:not(.drag-handle) {
    opacity: 0.3;
}

/* Drag Over State - Drop Zone Highlighting */
.stat-card.drag-over,
.chart-card.drag-over,
.table-section.drag-over {
    border: 3px dashed var(--accent-primary);
    background: rgba(124, 58, 237, 0.08);
    transform: scale(1.02);
}

/* Draggable Sections Container */
.draggable-container {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

/* Make all cards draggable */
.stat-card,
.chart-card,
.table-section {
    cursor: default;
      -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

/* Width adaptation for cross-container dragging */
.chart-section.single-column {
    grid-template-columns: 1fr;
}

.chart-section.two-column {
    /*grid-template-columns: 2fr 1fr;*/
}

/* Ensure dragged large cards can fit in stat grid */
.stats-grid .chart-card,
.stats-grid .table-section {
    grid-column: 1 / -1;
}

/* Ensure stat cards in chart section take full width */
.chart-section .stat-card {
    width: 100%;
}

.stat-card::before {

    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transform: scaleX(0);
    transition: all 0.3s ease;
}

.stat-card:hover {
    /*transform: translateY(-5px);*/
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-primary);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.stat-title {
    font-size: 12px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    position: absolute;
    right: 0;
    bottom: 0;
    display: none;
}

.stat-value {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--text-primary);
    float: left;
}

.stat-change {
    font-size: 13px;
       color: var(--success-text);
    float: right;
    display: block;
    bottom: 0;
    position: relative;
    margin-top: 1.3rem;
        font-size: .75rem;
    font-weight: 100;
}

.stat-change.negative {
    color: var(--error-text);
}

/* ============================================
   CHART SECTION
   ============================================ */

.chart-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.chart-card {
    background: linear-gradient(135deg, var(--card-gradient-start) 0%, var(--card-gradient-end) 100%);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    max-height: 470px;

}

.chart-card:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-md);
}

.chart-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 20px;
    gap: 20px;
}

.chart-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
        MARGIN-TOP: -10PX;
    MARGIN-LEFT: -5PX;
}

.chart-filter {
    display: flex;
    gap: 10px;
    margin-left: 20px;
}

.filter-btn {
    padding: 6px 14px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-tertiary);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #fff;
}

.chart-placeholder {
    height: 300px;
    background: var(--bg-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-quaternary);
    font-size: 14px;
}

/* Activity Feed */
.activity-feed {
    max-height: 350px;
    overflow: hidden;
}

.activity-feed:hover {
    overflow-y: auto;
}

.activity-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);

}

.activity-item:last-child {
    border-bottom: none;
}

.activity-item:hover {
    background: rgba(124, 58, 237, 0.05);
  /*  padding-left: 10px;*/
  /*margin-right: -5px;*/
  /*  padding-right: 10px;*/
  /*  margin-right: -5px;*/
    border-radius: 0px;

    cursor:pointer ;
    border-right: 3px solid var(--accent-primary);;
}

.activity-icon {
    width: 40px;
    height: 40px;
    background: rgba(124, 58, 237, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-size: 14px;
    margin-bottom: 4px;
    color: var(--text-primary);
    font-weight: 200;
}

.activity-time {
    font-size: 12px;
    color: var(--text-quaternary);
}

/* Data Table */
.table-section {
    background: linear-gradient(135deg, var(--card-gradient-start) 0%, var(--card-gradient-end) 100%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
    overflow-x: auto;
    transition: all 0.3s ease;
    position: relative;
    max-height: 435px;
    overflow: hidden;
}

.table-section-body {
    overflow: hidden;
    max-height: 350px;
    scrollbar-gutter: stable;
}

.table-section-body:hover {
    overflow-y: scroll;
}

.table-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.table-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.table-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.action-btn {
    padding: 8px 16px;
    background: var(--accent-primary);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: #6d28d9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(124, 58, 237, 0.4);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead tr {
    background: var(--bg-primary);
}

.data-table th {
    padding: 15px;
    text-align: left;
    font-size: 13px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
}

.data-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 200;
}

.data-table tbody tr:hover td {
    background: rgba(124, 58, 237, 0.05);
}

.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
    white-space: nowrap;
}

.status-active {
    background: var(--success-bg);
    color: var(--success-text);
}

.status-pending {
    background: var(--warning-bg);
    color: var(--warning-text);
}

.status-inactive {
    background: var(--error-bg);
    color: var(--error-text);
}

/* ============================================
   NOTIFICATION PANEL
   ============================================ */

.notification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--overlay-bg);
    z-index: 997;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.notification-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 420px;
    height: 100vh;
    background: rgb(26 26 26);
    border-left: 1px solid var(--border-color);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.2);
}

.notification-panel.open {
    transform: translateX(0) !important;
        background: rgb(26 26 26 / 89%) !important;
}

.modal-box{  background: rgb(26 26 26 / 89%) !important;}

.logo-link{
   width:85px;
    margin:5px 0 0 -120px;opacity: 1;
}

.logo-icon{opacity: 1;}

.logo-link img{
    width:100%;
}

.logo-icon{visibility: hidden; transition: opacity 2s ease; opacity: 0;}

.minimized .logo-icon{visibility: visible;   transition: opacity 2s ease; opacity: 1;}
.minimized .logo-link{visibility: hidden;   transition: opacity 2s ease;opacity: 0;}
.minimized .menu-toggle{visibility: hidden;   transition: opacity 1.5s ease;opacity: 0}

.light-theme .logo-section{ background: rgb(45 46 46) !important;border-bottom: none;}
.logo-section{     background: rgb(24 24 24) !important;border-bottom: none;}



.logo-link .logo-light{display: none;}

body.notification-panel-open {
    margin-right: 420px;
    transition: margin-right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.notification-panel-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.notification-panel-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.notification-panel-close {
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
}

.notification-panel-close:hover {
    background: var(--hover-bg);
    border-color: var(--accent-primary);
    transform: rotate(90deg);
}

.notification-panel-filters {
    padding: 15px 25px;
    display: flex;
    gap: 10px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.notification-filter {
    padding: 6px 14px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-tertiary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.notification-filter:hover {
    background: var(--hover-bg);
    border-color: var(--border-color);
}

.notification-filter.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #fff;
}

.notification-panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}

.notification-item {
    display: flex;
    gap: 15px;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.notification-item:hover {
    background: rgba(124, 58, 237, 0.05);
}

.notification-item.unread {
    background: rgba(124, 58, 237, 0.03);
}

.notification-item.unread::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent-primary);
}

.notification-indicator {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-primary);
    opacity: 0;
}

.notification-item.unread .notification-indicator {
    opacity: 1;
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    border: none;
}

.notification-item .notification-icon {
    display: none;
}

.notification-item:hover .notification-icon {
    transform: scale(1.1);
    border:2px solid purple;
}

.notification-icon.critical-icon {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.notification-icon.high-icon {
    background: rgba(249, 115, 22, 0.2);
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.notification-icon.medium-icon {
    background: rgba(234, 179, 8, 0.2);
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.notification-icon.low-icon {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.notification-icon.info-icon {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.notification-icon.success-icon {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 6px;
}

.notification-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

.notification-badge-critical,
.notification-badge-high,
.notification-badge-medium,
.notification-badge-low,
.notification-badge-info,
.notification-badge-success {
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.notification-badge-critical {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.notification-badge-high {
    background: rgba(249, 115, 22, 0.2);
    color: #f97316;
}

.notification-badge-medium {
    background: rgba(234, 179, 8, 0.2);
    color: #eab308;
}

.notification-badge-low,
.notification-badge-success {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.notification-badge-info {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.notification-message {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 10px;
}

.notification-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.notification-time {
    font-size: 12px;
    color: var(--text-quaternary);
}

.notification-action {
    padding: 4px 12px;
    background: transparent;
    border: 1px solid var(--accent-primary);
    border-radius: 6px;
    color: var(--accent-primary);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.notification-action:hover {
    background: var(--accent-primary);
    color: #fff;
    transform: translateY(-1px);
}

.notification-panel-footer {
    padding: 15px 25px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.notification-footer-btn {
    flex: 1;
    padding: 10px 16px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.notification-footer-btn:hover {
    background: var(--hover-bg);
    border-color: var(--border-color);
}

.notification-footer-btn.primary {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #fff;
}

.notification-footer-btn.primary:hover {
    background: #6d28d9;
}

/* ============================================
   PROFILE DROPDOWN
   ============================================ */

.profile-button {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 2px 2px 1px 0px;
    border-radius: 25px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-primary);
}

.profile-button:hover,
.profile-section.active .profile-button {
    background: #8d44f8;
    border-color: var(--border-color);
}

.profile-name {
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.profile-arrow {
    font-size: 10px;
    transition: all 0.3s ease;
    color: var(--text-tertiary);
}

.profile-section.active .profile-arrow {
    transform: rotate(180deg);
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 280px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.profile-dropdown.open,
.profile-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    background: rgb(26,26,26);
}



.profile-dropdown-header {
    padding: 20px;
    display: flex;
    gap: 15px;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

/* FIXED: Profile image large - using gradient instead of missing image */
.profile-image-large {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    color: #fff;
}

.profile-info {
    flex: 1;
    min-width: 0;
}

.profile-name-large {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.profile-email {
    font-size: 13px;
    color: var(--text-tertiary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.profile-dropdown-menu,
.profile-dropdown-footer {
    padding: 8px;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.profile-menu-item:hover {
    background: rgba(124, 58, 237, 0.1);
    color: var(--text-primary);
    transform: translateX(4px);
}

.profile-menu-icon {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.profile-menu-logout {
    color: #ef4444;
}

.profile-menu-logout:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* ============================================
   DECORATIVE ELEMENTS
   ============================================ */

.dashboard .hero-ring,
.dashboard .hero-ring2 {
    position: fixed;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.dashboard .hero-ring {
    bottom: -200px;
    left: 20px;
    width: 500px;
    height: 500px;
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.25;
}

.dashboard .hero-ring2 {
    top: -200px;
    right: -120px;
    width: 500px;
    height: 500px;
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.25;
}

/* Light theme decorative elements */
body.light-theme .dashboard .hero-ring,
body.light-theme .dashboard .hero-ring2 {
    border-color: rgba(139, 92, 246, 0.15);
    opacity: 0.3;
}

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

::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* ============================================
   MOBILE HEADER ELEMENTS
   Logo & Burger menu for mobile/tablet
   ============================================ */

/* Mobile menu button - hidden by default on desktop */
.mobile-menu-btn {
    display: none;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 10px;
    border-radius: 8px;
    transition: background 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-btn:hover {
    background: var(--hover-bg);
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

/* Burger to X animation when sidebar is open */
body.sidebar-open .mobile-menu-btn span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

body.sidebar-open .mobile-menu-btn span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

body.sidebar-open .mobile-menu-btn span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile logo - hidden by default on desktop */
.mobile-logo {
    display: none;
    align-items: center;
    text-decoration: none;
}

.mobile-logo img {
    height: 28px;
    width: auto;
}

/* Sidebar backdrop overlay */
.sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

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

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

@media (max-width: 1024px) {
    body.notification-panel-open {
        margin-right: 0;
    }

    .notification-panel {
        width: 100%;
        max-width: 420px;
    }

    .topheader {
        left: 0;
        padding: 0 15px;
    }

    .main-content {
        margin-left: 0;
        padding: 30px 20px;
    }

    .main-content.expanded {
        margin-left: 0;
    }

    .sidebar {
        transform: translateX(-100%);
        width: 280px;
        z-index: 1000;
    }

    .sidebar.mobile-open {
        transform: translateX(0);
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Ensure nav scroller allows full scrolling on mobile */
    .sidebar.mobile-open .nav_scroller {
        padding-bottom: 20px;
    }

    /* Larger touch targets for mobile nav items (min 44px) */
    .sidebar.mobile-open .nav-item {
        padding: 12px 25px;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    /* Show mobile menu button and logo */
    .mobile-menu-btn {
        display: flex;
    }

    .mobile-logo {
        display: flex;
    }

    .header-left {
        gap: 12px;
    }

    .chart-section {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .header-middle {
        display: none;
    }

    /* Hide the sidebar's internal menu toggle on mobile - we use the header one instead */
    .sidebar .menu-toggle {
        display: none;
    }
}

@media (max-width: 768px) {
    .notification-panel {
        width: 100%;
        max-width: 100%;
    }

    .topheader {
        padding: 0 12px;
        height: 56px;
    }

    .main-content {
        margin-top: 56px;
        padding: 16px;
    }

    .sidebar {
        width: 85%;
        max-width: 300px;
    }

    /* Larger touch target for mobile logo */
    .mobile-logo img {
        height: 26px;
    }

    /* Smaller gaps on mobile */
    .header-left {
        gap: 8px;
    }

    .header-right {
        gap: 8px;
    }

    .dashboard-header-content h1 {
        font-size: 22px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .stat-value {
        font-size: 26px;
    }

    .chart-card {
        padding: 16px;
    }

    .chart-placeholder {
        height: 220px;
    }

    .table-section {
        padding: 16px;
        overflow-x: auto;
    }

    .table-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .table-actions {
        width: 100%;
    }

    .action-btn {
        flex: 1;
        text-align: center;
        padding: 10px 16px;
        min-height: 44px;
    }

    .data-table {
        min-width: 600px;
    }

    .header-right {
        gap: 10px;
    }

    .search-box {
        max-width: 200px;
    }

    .search-box input {
        height: 36px;
        font-size: 13px;
        padding: 0 15px 0 40px;
    }

    .profile-dropdown {
        width: 260px;
    }

    .profile-name {
        display: none;
    }
}

@media (max-width: 500px) {
    .main-content {
        padding: 12px;
    }

    .topheader {
        padding: 0 8px;
        height: 52px;
    }

    .main-content {
        margin-top: 52px;
    }

    /* Mobile menu button - slightly smaller on very small screens */
    .mobile-menu-btn {
        width: 40px;
        height: 40px;
        padding: 8px;
    }

    .mobile-menu-btn span {
        width: 20px;
    }

    /* Smaller logo on very small screens */
    .mobile-logo img {
        height: 35px;
        margin-top:5px;
    }

    .header-left {
        gap: 6px;
    }

    .header-right {
        gap: 18px;
    }

    .dashboard-header-content h1 {
        font-size: 18px;
    }

    .dashboard-header-content p {
        font-size: 12px;
    }

    .stat-card {
        padding: 14px;
    }

    .stat-value {
        font-size: 22px;
    }

    .chart-title,
    .table-title {
        font-size: 15px;
    }

    .filter-btn {
        padding: 5px 10px;
        font-size: 11px;
    }

    /* Hide search box on very small screens - not enough space */
    .search-box {
        display: none;
    }

    .notification-icon,
    .theme-toggle {
        /*width: 36px;*/
        /*height: 36px;*/
        font-size: 16px;
        min-height: 30px;
    }

    .profile-image {
        width: 32px;
        height: 32px;
    }

    .notification-panel-filters {
        padding: 10px 12px;
        gap: 6px;
    }

    .notification-filter {
        padding: 5px 10px;
        font-size: 12px;
    }

    .notification-item {
        padding: 12px 15px;
        gap: 12px;
    }

    .notification-panel-footer {
        padding: 12px 15px;
        flex-direction: column;
    }

    .profile-dropdown {
        right: -10px;
        width: calc(100vw - 20px);
        max-width: 300px;
    }

    .layout-controls {
        gap: 5px;
    }

    .layout-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .sidebar {
        width: 240px;
    }

    .topheader {
        height: 50px;
    }

    .main-content {
        margin-top: 50px;
    }
}

@media (max-width: 1024px) {
    .sidebar.mobile-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--overlay-bg);
        z-index: -1;
        animation: fadeIn 0.3s ease;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.lordi {
    margin-bottom: -10px;
    width: 25px;
}

.lordi2 {
    margin-bottom: 0px;
    width: 20px !important;
}

/* FIXED: Chat widget - using gradient + emoji instead of missing gif */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    text-align: right;
}

.chat-bubble {
    position: absolute;
    bottom: 80px;
    right: 0;
    background: #fff;
    color: #333;
    padding: 1rem 1.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    max-width: 250px;
    display: none;
}

.chat-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 1px 20px rgba(139, 92, 246, 0.8);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-button::before {
    content: '💬';
    font-size: 24px;
}

.chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 30px rgba(139, 92, 246, 0.9);
}

.chat-bubble.show {
    display: block;
    animation: 0.3s ease 0s 1 normal none running fadeIn;
    width: 250px;
}

.mb-0 {
    margin-bottom: 0 !important;
}

/* ============================================
   LEADS PAGE STYLES
   ============================================ */

.leads-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 20px;
    flex-wrap: wrap;
}

.leads-title-section h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.leads-title-section p {
    color: var(--text-tertiary);
    font-size: 14px;
}

.leads-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.action-btn-primary {
    padding: 8px 15px 8px 8px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 13px;
    font-weight: 100;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.action-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.5);
}

.action-btn-secondary {
    padding: 10px 15px;
    background: var(--bg-secondary);
    border: 0px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 100;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-btn-secondary:hover {
    background: var(--hover-bg);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

/* Stats Overview */
.leads-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card-mini {
    background: linear-gradient(135deg, var(--card-gradient-start) 0%, var(--card-gradient-end) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.stat-card-mini:hover {
    transform: translateY(-3px);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-md);
}

.stat-card-mini-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0px;
}

.stat-card-mini-title {
    font-size: 13px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card-mini-icon {
    font-size: 24px;
    display: none;
}

.stat-card-mini-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0px;
}

.stat-card-mini-change {
    font-size: 13px;
    color: var(--success-text);
}

.stat-card-mini-change.negative {
    color: var(--error-text);
}

/* Filter and Search Section */
.leads-controls {
    background: linear-gradient(135deg, var(--card-gradient-start) 0%, var(--card-gradient-end) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    width: 100%;
    display: contents;
}

.controls-row {
    display: inline-table;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.controls-row:last-child {
    margin-bottom: 0;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 20px 12px 45px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.search-input::placeholder {
    color: var(--text-tertiary);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: var(--text-tertiary);
}

.filter-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-select {
    padding: 12px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.filter-select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.filter-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 15px;
}

.filter-tag {
    padding: 6px 12px;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 20px;
    color: var(--accent-primary);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.filter-tag:hover {
    background: rgba(124, 58, 237, 0.2);
}

.filter-tag-remove {
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    line-height: 1;
}

.clear-filters {
    padding: 6px 12px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-tertiary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.clear-filters:hover {
    background: var(--hover-bg);
    border-color: var(--error-text);
    color: var(--error-text);
}

/* Leads Table */
.leads-table-container {
    background: linear-gradient(135deg, var(--card-gradient-start) 0%, var(--card-gradient-end) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    margin-top: 20px;
}

.leads-table-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-view-options {
    display: flex;
    gap: 8px;
}

.view-btn {
    padding: 8px 12px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-tertiary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.view-btn:hover,
.view-btn.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #fff;
}

.leads-table-wrapper {
    overflow-x: auto;
    max-height: 600px;
    overflow-y: auto;
}

.leads-table {
    width: 100%;
    border-collapse: collapse;
}

.leads-table thead {
    background: var(--bg-primary);
    position: sticky;
    top: 0;
    z-index: 10;
}

.leads-table th {
    padding: 16px 20px;
    text-align: left;
    font-size: 12px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    position: relative;
}

.leads-table th:hover {
    color: var(--accent-primary);
}

.leads-table th.sortable::after {
    content: '⇅';
    margin-left: 8px;
    opacity: 0.3;
    font-size: 14px;
}

.leads-table th.sorted-asc::after {
    content: '↑';
    opacity: 1;
    color: var(--accent-primary);
}

.leads-table th.sorted-desc::after {
    content: '↓';
    opacity: 1;
    color: var(--accent-primary);
}

.leads-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.leads-table tbody tr:hover {
    background: rgba(124, 58, 237, 0.05);
}

.leads-table td {
    padding: 18px 20px;
    font-size: 14px;
    color: var(--text-primary);
}

.lead-name {
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.lead-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    flex-shrink: 0;
}

.lead-info {
    display: flex;
    flex-direction: column;
}

.lead-email {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 2px;
}

.source-badge {
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    white-space: nowrap;
}

.source-whatsapp {
    background: rgba(37, 211, 102, 0.15);
    color: #25d366;
}

.source-web {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.source-voice {
    background: rgba(168, 85, 247, 0.15);
    color: #a855f7;
}

.source-social {
    background: rgba(236, 72, 153, 0.15);
    color: #ec4899;
}

.priority-badge {
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.priority-high {
    background: var(--error-bg);
    color: var(--error-text);
}

.priority-medium {
    background: var(--warning-bg);
    color: var(--warning-text);
}

.priority-low {
    background: rgba(100, 116, 139, 0.15);
    color: #64748b;
}

.lead-actions {
    display: flex;
    gap: 8px;
}

.action-icon-btn {
    width: 32px;
    height: 32px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.action-icon-btn:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #fff;
    transform: translateY(-2px);
}

/* Pagination */
.pagination-container {
    padding: 20px 25px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.pagination-info {
    font-size: 14px;
    color: var(--text-tertiary);
}

.pagination {
    display: flex;
    gap: 8px;
}

.page-btn {
    padding: 8px 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-btn:hover {
    background: var(--hover-bg);
    border-color: var(--accent-primary);
}

.page-btn.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #fff;
}

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

.page-btn:disabled:hover {
    background: var(--bg-primary);
    border-color: var(--border-color);
}

/* Responsive Leads */
@media (max-width: 1024px) {
    .leads-stats {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .leads-table-wrapper {
        max-height: 500px;
    }
}

@media (max-width: 768px) {
    .leads-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .leads-actions {
        width: 100%;
        flex-direction: column;
    }

    .action-btn-primary,
    .action-btn-secondary {
        width: 100%;
        justify-content: center;
    }

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

    .search-input-wrapper {
        width: 100%;
    }

    .filter-group {
        width: 100%;
        flex-direction: column;
    }

    .filter-select {
        width: 100%;
    }

    .leads-table {
        min-width: 800px;
    }

    .pagination-container {
        flex-direction: column;
        align-items: stretch;
    }

    .pagination {
        justify-content: center;
    }
}

/* ============================================
   LOADING OVERLAY
   ============================================ */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.spinner-large {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    margin-top: 20px;
    color: var(--text-secondary);
    font-size: 14px;
}
.rainbow-gradient-circle {
  position: fixed;
  left: -250px;
  top: 250px;
  right: auto;
  bottom: auto;
  z-index: -1;
  width: 500px;
  height: 500px;
  border-radius: 1000px;
  background-image: linear-gradient(45deg, #059DFF, #36C6F0);
  opacity: 0.25;
  -webkit-filter: blur(100px);
  filter: blur(100px);
}
.rainbow-gradient-circle.theme-pink {
  left: auto;
  top: -250px;
  right: -250px;
  bottom: auto;
  background-image: linear-gradient(45deg, #FB5343, #6549D5);
}

.theme-gradient {
    background: linear-gradient(95deg, #059dff 15%, #6549D5 45%, #E33FA1 75%, #FB5343 100%) 98% / 200% 100%;
    text-transform: capitalize;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.share-text{    white-space: nowrap;font-size: 13px;}
.logo-link{text-decoration: none;
}

.step-text strong{text-transform: uppercase;}

.profile-card{
        -webkit-backdrop-filter: blur(3px) !important;
    backdrop-filter: blur(3px) !important;
    background: linear-gradient(135deg, var(--card-gradient-start) 0%, var(--card-gradient-end) 100%) !important;
}

.main-content{padding: 1.5% 5% !important;
  }

.title-dot{
    width:8px;
    height:8px;
    border-radius: 50%;
    display: block;
    /*background: linear-gradient(95deg, #059dff 15%, #6549D5 45%, #E33FA1 75%, #FB5343 100%) 98% / 200% 100%;*/
    background: #fff;
        margin: auto;

    margin-right: 8px;

}

 /* =====================================================
           SHARE MODAL
           ===================================================== */
        .share-modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(4px);
            z-index: 9998;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease;
        }

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

        .share-modal {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) scale(0.9);
            width: 90%;
            max-width: 440px;
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: 20px;
            z-index: 9999;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
        }

        .share-modal.active {
            opacity: 1;
            visibility: visible;
            transform: translate(-50%, -50%) scale(1);
        }

        .share-modal-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 20px 24px;
            border-bottom: 1px solid var(--border-color);
        }

        .share-modal-header h3 {
            font-size: 18px;
            font-weight: 700;
            color: var(--text-primary);
            margin: 0;
        }

        .share-modal-close {
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--bg-primary);
            border: 1px solid var(--border-color);
            border-radius: 50%;
            color: var(--text-secondary);
            font-size: 24px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .share-modal-close:hover {
            background: var(--error-text);
            border-color: var(--error-text);
            color: #fff;
        }

        .share-modal-body {
            padding: 24px;
        }

        .share-modal-subtitle {
            text-align: center;
            color: var(--text-tertiary);
            font-size: 14px;
            margin-bottom: 24px;
        }

        /* Social Share Buttons */
        .share-buttons {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 12px;
            margin-bottom: 24px;
        }

        .share-social-btn {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            padding: 16px 12px;
            background: var(--bg-primary);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            color: var(--text-primary);
            font-size: 12px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .share-social-btn:hover {
            transform: translateY(-2px);
            border-color: var(--accent-primary);
        }

        .share-social-btn .social-icon {
            font-size: 24px;
        }

        .share-social-btn.whatsapp:hover {
            background: rgba(37, 211, 102, 0.15);
            border-color: #25d366;
        }

        .share-social-btn.facebook:hover {
            background: rgba(24, 119, 242, 0.15);
            border-color: #1877f2;
        }

        .share-social-btn.twitter:hover {
            background: rgba(29, 161, 242, 0.15);
            border-color: #1da1f2;
        }

        .share-social-btn.linkedin:hover {
            background: rgba(10, 102, 194, 0.15);
            border-color: #0a66c2;
        }

        .share-social-btn.telegram:hover {
            background: rgba(0, 136, 204, 0.15);
            border-color: #0088cc;
        }

        .share-social-btn.email:hover {
            background: rgba(124, 58, 237, 0.15);
            border-color: var(--accent-primary);
        }

        /* Copy Link Section */
        .share-link-section {
            border-top: 1px solid var(--border-color);
            padding-top: 20px;
        }

        .share-link-section label {
            display: block;
            font-size: 13px;
            color: var(--text-tertiary);
            margin-bottom: 10px;
        }

        .share-link-input-group {
            display: flex;
            gap: 8px;
        }

        .share-link-input-group input {
            flex: 1;
            padding: 12px 16px;
            background: var(--bg-primary);
            border: 1px solid var(--border-color);
            border-radius: 10px;
            color: var(--text-primary);
            font-size: 13px;
        }

        .copy-link-btn {
            padding: 12px 20px;
            background: var(--accent-primary);
            border: none;
            border-radius: 10px;
            color: #fff;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            min-width: 80px;
        }

        .copy-link-btn:hover {
            background: var(--accent-secondary);
        }

        .copy-link-btn.copied {
            background: var(--success-text);
        }

        /* Mobile responsive for share modal */
        @media (max-width: 480px) {
            .share-buttons {
                grid-template-columns: repeat(2, 1fr);
            }

            .share-modal-body {
                padding: 16px;
            }
        }

.light-theme .icon-bell{color: #333;}
.icon-bell{color: #fff;}

.light-theme  .theme-toggle{background:var(--bg-secondary);}
.light-theme  .notification-icon{background:var(--bg-secondary);}

.light-theme .stat-card{    background: #ffffff6b;}
.light-theme .quote-card{ background: #ffffff6b;}
.neon-orb-bg{opacity: 0.5;}
        /* ==========================================
           DRAG HANDLE - 3 Vertical Dots
           ========================================== */
        .drag-handle {
            position: absolute;
            top: 12px;
            right: 12px;
            width: 24px;
            height: 24px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 3px;
            cursor: grab;
            opacity: 0.5;
            transition: opacity 0.2s;
            z-index: 10;
            border-radius: 50%;
            border:0;
        }

        .drag-handle:hover {
            opacity: 1;
            background: rgba(255,255,255,0.1);
        }

        .drag-handle::before,
        .drag-handle::after,
        .drag-handle span {
            content: '';
            width: 2px;
            height: 2px;
            background: var(--text-tertiary);
            border-radius: 50%;
        }

        .drag-handle:active { cursor: grabbing; }

        /* ==========================================
           DASHBOARD HEADER WITH DATE/TIME
           ========================================== */
        .dashboard-header {
            display: grid;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 20px;
            flex-wrap: wrap;
            gap: 16px;
             grid-template-columns: repeat(4, 1fr);
        }

        .dashboard-header-content {
            flex: 1;
            min-width: 200px;
            grid-column: 1 / span 3;
        }

        .dashboard-header-right {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 12px;
            grid-column: 4 / span 1;   /* 25% */
        }

        .light-theme .datetime-display{background: #ffffff6b;}
        .datetime-display {
            text-align: right;

            padding: 25px 16px;
            border-radius: 12px;
            border: 1px solid var(--border-color);
            width: 100%;
                -webkit-backdrop-filter: blur(2.5px);
    backdrop-filter: blur(2.5px);
                justify-content: right;
    height: 100%;
    display: grid;
    gap: 4px;
        }

        .datetime-display .date {
            font-size: 13px;
            color: var(--text-secondary);
            margin-bottom: 2px;
        }

        .datetime-display .time {
            font-size: 28px;
            font-weight: 700;
            color: var(--accent-primary);
            font-variant-numeric: tabular-nums;
            line-height: 1;
        }

        .member-since {
            font-size: 13px;
            color: var(--text-tertiary);
            margin-top: 4px;
        }

        /* ==========================================
           PARENT CONTAINERS
           ========================================== */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 20px;
            margin-bottom: 24px;
            padding: 8px;
            border: 2px dashed transparent;
            border-radius: 20px;
            transition: border-color 0.3s, background 0.3s;
        }

        .stats-grid.drag-active {
            border-color: #eab308;
            background: rgba(234, 179, 8, 0.05);
        }

        .main-draggable-area {
            display: grid;
            grid-template-columns: repeat(6, 1fr);
            gap: 24px;
            padding: 8px;
            border: 2px dashed transparent;
            border-radius: 20px;
            transition: border-color 0.3s, background 0.3s;
        }

        .main-draggable-area.drag-active {
            border-color: #ec4899;
            background: rgba(236, 72, 153, 0.05);
        }

        /* Full width cards */
        .main-draggable-area .full-width {
            grid-column: 1 / -1;
        }

        /* ==========================================
           DRAGGABLE CARDS
           ========================================== */
        .stat-card,
        .draggable-card {
            position: relative;
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: 16px;
            transition: all 0.3s ease;
        }

        .stat-card { padding: 20px; }

        /* Dragging states */
        body.is-dragging .stat-card:not(.sortable-chosen),
        body.is-dragging .draggable-card:not(.sortable-chosen) {
            opacity: 0.4;
            border: 2px dashed var(--border-color);
        }

        body.is-dragging .stats-grid .stat-card:not(.sortable-chosen) {
            border-color: rgba(234, 179, 8, 0.5);
        }

        body.is-dragging .main-draggable-area .draggable-card:not(.sortable-chosen) {
            border-color: rgba(236, 72, 153, 0.5);
        }

        .sortable-chosen {
            opacity: 1 !important;
            transform: scale(1.02);
            box-shadow: 0 20px 40px rgba(0,0,0,0.4);
            z-index: 1000;
            border: 2px solid var(--accent-primary) !important;
        }

        .sortable-ghost {
            opacity: 0.2 !important;
            border: 2px dashed var(--accent-primary) !important;
            background: rgba(124, 58, 237, 0.1) !important;
        }

        /* ==========================================
           STAT CARDS
           ========================================== */
        .stat-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
            padding-right: 30px;
        }

        .stat-title {
            font-size: 11px;
            font-weight: 600;
            color: var(--text-tertiary);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .stat-value {
            font-size: 32px;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 4px;
        }

        .stat-change {
            font-size: 13px;
            color: var(--accent-primary);
        }

        /* ==========================================
           UNITY TV CARD (Separate)
           ========================================== */
        .unity-tv-card {
            overflow: hidden;

        }

        .unity-tv-card .drag-handle {
            top: 16px;
            right: 16px;
            z-index: 20;
        }

        /* ==========================================
           ACTIVITY CARD (Separate)
           ========================================== */
        .activity-card {
            display: flex;
            flex-direction: column;
            min-height: 400px;
                -webkit-backdrop-filter: blur(2.5px);
    backdrop-filter: blur(2.5px);
                grid-column: 5 / span 2;
        }

        .activity-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 16px 20px;
            padding-right: 45px;
            border-bottom: 1px solid var(--border-color);
        }
.light-theme .icon-belly{
    color: #777 !important;}


        .activity-title {
            font-size: 16px;
            font-weight: 600;
            color: var(--text-primary);
            margin: 0;
            display: inline-flex;
        }

        .activity-feed {
            flex: 1;
            padding: 8px 0;
            overflow-y: auto;
        }

        .activity-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 20px;
            transition: background 0.2s;
        }

        .activity-item:hover { background: var(--bg-primary); }

        .activity-icon {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: var(--accent-primary);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            flex-shrink: 0;
        }

        .activity-content { flex: 1; min-width: 0; }
        .activity-text { font-size: 12px; color: var(--text-primary); margin: 0 0 2px 0; }
        .activity-time { font-size: 12px; color: var(--text-tertiary); }

        /* ==========================================
           TABLE SECTIONS
           ========================================== */
        .table-section { overflow: hidden;    margin-top: 10px; margin-bottom: 10px; }

        .table-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0px 30px 16px 10px;

            border-bottom: 1px solid var(--border-color);
            flex-wrap: wrap;
            gap: 12px;
        }

        .table-title {
            font-size: 18px;
            font-weight: 600;
            color: var(--text-primary);
            margin: 0;
            display: inline-flex;
        }

        .table-actions {
            display: flex;
            gap: 12px;
            align-items: center;
            flex-wrap: wrap;
        }

        .action-btn {
            padding: 8px 16px;
            background: var(--accent-primary);
            border: none;
            border-radius: 8px;
            color: #fff;
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
            white-space: nowrap;
        }

        .filter-select {
            padding: 8px 12px;
            background: var(--bg-primary);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            color: var(--text-primary);
            font-size: 13px;
        }

        .table-wrapper { overflow-x: auto; }

        .data-table {
            width: 100%;
            min-width: 600px;
            border-collapse: collapse;
        }

        .data-table th,
        .data-table td {
            padding: 14px 20px;
            text-align: left;
            border-bottom: 1px solid var(--border-color);
        }

        .data-table th {
            font-size: 12px;
            font-weight: 600;
            color: var(--text-tertiary);
            text-transform: uppercase;
            background: var(--bg-primary);
            white-space: nowrap;
        }

        .data-table td { font-size: 14px; color: var(--text-primary); }
        .data-table tbody tr:last-child td { border-bottom: none; }

        /* Badges */
        .area-badge { background: rgba(124, 58, 237, 0.2); color: var(--accent-primary); padding: 4px 10px; border-radius: 12px; font-size: 12px; white-space: nowrap; }
        .priority-badge { padding: 4px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; white-space: nowrap; }
        .priority-high { background: rgba(239, 68, 68, 0.2); color: #ef4444; }
        .priority-medium { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
        .priority-low { background: rgba(34, 197, 94, 0.2); color: #22c55e; }
        .status-badge { padding: 4px 10px; border-radius: 12px; font-size: 12px; white-space: nowrap; }
        .status-pending { background: rgba(156, 163, 175, 0.2); color: #9ca3af; }
        .status-progress { background: rgba(59, 130, 246, 0.2); color: #3b82f6; }
        .status-completed { background: rgba(34, 197, 94, 0.2); color: #22c55e; }
        .status-select { background: var(--bg-primary); border: 1px solid var(--border-color); color: var(--text-primary); padding: 6px 10px; border-radius: 6px; font-size: 12px; }

        /* ==========================================
           RESPONSIVE
           ========================================== */
        @media (max-width: 1400px) {
            .main-draggable-area { grid-template-columns: 1fr; }
            .main-draggable-area .full-width { grid-column: 1; }
        }

        @media (max-width: 992px) {
            .stats-grid { grid-template-columns: repeat(2, 1fr); }
        }

        @media (max-width: 768px) {
            .stats-grid { grid-template-columns: 1fr; }
            .stat-value { font-size: 28px; }

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

            .dashboard-header-right {
                align-items: flex-start;
                width: 100%;
                flex-direction: row;
                justify-content: space-between;
            }

            .datetime-display .time {
                font-size: 22px;
            }
        }

        @media (max-width: 480px) {
            .stats-grid, .main-draggable-area { gap: 12px; padding: 4px; }
            .stat-card { padding: 16px; }
            .stat-value { font-size: 24px; }
            .activity-item { padding: 10px 16px; }
            .activity-icon { width: 36px; height: 36px; font-size: 16px; }
        }

.public_profile .profile-bio-text{

        max-height: 138px;
    overflow-y: hidden;
    scrollbar-gutter: stable;
}

/* ============================================
   LIVE SESSION BANNER - HEADER INTEGRATION
   ============================================ */

/* Adjust header-middle to fit both search and live banner */
.header-middle {
    gap: 16px;
    max-width: 800px;
    margin-left:5%;
}

.header-middle .search-box {
    margin-right: 0; /* Remove existing negative margin */
}

/* On tablet, reduce search width */
@media (max-width: 992px) {
    .header-middle .search-box {
        max-width: 220px;
    }
}

/* On mobile, stack vertically */
@media (max-width: 768px) {
    .header-middle {
        flex-direction: column;
        gap: 8px;
    }

    .header-middle .live-session-banner {
        order: -1; /* Show banner above search */
    }
}


        /* ==========================================
           SHARED GRIDSTACK STYLES
           ==========================================*/
        .grid-stack {
            background: transparent;
        }

        .grid-stack-item-content {
            background: transparent !important;
            overflow: hidden !important;  /* Prevent content from overflowing */
        }

        /* Main grid cards also need inset for gaps */
        #dashboardGrid > .grid-stack-item > .grid-stack-item-content {
            inset: 15px 12px;
            overflow: hidden !important;
        }

        /* Ensure grid items don't overflow their cells */
        .grid-stack-item {
            overflow: hidden !important;
        }

        /* ==========================================
           STATS GRID ALIGNMENT
           ==========================================*/
        .stats-grid-wrapper {
            margin: 5px 0 !important;
            margin-left: -8px !important;
            margin-right: -8px !important;
            padding: 0 !important;
            overflow: visible;
        }

        /* Ensure stats cards have gaps */
        .stats-grid-stack > .grid-stack-item > .grid-stack-item-content {
            inset: 12px;
        }

        /* ==========================================
           MAIN AREA - Pink Zone
           ==========================================*/
        .main-draggable-area {
            display: block !important;
            padding: 0 !important;
            margin: 0 !important;
            /* Negative margin to align outer card edges - matches stats grid */
            margin-left: -8px !important;
            margin-right: -8px !important;
            border: 2px dashed transparent !important;
            background: transparent !important;
            border-radius: 20px;
            transition: border-color 0.3s, background 0.3s;
            overflow: visible;
        }

        .main-draggable-area.drag-active {
            border: 2px dashed #ec4899 !important;
            background: rgba(236, 72, 153, 0.05) !important;
        }

        /* Main grid cards fill their container */
        .main-draggable-area .grid-stack-item-content > * {
            height: 100% !important;
            width: 100% !important;
            margin: 0 !important;
            max-height: 100% !important;
            overflow: hidden !important;
        }

        /* Card inner content scrollable if needed */
        .main-draggable-area .grid-stack-item-content > * > * {
            max-height: 100%;

        }

        /* Unity TV special handling */
        .main-draggable-area .unity-tv-card {
            min-width: unset !important;
            grid-column: unset !important;
            max-height: 100% !important;
            overflow: hidden !important;
        }

        .main-draggable-area .unity-tv-player {
            min-height: 200px;
            max-height: calc(100% - 60px) !important;
            overflow: hidden !important;
        }

        .main-draggable-area .unity-tv-section {
            height: 100% !important;
            max-height: 100% !important;
            overflow: hidden !important;
        }

        /* Contain iframes and videos */
        .main-draggable-area iframe,
        .main-draggable-area video {
            max-height: 100% !important;
            max-width: 100% !important;
        }

        /* Pink placeholder */
        .main-draggable-area .grid-stack-placeholder > .placeholder-content {
            background: rgba(236, 72, 153, 0.15) !important;
            border: 2px dashed #ec4899 !important;
            border-radius: 16px;
        }

        /* Pink zone - card being dragged */
        .main-draggable-area .grid-stack-item.ui-draggable-dragging {
            z-index: 1000 !important;
        }

        .main-draggable-area .grid-stack-item.ui-draggable-dragging > .grid-stack-item-content {
            transform: scale(1.02);
        }

        .main-draggable-area .grid-stack-item.ui-draggable-dragging > .grid-stack-item-content > * {
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(236, 72, 153, 0.4) !important;
            border: 2px solid #ec4899 !important;
        }

        /* Pink zone - other cards while dragging */
        body.is-main-dragging .main-draggable-area .grid-stack-item:not(.ui-draggable-dragging) > .grid-stack-item-content > * {
            opacity: 0.4;
            border: 2px dashed rgba(236, 72, 153, 0.5) !important;
        }

        /* Pink zone - hover glow */
        .main-draggable-area .grid-stack-item > .grid-stack-item-content > * {
            transition: box-shadow 0.2s ease, border 0.2s ease;

        }

        .main-draggable-area .grid-stack-item:hover > .grid-stack-item-content > * {
            /*box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 15px rgba(236, 72, 153, 0.2) !important;*/
        }

        /* ==========================================
           RESIZE HANDLES - Pink Zone Only
           ==========================================*/
        .main-draggable-area .grid-stack-item > .ui-resizable-se {
            width: 24px;
            height: 24px;
            right: 4px;
            bottom: 4px;
            cursor: se-resize;
            opacity: 0;
            transition: opacity 0.2s;
        }

        .main-draggable-area .grid-stack-item:hover > .ui-resizable-se {
            opacity: 1;
            right: 4px;
    bottom: 4px;
        }

        .main-draggable-area .grid-stack-item > .ui-resizable-se::before {
            content: '';
            position: absolute;
            right: 2px;
            bottom: 2px;
            width: 14px;
            height: 14px;
            /*border-right: 3px solid var(--accent-primary);*/
            /*border-bottom: 3px solid var(--accent-primary);*/
            border-radius: 0 0 4px 0;
        }

        /* ==========================================
           SCROLLING
           ==========================================*/
        .grid-stack-item-content .activity-feed,
        .grid-stack-item-content .sessions-list {
            max-height: calc(100% - 60px);
            overflow-y: auto;
        }

        .grid-stack-item-content .table-section {
            display: flex;
            flex-direction: column;
        }

        .grid-stack-item-content .table-section .table-wrapper {
            flex: 1;
            overflow: auto;
        }


        .unity-tv-grid-mini .grid-stack-item-content {
            inset: 15px 0px !important;
        }

        .live_hide_mobile{display: contents;}


        /* ================================================
   SIDEBAR NAV BADGE STYLES
   Add this to your dashboard.css or sidebar.css
   ================================================ */

/* Nav Badge - "New" indicator */
.nav-badge {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding:1px 8px;
    border-radius: 5px;
    margin-left: auto;
    flex-shrink: 0;
    line-height: 1.24rem;
    animation: badgePulse 2s ease-in-out infinite;
}

.nav-badge.new-badge {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.4);
}

/* Hide badge text when sidebar is minimized */
.sidebar.minimized .nav-badge {
    display: none;
}

/* Badge pulse animation */
@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(124, 58, 237, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 2px 12px rgba(124, 58, 237, 0.6);
    }
}

/* Ensure nav-item has flex layout for badge positioning */
.nav-item {
    display: block;
    align-items: center;
}