/* =========================================
   EVETS ERP: PREMIUM DESIGN SYSTEM
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Color Palette */
    --bg-dark: #090b14;
    --bg-secondary: #111422;
    --glass: rgba(17, 20, 34, 0.75);
    --glass-border: rgba(255, 255, 255, 0.05);
    
    --purple: #814bf6;
    --purple-light: #9d74fd;
    --cyan: #00d2d3;
    --pink: #ff5285;
    --yellow: #feca57;
    
    --text-main: #f8f9fa;
    --text-muted: #8c93a1;
    --text-dim: #5c6270;
    
    --sidebar-width: 260px;
    --sidebar-collapsed: 80px;
    --header-height: 70px;
    
    --glow-purple: 0px 4px 30px rgba(129, 75, 246, 0.25);
    --glow-cyan: 0px 4px 30px rgba(0, 210, 211, 0.25);
    --glow-yellow: 0px 4px 30px rgba(254, 202, 87, 0.25);
    --glow-pink: 0px 4px 30px rgba(255, 82, 133, 0.25);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow: hidden; /* Controlled scrolling in main container */
}

/* Scrollbar styling for smooth scroll appearance */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* =========================================
   LAYOUT WRAPPER
   ========================================= */

.app-wrapper {
    display: flex;
    height: 100vh;
    width: 100%;
}

/* =========================================
   SIDEBAR
   ========================================= */

.sidebar {
    width: var(--sidebar-width);
    height: 100%;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, #0c0e18 100%);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed);
}

.sidebar-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.logo i {
    font-size: 24px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--purple) 0%, var(--cyan) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-toggle {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.sidebar-toggle:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.08);
}

.sidebar.collapsed .logo-text,
.sidebar.collapsed .nav-section {
    display: none;
}

.sidebar.collapsed .sidebar-toggle i {
    transform: rotate(180deg);
}

/* Sidebar Nav */
.sidebar-nav {
    flex: 1;
    padding: 24px 12px;
    overflow-y: auto;
}

.nav-section {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-dim);
    margin: 20px 12px 10px 12px;
    letter-spacing: 1.5px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 12px;
    margin-bottom: 4px;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.2s ease;
    position: relative;
}

.nav-item i {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(129, 75, 246, 0.15) 0%, transparent 100%);
    color: var(--purple-light);
    border-left: 3px solid var(--purple);
}

.nav-item.active i {
    color: var(--purple);
}

.badge {
    position: absolute;
    right: 16px;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
}

.badge-purple {
    background: rgba(129, 75, 246, 0.2);
    color: var(--purple-light);
    border: 1px solid rgba(129, 75, 246, 0.3);
}

.sidebar.collapsed .nav-text, 
.sidebar.collapsed .badge {
    display: none;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 2px solid var(--glass-border);
}

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

.user-name {
    font-size: 14px;
    font-weight: 600;
}

.user-role {
    font-size: 11px;
    color: var(--text-muted);
}

.logout-btn {
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: 18px;
    cursor: pointer;
    transition: color 0.2s;
}

.logout-btn:hover {
    color: var(--pink);
}

.sidebar.collapsed .user-info,
.sidebar.collapsed .logout-btn {
    display: none;
}

/* =========================================
   MAIN CONTENT HEADER + PANELS
   ========================================= */

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-y: auto;
    background:radial-gradient(ellipse at 50% 10%, rgba(129, 75, 246, 0.05), transparent 60%);
}

.navbar {
    height: var(--header-height);
    padding: 0 32px;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 90;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 10px 16px;
    border-radius: 12px;
    width: 320px;
}

.search-bar i {
    color: var(--text-dim);
}

.search-bar input {
    background: transparent;
    border: none;
    color: var(--text-main);
    outline: none;
    font-size: 14px;
    width: 100%;
}

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

.nav-action-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: background 0.2s;
}

.nav-action-btn:hover {
    background: rgba(255, 255, 255, 0.06);
}

.notification-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--pink);
    border-radius: 50%;
    top: 10px;
    right: 10px;
    box-shadow: 0 0 10px var(--pink);
}

.branch-name {
    margin-left: 8px;
    font-size: 13px;
    font-weight: 600;
}

/* =========================================
   VIEWS & CONTENT CONTAINERS
   ========================================= */

.content-container {
    padding: 32px;
}

.view-section {
    display: none;
}

.view-section.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

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

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

.view-title {
    font-size: 28px;
    font-weight: 700;
}

.view-subtitle {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 4px;
}

.view-actions {
    display: flex;
    gap: 12px;
}

/* BUTTONS */
.btn {
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--purple) 0%, var(--purple-light) 100%);
    color: white;
    box-shadow: var(--glow-purple);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(129, 75, 246, 0.4);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* =========================================
   DASHBOARD CARDS & STATS
   ========================================= */

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

