/* ================================================
   AdityaLoot Dashboard - Premium Fintech Styles
   ================================================ */

:root {
    --pi-primary: #C6E547;
    --pi-primary-hover: #b4d334;
    --pi-primary-light: rgba(198, 229, 71, 0.15);
    --pi-primary-glow: rgba(198, 229, 71, 0.5);
    --pi-dark: #0B3D2E;
    --pi-dark-hover: #06241b;
    --pi-dark-light: #12523e;
    --pi-dark-lighter: #1e6952;
    --pi-bg: #F8FAFC;
    --pi-white: #FFFFFF;
    --pi-card: #FFFFFF;
    --pi-border: #E2E8F0;
    --pi-border-light: #F1F5F9;
    --pi-text: #0F172A;
    --pi-text-secondary: #475569;
    --pi-text-muted: #64748B;
    --pi-success: #10B981;
    --pi-success-bg: rgba(16, 185, 129, 0.12);
    --pi-warning: #F59E0B;
    --pi-warning-bg: rgba(245, 158, 11, 0.12);
    --pi-danger: #EF4444;
    --pi-danger-bg: rgba(239, 68, 68, 0.12);
    --pi-info: #06B6D4;
    --pi-info-bg: rgba(6, 182, 212, 0.12);
    --pi-sidebar-width: 260px;
    --pi-topbar-height: 70px;
    --pi-radius: 14px;
    --pi-radius-sm: 8px;
    --pi-radius-lg: 18px;
    --pi-shadow: 0 2px 6px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.03);
    --pi-shadow-md: 0 6px 16px rgba(15, 23, 42, 0.06);
    --pi-shadow-lg: 0 10px 32px rgba(15, 23, 42, 0.08);
    --pi-shadow-xl: 0 24px 64px rgba(15, 23, 42, 0.14);
    --pi-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================================================
   RESET & BASE
   ================================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--pi-bg);
    color: var(--pi-text);
    font-size: 14px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.text-accent { color: var(--pi-primary); }

/* ================================================
   SIDEBAR
   ================================================ */
.dashboard-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--pi-sidebar-width);
    height: 100vh;
    background: linear-gradient(180deg, #0B3D2E 0%, #05241B 100%);
    border-right: 1px solid rgba(198, 229, 71, 0.12);
    display: flex;
    flex-direction: column;
    z-index: 1040;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1035;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* Logo */
.sidebar-logo {
    padding: 20px 20px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.logo-icon {
    flex-shrink: 0;
    transition: var(--pi-transition);
}

.logo-link:hover .logo-icon {
    transform: rotate(-5deg) scale(1.05);
}

.logo-text {
    font-size: 20px;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: -0.5px;
}

.sidebar-close-btn {
    background: var(--pi-border-light);
    border: none;
    color: var(--pi-text-muted);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--pi-transition);
}

.sidebar-close-btn:hover {
    background: var(--pi-border);
    color: var(--pi-text);
}

/* Navigation */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px 12px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--pi-border) transparent;
}

.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

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

.nav-section-label {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 1.5px;
    padding: 16px 12px 8px;
    text-transform: uppercase;
}

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

.sidebar-menu-item {
    margin-bottom: 3px;
}

.sidebar-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--pi-radius-sm);
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    transition: var(--pi-transition);
    position: relative;
    overflow: hidden;
}

.sidebar-menu-link:hover {
    color: #C6E547;
    background: rgba(198, 229, 71, 0.08);
    transform: translateX(3px);
}

.sidebar-menu-link:hover .menu-icon {
    color: #C6E547;
}

/* Active state */
.sidebar-menu-item.active .sidebar-menu-link {
    color: #C6E547;
    font-weight: 700;
    background: linear-gradient(90deg, rgba(198, 229, 71, 0.18) 0%, rgba(198, 229, 71, 0.03) 100%);
    border-left: 3px solid #C6E547;
    box-shadow: inset 0 0 15px rgba(198, 229, 71, 0.05);
}

.sidebar-menu-item.active .menu-icon {
    color: #C6E547;
    filter: drop-shadow(0 0 6px rgba(198, 229, 71, 0.6));
    position: relative;
    z-index: 1;
}

.sidebar-menu-item.active .menu-label {
    position: relative;
    z-index: 1;
}

.menu-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.65);
    transition: var(--pi-transition);
}

.menu-icon svg, .menu-icon i {
    width: 18px;
    height: 18px;
}

.menu-label {
    flex: 1;
    white-space: nowrap;
}

.menu-badge {
    background: var(--pi-danger);
    color: var(--pi-white);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.menu-icon-external {
    opacity: 0.4;
    transition: var(--pi-transition);
}

.sidebar-menu-link:hover .menu-icon-external {
    opacity: 0.8;
}

/* Sidebar Footer / User */
.sidebar-footer {
    padding: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: var(--pi-radius-sm);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--pi-transition);
    position: relative;
}

.sidebar-user:hover {
    background: rgba(255, 255, 255, 0.1);
}

.user-avatar-sidebar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--pi-primary), #a8cc2e);
    color: var(--pi-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}

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

.user-name-sidebar {
    font-size: 13px;
    font-weight: 600;
    color: var(--pi-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-plan-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 600;
    color: var(--pi-primary);
    background: var(--pi-primary-light);
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 2px;
}

.btn-icon-sidebar {
    background: none;
    border: none;
    color: var(--pi-text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: var(--pi-transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon-sidebar:hover {
    background: var(--pi-bg);
    border: 1px solid var(--pi-border);
}

/* Sidebar Dropdown */
.sidebar-dropdown {
    position: absolute;
    bottom: 100%;
    right: 0;
    width: 160px;
    background: var(--pi-white);
    border-radius: var(--pi-radius-sm);
    box-shadow: var(--pi-shadow-xl);
    padding: 6px;
    display: none;
    z-index: 1050;
    margin-bottom: 8px;
}

.sidebar-dropdown.show {
    display: block;
    animation: fadeInUp 0.2s ease;
}

.sidebar-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font-size: 13px;
    color: var(--pi-text);
    text-decoration: none;
    border-radius: 6px;
    transition: var(--pi-transition);
}

.sidebar-dropdown-item:hover {
    background: var(--pi-bg);
    color: var(--pi-text);
}

.sidebar-dropdown-item.text-danger:hover {
    background: var(--pi-danger-bg);
    color: var(--pi-danger);
}

.sidebar-dropdown-divider {
    height: 1px;
    background: var(--pi-border);
    margin: 4px 0;
}

/* ================================================
   TOPBAR
   ================================================ */
.dashboard-topbar {
    position: fixed;
    top: 0;
    left: var(--pi-sidebar-width);
    right: 0;
    height: var(--pi-topbar-height);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--pi-border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    z-index: 1030;
    transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--pi-text);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--pi-radius-sm);
    transition: var(--pi-transition);
}

.sidebar-toggle:hover {
    background: var(--pi-bg);
}

.sidebar-toggle svg {
    width: 22px;
    height: 22px;
}

.page-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--pi-text);
    margin: 0;
    letter-spacing: -0.3px;
}

.page-subtitle {
    font-size: 12px;
    color: var(--pi-text-muted);
    margin: 0;
    margin-top: -2px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Search */
.topbar-search {
    position: relative;
}

.search-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 12px;
    width: 16px;
    height: 16px;
    color: var(--pi-text-muted);
    pointer-events: none;
}

.search-input {
    width: 240px;
    padding: 8px 12px 8px 36px;
    border: 1px solid var(--pi-border);
    border-radius: var(--pi-radius-sm);
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    color: var(--pi-text);
    background: var(--pi-bg);
    transition: var(--pi-transition);
    outline: none;
}

.search-input:focus {
    border-color: var(--pi-primary);
    background: var(--pi-white);
    box-shadow: 0 0 0 3px var(--pi-primary-light);
    width: 300px;
}

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

.search-shortcut {
    position: absolute;
    right: 8px;
    background: var(--pi-white);
    border: 1px solid var(--pi-border);
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 11px;
    color: var(--pi-text-muted);
    font-family: 'Inter', sans-serif;
    pointer-events: none;
}

/* Environment Badge */
.env-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    background: var(--pi-warning-bg);
    font-size: 12px;
    font-weight: 600;
    color: var(--pi-warning);
}

.env-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--pi-warning);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Notification */
.topbar-notification {
    position: relative;
}