.stat-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.icon-purple { background: rgba(129, 75, 246, 0.1); color: var(--purple-light); }
.icon-cyan   { background: rgba(0, 210, 211, 0.1); color: var(--cyan); }
.icon-pink   { background: rgba(255, 82, 133, 0.1); color: var(--pink); }
.icon-yellow { background: rgba(254, 202, 87, 0.1); color: var(--yellow); }

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    margin: 4px 0;
}

.stat-change {
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-change.positive { color: #10b981; }
.stat-change.negative { color: var(--pink); }

.card-glow {
    position: absolute;
    width: 100px;
    height: 100px;
    background: var(--purple);
    filter: blur(50px);
    opacity: 0.15;
    bottom: -30px;
    right: -30px;
    border-radius: 50%;
}

/* =========================================
   CHARTS & TABLES GRIDS
   ========================================= */

.charts-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.glass-panel {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 24px;
}

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

.chart-header h3 {
    font-size: 16px;
    font-weight: 700;
}

.chart-legend {
    display: flex;
    gap: 16px;
}

.legend-item {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot.purple { background: var(--purple); }
.dot.pink { background: var(--pink); }

.chart-wrapper {
    height: 280px;
    position: relative;
    width: 100%;
}

/* BOTTOM GRID */
.data-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

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

.view-all {
    font-size: 12px;
    font-weight: 600;
    color: var(--purple-light);
    text-decoration: none;
}

/* CUSTOM TABLE */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.custom-table th {
    padding: 12px;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.custom-table td {
    padding: 16px 12px;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.status-badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

.status-badge.success { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.status-badge.warning { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }

/* TASK LIST */
.task-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.02);
    padding: 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: background 0.2s;
}

.task-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.task-label {
    flex: 1;
    font-size: 14px;
}

.task-tag {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 600;
}

.tag-purple { background: rgba(129, 75, 246, 0.1); color: var(--purple-light); }
.tag-cyan   { background: rgba(0, 210, 211, 0.1); color: var(--cyan); }
.tag-yellow { background: rgba(254, 202, 87, 0.1); color: var(--yellow); }

/* =========================================
   NEW: AI INSIGHTS & ROLE SELECTOR
   ========================================= */

.nav-select-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
}

.nav-select-wrapper i {
    color: var(--purple-light);
}

.nav-select {
    background: transparent;
    border: none;
    color: var(--text-main);
    outline: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}

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

/* AI Panel */
.ai-insights-panel {
    margin-bottom: 24px;
    border: 1px solid rgba(129, 75, 246, 0.2);
    position: relative;
    background: linear-gradient(110deg, rgba(129, 75, 246, 0.05) 0%, rgba(0, 210, 211, 0.02) 100%);
    overflow: hidden;
}

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

.ai-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 15px;
    color: var(--text-main);
}

.spark-glow {
    color: var(--purple-light);
    filter: drop-shadow(0 0 4px var(--purple-light));
    animation: AIpulse 2s infinite;
}

.ai-badge {
    background: linear-gradient(135deg, var(--purple) 0%, var(--cyan) 100%);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.ai-content-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ai-insight-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.01);
    border-radius: 10px;
    font-size: 14px;
    color: var(--text-muted);
}

.ai-insight-item i {
    font-size: 8px;
    margin-top: 6px;
}

.text-success { color: #10b981; }
.text-warning { color: #f59e0b; }

@keyframes AIpulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; filter: drop-shadow(0 0 8px var(--purple-light)); }
    100% { transform: scale(1); opacity: 0.8; }
}

/* =========================================
   SUB-NAVIGATION TABS (INNER MODULES)
   ========================================= */

.sub-nav-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 10px;
}

.sub-nav-tabs .tab-item {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.sub-nav-tabs .tab-item:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.03);
}

.sub-nav-tabs .tab-item.active {
    background: rgba(129, 75, 246, 0.15);
    color: var(--purple-light);
    border: 1px solid rgba(129, 75, 246, 0.2);
}

.subview-section {
    display: none;
}

.subview-section.active {
    display: block;
    animation: fadeIn 0.2s ease-in-out;
}

.badge-danger {
    background: rgba(255, 82, 133, 0.15);
    color: var(--pink);
    border: 1px solid rgba(255, 82, 133, 0.2);
}

.badge-blue {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.badge-orange {
    background: rgba(249, 115, 22, 0.15);
    color: #f97316;
    border: 1px solid rgba(249, 115, 22, 0.2);
}

/* =========================================
   MODULE-SPECIFIC STYLES
   ========================================= */

.loading-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    color: var(--text-muted);
    font-size: 16px;
    gap: 12px;
}

.loading-indicator i {
    font-size: 24px;
    color: var(--purple-light);
}