.btn-icon-topbar {
    background: none;
    border: 1px solid var(--pi-border);
    color: var(--pi-text-secondary);
    width: 38px;
    height: 38px;
    border-radius: var(--pi-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--pi-transition);
    position: relative;
}

.btn-icon-topbar svg {
    width: 18px;
    height: 18px;
}

.btn-icon-topbar:hover {
    background: var(--pi-bg);
    border-color: var(--pi-primary);
    color: var(--pi-text);
}

.notification-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--pi-danger);
    border-radius: 50%;
    border: 2px solid var(--pi-white);
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 340px;
    background: var(--pi-white);
    border-radius: var(--pi-radius);
    box-shadow: var(--pi-shadow-xl);
    border: 1px solid var(--pi-border-light);
    display: none;
    z-index: 1050;
}

.notification-dropdown.show {
    display: block;
    animation: fadeInDown 0.2s ease;
}

.notif-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--pi-border-light);
}

.notif-header h6 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
}

.notif-mark-all {
    background: none;
    border: none;
    font-size: 12px;
    color: var(--pi-primary-hover);
    cursor: pointer;
    font-weight: 500;
}

.notif-body {
    max-height: 320px;
    overflow-y: auto;
}

.notif-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 40px 20px;
    color: var(--pi-text-muted);
    font-size: 13px;
}

.notif-footer {
    padding: 10px 16px;
    border-top: 1px solid var(--pi-border-light);
    text-align: center;
}

.notif-footer a {
    font-size: 13px;
    font-weight: 600;
    color: var(--pi-dark);
    text-decoration: none;
}

.notif-footer a:hover {
    text-decoration: underline;
}

/* User Dropdown */
.topbar-user-dropdown {
    position: relative;
}

.topbar-user-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 8px 4px 4px;
    border: 1px solid var(--pi-border);
    border-radius: var(--pi-radius-sm);
    background: var(--pi-white);
    cursor: pointer;
    transition: var(--pi-transition);
}

.topbar-user-btn:hover {
    border-color: var(--pi-primary);
    box-shadow: 0 0 0 3px var(--pi-primary-light);
}

.topbar-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--pi-dark), var(--pi-dark-light));
    color: var(--pi-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    flex-shrink: 0;
}

.topbar-user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--pi-text);
}

.dropdown-chevron {
    width: 14px;
    height: 14px;
    color: var(--pi-text-muted);
    transition: transform 0.2s ease;
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 220px;
    background: var(--pi-white);
    border-radius: var(--pi-radius);
    box-shadow: var(--pi-shadow-xl);
    border: 1px solid var(--pi-border-light);
    padding: 6px;
    display: none;
    z-index: 1050;
}

.user-dropdown-menu.show {
    display: block;
    animation: fadeInDown 0.2s ease;
}

.dropdown-user-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
}

.dropdown-divider {
    height: 1px;
    background: var(--pi-border-light);
    margin: 4px 0;
}

.dropdown-item-custom {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    font-size: 13px;
    color: var(--pi-text);
    text-decoration: none;
    border-radius: 6px;
    transition: var(--pi-transition);
}

.dropdown-item-custom:hover {
    background: var(--pi-bg);
    color: var(--pi-text);
}

.dropdown-item-custom.text-danger:hover {
    background: var(--pi-danger-bg);
    color: var(--pi-danger);
}

/* ================================================
   MAIN CONTENT AREA
   ================================================ */
.dashboard-main {
    margin-left: var(--pi-sidebar-width);
    padding-top: var(--pi-topbar-height);
    min-height: 100vh;
    transition: margin-left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.dashboard-content {
    padding: 28px;
    max-width: 1400px;
}

/* ================================================
   STAT CARDS
   ================================================ */
.stats-section {
    margin-bottom: 28px;
}

.stats-section-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--pi-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stats-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--pi-border);
}

.stat-card {
    background: var(--pi-card);
    border: 1px solid var(--pi-border-light);
    border-radius: var(--pi-radius);
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: var(--pi-transition);
    cursor: default;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--pi-primary), var(--pi-dark));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--pi-shadow-lg);
    border-color: var(--pi-primary);
}

.stat-card:hover::before {
    opacity: 1;
}

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

.stat-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-card-icon svg {
    width: 20px;
    height: 20px;
}