/* Filter Bar */
.filter-bar {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.filter-bar select,
.filter-bar input {
    background: #111422;
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-family: 'Outfit', sans-serif;
    outline: none;
}

.filter-bar select:focus,
.filter-bar input:focus {
    border-color: var(--purple);
}

.filter-bar input[type="date"] {
    color-scheme: dark;
}

/* Button Sizes */
.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 8px;
}

.btn-xs {
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 6px;
}

/* Invoice Badges */
.status-badge.draft { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.status-badge.sent { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.status-badge.paid { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.status-badge.overdue { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.status-badge.cancelled { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.status-badge.refunded { background: rgba(129, 75, 246, 0.1); color: var(--purple-light); }
.status-badge.partial { background: rgba(249, 115, 22, 0.1); color: #f97316; }

/* PO Status Badges */
.status-badge.approved { background: rgba(129, 75, 246, 0.1); color: var(--purple-light); }
.status-badge.pending_approval { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.status-badge.ordered { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.status-badge.received { background: rgba(0, 210, 211, 0.1); color: var(--cyan); }

/* Action Button Group */
.action-group {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* Form Elements in Modules */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 500;
}

.form-input {
    width: 100%;
    background: #111422;
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Outfit', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}

.form-input:focus {
    border-color: var(--purple);
}

.form-textarea {
    width: 100%;
    min-height: 80px;
    background: #111422;
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Outfit', sans-serif;
    resize: vertical;
    outline: none;
}

.form-textarea:focus {
    border-color: var(--purple);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

/* Totals Summary Card */
.totals-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
}

.totals-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.totals-row:last-child {
    border-bottom: none;
}

.totals-row.total {
    font-size: 16px;
    font-weight: 700;
    color: var(--purple-light);
    padding-top: 12px;
    border-top: 1px solid var(--glass-border);
}

/* Accounting Preview */
.accounting-preview {
    background: rgba(129, 75, 246, 0.05);
    border: 1px solid rgba(129, 75, 246, 0.2);
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
}

.accounting-preview h4 {
    font-size: 13px;
    color: var(--purple-light);
    margin-bottom: 12px;
    font-weight: 600;
}

.preview-lines {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.8;
}

.preview-lines .dr { color: #10b981; }
.preview-lines .cr { color: #ff5285; }

/* Group Header in Tables */
.group-header td {
    background: rgba(129, 75, 246, 0.08) !important;
    font-weight: 700;
    color: var(--purple-light) !important;
    font-size: 13px;
}

.group-subtotal td {
    background: rgba(255, 255, 255, 0.02) !important;
    font-weight: 600;
    font-size: 13px;
}

.grand-total td {
    background: rgba(129, 75, 246, 0.12) !important;
    font-weight: 700;
    font-size: 15px;
    color: var(--purple-light) !important;
}

/* Balanced/Unbalanced Indicators */
.balanced-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 8px;
}

.balanced-status.balanced {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.balanced-status.unbalanced {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* Collapsible/Expandable */
.collapsible-header {
    cursor: pointer;
    user-select: none;
}

.collapsible-header:hover {
    background: rgba(255, 255, 255, 0.03);
}

.collapsible-header i {
    transition: transform 0.2s;
}

.collapsible-header.expanded i {
    transform: rotate(90deg);
}

/* Approval Workflow */
.approval-info {
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 12px 16px;
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-muted);
}

.approval-info i {
    color: #3b82f6;
    font-size: 16px;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
}

/* Chart Container in Modules */
.chart-container-inline {
    height: 300px;
    margin-bottom: 24px;
}

/* Module Toggle Switches */
.module-toggle-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: background 0.2s;
}

.module-toggle-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

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

.module-toggle-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.module-toggle-info i {
    width: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 16px;
}

.module-toggle-label {
    font-size: 14px;
    font-weight: 500;
}

.module-toggle-section {
    font-size: 11px;
    color: var(--text-dim);
    margin-left: 8px;
    font-weight: 400;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 26px;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.toggle-slider:before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background: #5c6270;
    border-radius: 50%;
    transition: all 0.3s;
}

.toggle-switch input:checked + .toggle-slider {
    background: rgba(129, 75, 246, 0.3);
    border-color: rgba(129, 75, 246, 0.5);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(22px);
    background: var(--purple-light);
    box-shadow: 0 0 8px rgba(129, 75, 246, 0.5);
}

/* Section Header in Module List */
.module-section-header {
    padding: 10px 16px;
    background: rgba(129, 75, 246, 0.06);
    font-size: 12px;
    font-weight: 700;
    color: var(--purple-light);
    letter-spacing: 1.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.module-section-header:first-child {
    border-radius: 12px 12px 0 0;
}

.module-toggle-container {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
}

/* Sidebar section hide */
.nav-section.hidden-section,
.nav-item.hidden-module {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .filter-bar {
        flex-direction: column;
    }

    .filter-bar select,
    .filter-bar input {
        width: 100%;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

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