.stat-card-icon.icon-primary {
    background: var(--pi-primary-light);
    color: var(--pi-dark);
}

.stat-card-icon.icon-success {
    background: var(--pi-success-bg);
    color: var(--pi-success);
}

.stat-card-icon.icon-warning {
    background: var(--pi-warning-bg);
    color: var(--pi-warning);
}

.stat-card-icon.icon-danger {
    background: var(--pi-danger-bg);
    color: var(--pi-danger);
}

.stat-card-icon.icon-info {
    background: var(--pi-info-bg);
    color: var(--pi-info);
}

.stat-card-trend {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
}

.stat-card-trend.trend-up {
    background: var(--pi-success-bg);
    color: var(--pi-success);
}

.stat-card-trend.trend-down {
    background: var(--pi-danger-bg);
    color: var(--pi-danger);
}

.stat-card-trend.trend-neutral {
    background: var(--pi-bg);
    color: var(--pi-text-muted);
}

.stat-card-trend svg {
    width: 12px;
    height: 12px;
}

.stat-card-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--pi-text-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card-value {
    font-size: 26px;
    font-weight: 800;
    color: var(--pi-text);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.stat-card-value.currency::before {
    content: '₹';
    font-size: 18px;
    font-weight: 600;
    margin-right: 2px;
    opacity: 0.6;
}

/* Glassmorphism stat cards */
.stat-card-glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.stat-card-glass:hover {
    background: rgba(255, 255, 255, 0.85);
}

/* Gradient border stat card */
.stat-card-gradient {
    position: relative;
    border: none;
    background: var(--pi-card);
}

.stat-card-gradient::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--pi-radius);
    padding: 1px;
    background: linear-gradient(135deg, var(--pi-primary), transparent, var(--pi-dark));
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card-gradient:hover::after {
    opacity: 1;
}

/* Revenue highlight card */
.stat-card-highlight {
    background: linear-gradient(135deg, var(--pi-dark) 0%, var(--pi-dark-light) 100%);
    border: none;
}

.stat-card-highlight .stat-card-label {
    color: rgba(255,255,255,0.6);
}

.stat-card-highlight .stat-card-value {
    color: var(--pi-primary);
}

.stat-card-highlight .stat-card-icon {
    background: rgba(198, 229, 71, 0.15);
    color: var(--pi-primary);
}

.stat-card-highlight:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(11, 61, 46, 0.35);
}

/* ================================================
   CHARTS
   ================================================ */
.chart-card {
    background: var(--pi-card);
    border: 1px solid var(--pi-border-light);
    border-radius: var(--pi-radius);
    padding: 24px;
    transition: var(--pi-transition);
}

.chart-card:hover {
    box-shadow: var(--pi-shadow-md);
}

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

.chart-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--pi-text);
}

.chart-card-subtitle {
    font-size: 12px;
    color: var(--pi-text-muted);
    margin-top: 2px;
}

.chart-filter-tabs {
    display: flex;
    gap: 4px;
    background: var(--pi-bg);
    border-radius: 8px;
    padding: 3px;
}

.chart-filter-tab {
    padding: 5px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--pi-text-muted);
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--pi-transition);
}

.chart-filter-tab.active,
.chart-filter-tab:hover {
    background: var(--pi-white);
    color: var(--pi-text);
    box-shadow: var(--pi-shadow);
}

.chart-container {
    position: relative;
    min-height: 300px;
}

.chart-container-sm {
    min-height: 250px;
}

/* ================================================
   DATA TABLE
   ================================================ */
.data-table-card {
    background: var(--pi-card);
    border: 1px solid var(--pi-border-light);
    border-radius: var(--pi-radius);
    overflow: hidden;
    transition: var(--pi-transition);
}

.data-table-card:hover {
    box-shadow: var(--pi-shadow-md);
}

.data-table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--pi-border-light);
    flex-wrap: wrap;
    gap: 12px;
}

.data-table-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--pi-text);
}

.data-table-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

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

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

.pi-table thead th {
    padding: 12px 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--pi-text-muted);
    background: var(--pi-bg);
    border-bottom: 1px solid var(--pi-border);
    white-space: nowrap;
    text-align: left;
}

.pi-table tbody td {
    padding: 14px 20px;
    font-size: 13px;
    color: var(--pi-text);
    border-bottom: 1px solid var(--pi-border-light);
    white-space: nowrap;
}

.pi-table tbody tr {
    transition: background 0.15s ease;
}

.pi-table tbody tr:hover {
    background: rgba(198, 229, 71, 0.04);
}

.pi-table tbody tr:last-child td {
    border-bottom: none;
}

/* Table Order ID */
.order-id {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 12px;
    font-weight: 600;
    color: var(--pi-dark);
    background: var(--pi-bg);
    padding: 3px 8px;
    border-radius: 4px;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.status-badge.status-success {
    background: var(--pi-success-bg);
    color: var(--pi-success);
}

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

.status-badge.status-failed {
    background: var(--pi-danger-bg);
    color: var(--pi-danger);
}

.status-badge.status-refunded {
    background: var(--pi-info-bg);
    color: var(--pi-info);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-success .status-dot { background: var(--pi-success); }
.status-pending .status-dot { background: var(--pi-warning); animation: pulse-dot 2s infinite; }
.status-failed .status-dot { background: var(--pi-danger); }
.status-refunded .status-dot { background: var(--pi-info); }

/* Amount column */
.amount-cell {
    font-weight: 700;
    color: var(--pi-text);
    font-size: 13.5px;
}

.amount-cell.text-success { color: var(--pi-success); }

/* Customer cell */
.customer-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.customer-avatar-sm {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--pi-bg);
    color: var(--pi-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
}

.customer-name {
    font-weight: 500;
}

.customer-mobile {
    font-size: 11px;
    color: var(--pi-text-muted);
}

/* ================================================
   BUTTONS
   ================================================ */
.btn-pi-primary {
    background: var(--pi-primary);
    color: var(--pi-dark);
    border: none;
    padding: 9px 18px;
    border-radius: var(--pi-radius-sm);
    font-size: 13px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: var(--pi-transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-pi-primary:hover {
    background: var(--pi-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px var(--pi-primary-glow);
    color: var(--pi-dark);
}

.btn-pi-outline {
    background: transparent;
    color: var(--pi-text);
    border: 1px solid var(--pi-border);
    padding: 9px 18px;
    border-radius: var(--pi-radius-sm);
    font-size: 13px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: var(--pi-transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-pi-outline:hover {
    background: var(--pi-bg);
    border-color: var(--pi-primary);
    color: var(--pi-text);
}

.btn-pi-dark {
    background: var(--pi-dark);
    color: var(--pi-primary);
    border: none;
    padding: 9px 18px;
    border-radius: var(--pi-radius-sm);
    font-size: 13px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: var(--pi-transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-pi-dark:hover {
    background: var(--pi-dark-hover);
    color: var(--pi-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(11, 61, 46, 0.3);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-icon-action {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--pi-radius-sm);
    background: transparent;
    border: 1px solid var(--pi-border);
    color: var(--pi-text-muted);
    cursor: pointer;
    transition: var(--pi-transition);
}

.btn-icon-action:hover {
    background: var(--pi-bg);
    border-color: var(--pi-primary);
    color: var(--pi-text);
}

.btn-icon-action svg {
    width: 15px;
    height: 15px;
}

/* ================================================
   FILTERS BAR
   ================================================ */
.filters-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: var(--pi-card);
    border: 1px solid var(--pi-border-light);
    border-radius: var(--pi-radius);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--pi-text-muted);
    white-space: nowrap;
}

.filter-select,
.filter-input {
    padding: 7px 12px;
    border: 1px solid var(--pi-border);
    border-radius: var(--pi-radius-sm);
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    color: var(--pi-text);
    background: var(--pi-white);
    outline: none;
    transition: var(--pi-transition);
    min-width: 140px;
}

.filter-select:focus,
.filter-input:focus {
    border-color: var(--pi-primary);
    box-shadow: 0 0 0 3px var(--pi-primary-light);
}

.filter-search {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.filter-search input {
    width: 100%;
    padding: 7px 12px 7px 34px;
    border: 1px solid var(--pi-border);
    border-radius: var(--pi-radius-sm);
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    color: var(--pi-text);
    background: var(--pi-white);
    outline: none;
    transition: var(--pi-transition);
}

.filter-search input:focus {
    border-color: var(--pi-primary);
    box-shadow: 0 0 0 3px var(--pi-primary-light);
}

.filter-search .search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--pi-text-muted);
}

/* ================================================
   PAGINATION
   ================================================ */
.pagination-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-top: 1px solid var(--pi-border-light);
    flex-wrap: wrap;
    gap: 12px;
}

.pagination-info {
    font-size: 13px;
    color: var(--pi-text-muted);
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 4px;
}

.page-btn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--pi-border);
    border-radius: var(--pi-radius-sm);
    background: var(--pi-white);
    color: var(--pi-text);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--pi-transition);
    text-decoration: none;
}

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

.page-btn.active {
    background: var(--pi-dark);
    color: var(--pi-primary);
    border-color: var(--pi-dark);
}

.page-btn.disabled {
    opacity: 0.4;
    pointer-events: none;
}

.page-btn svg {
    width: 16px;
    height: 16px;
}

/* ================================================
   QUICK ACTIONS
   ================================================ */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.quick-action-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: var(--pi-card);
    border: 1px dashed var(--pi-border);
    border-radius: var(--pi-radius);
    text-decoration: none;
    color: var(--pi-text);
    transition: var(--pi-transition);
    cursor: pointer;
}

.quick-action-card:hover {
    border-color: var(--pi-primary);
    border-style: solid;
    background: var(--pi-primary-light);
    transform: translateY(-2px);
    box-shadow: var(--pi-shadow-md);
    color: var(--pi-text);
}

.quick-action-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--pi-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--pi-transition);
}

.quick-action-card:hover .quick-action-icon {
    background: var(--pi-primary);
    color: var(--pi-dark);
}

.quick-action-icon svg {
    width: 20px;
    height: 20px;
}

.quick-action-label {
    font-size: 13px;
    font-weight: 600;
}

.quick-action-desc {
    font-size: 11px;
    color: var(--pi-text-muted);
    margin-top: 2px;
}

/* ================================================
   EMPTY STATE
   ================================================ */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    text-align: center;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: var(--pi-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.empty-state-icon svg {
    width: 36px;
    height: 36px;
    color: var(--pi-text-muted);
    opacity: 0.5;
}

.empty-state-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--pi-text);
    margin-bottom: 6px;
}

.empty-state-desc {
    font-size: 13px;
    color: var(--pi-text-muted);
    margin-bottom: 20px;
    max-width: 360px;
}

/* ================================================
   ANIMATIONS
   ================================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes slideInLeft {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@keyframes countUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-in {
    animation: fadeInUp 0.4s ease forwards;
}

.animate-delay-1 { animation-delay: 0.05s; }
.animate-delay-2 { animation-delay: 0.1s; }
.animate-delay-3 { animation-delay: 0.15s; }
.animate-delay-4 { animation-delay: 0.2s; }
.animate-delay-5 { animation-delay: 0.25s; }

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 991.98px) {
    .dashboard-sidebar {
        transform: translateX(-100%);
    }
    
    .dashboard-sidebar.show {
        transform: translateX(0);
        box-shadow: 10px 0 40px rgba(0,0,0,0.3);
    }
    
    .dashboard-topbar {
        left: 0;
        padding: 0 16px;
    }
    
    .dashboard-main {
        margin-left: 0;
    }
    
    .sidebar-toggle {
        display: flex;
    }
    
    .topbar-search {
        display: none;
    }
    
    .env-badge {
        display: none;
    }
    
    .dashboard-content {
        padding: 16px;
    }
}

@media (max-width: 767.98px) {
    .page-title {
        font-size: 16px;
    }
    
    .stat-card-value {
        font-size: 22px;
    }
    
    .chart-card {
        padding: 16px;
    }
    
    .chart-container {
        min-height: 250px;
    }
    
    .filters-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        flex: 1;
    }
    
    .filter-select,
    .filter-input {
        width: 100%;
    }
    
    .filter-search {
        min-width: auto;
    }
    
    .data-table-header {
        padding: 16px;
    }
    
    .pi-table thead th,
    .pi-table tbody td {
        padding: 10px 14px;
    }
    
    .pagination-wrapper {
        padding: 12px 16px;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .dashboard-content {
        padding: 12px;
    }
    
    .stats-row > div {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ================================================
   APEXCHARTS OVERRIDES
   ================================================ */
.apexcharts-tooltip {
    border: 1px solid var(--pi-border-light) !important;
    box-shadow: var(--pi-shadow-lg) !important;
    border-radius: var(--pi-radius-sm) !important;
}

.apexcharts-tooltip-title {
    background: var(--pi-bg) !important;
    border-bottom-color: var(--pi-border-light) !important;
    font-weight: 600 !important;
    font-family: 'Inter', sans-serif !important;
}

.apexcharts-tooltip-text {
    font-family: 'Inter', sans-serif !important;
}

.apexcharts-legend-text {
    font-family: 'Inter', sans-serif !important;
    font-weight: 500 !important;
}

.apexcharts-xaxis-label,
.apexcharts-yaxis-label {
    font-family: 'Inter', sans-serif !important;
}

/* Scrollbar for table */
.table-wrapper::-webkit-scrollbar {
    height: 6px;
}

.table-wrapper::-webkit-scrollbar-track {
    background: var(--pi-bg);
}

.table-wrapper::-webkit-scrollbar-thumb {
    background: var(--pi-border);
    border-radius: 3px;
}

.table-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--pi-text-muted);
}

/* ================================================
   UTILITY CLASSES
   ================================================ */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gap-20 { gap: 20px; }
.gap-16 { gap: 16px; }
.gap-12 { gap: 12px; }
.mb-28 { margin-bottom: 28px; }

.icon-sm svg,
.icon-sm {
    width: 16px;
    height: 16px;
}

/* ================================================
   ADITYALOOT NEON CYBER-GLOW MASTER ENGINE
   ================================================ */
@keyframes neonPulse {
    0% { box-shadow: 0 0 14px rgba(16, 185, 129, 0.5), 0 0 28px rgba(16, 185, 129, 0.25); }
    50% { box-shadow: 0 0 24px rgba(16, 185, 129, 0.85), 0 0 45px rgba(16, 185, 129, 0.55); }
    100% { box-shadow: 0 0 14px rgba(16, 185, 129, 0.5), 0 0 28px rgba(16, 185, 129, 0.25); }
}

@keyframes neonBorderPulse {
    0% { border-color: rgba(16, 185, 129, 0.5); }
    50% { border-color: rgba(16, 185, 129, 1); }
    100% { border-color: rgba(16, 185, 129, 0.5); }
}

/* Neon Cards & Stat Boxes */
.card,
.invoice-card,
.dashboard-stat,
.stat-card,
.stat-box,
.table-responsive,
.dashboard-content .card {
    border: 1px solid rgba(16, 185, 129, 0.35) !important;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08), 0 0 16px rgba(16, 185, 129, 0.12) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.card:hover,
.invoice-card:hover,
.dashboard-stat:hover,
.stat-card:hover,
.stat-box:hover {
    border-color: #10B981 !important;
    box-shadow: 0 14px 45px rgba(15, 23, 42, 0.15), 0 0 26px rgba(16, 185, 129, 0.35) !important;
    transform: translateY(-3px);
}

/* Neon Buttons */
.btn-primary,
.btn-whatsapp-invoice,
.btn-accent,
button.btn-primary {
    background: linear-gradient(135deg, #10B981, #059669) !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    color: #FFFFFF !important;
    font-weight: 700 !important;
    box-shadow: 0 0 18px rgba(16, 185, 129, 0.6), 0 0 35px rgba(16, 185, 129, 0.3) !important;
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-primary:hover,
.btn-whatsapp-invoice:hover,
.btn-accent:hover,
button.btn-primary:hover {
    background: linear-gradient(135deg, #34D399, #10B981) !important;
    box-shadow: 0 0 28px rgba(16, 185, 129, 0.95), 0 0 55px rgba(16, 185, 129, 0.55) !important;
    transform: translateY(-2px) scale(1.02);
}

.btn-outline-primary,
.btn-outline-accent {
    border: 2px solid #10B981 !important;
    color: #10B981 !important;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.3) !important;
    font-weight: 700 !important;
}

.btn-outline-primary:hover,
.btn-outline-accent:hover {
    background: #10B981 !important;
    color: #FFFFFF !important;
    box-shadow: 0 0 24px rgba(16, 185, 129, 0.8) !important;
}

/* Removed hardcoded neon green block */

