/* SchoolFinance Pro - Professional Stylesheet */



/* CSS Variables */

:root {

    --primary: #1e3a5f;

    --primary-light: #2d5a87;

    --primary-dark: #152a45;

    --secondary: #3498db;

    --secondary-light: #5dade2;

    --secondary-dark: #2980b9;

    --accent: #e74c3c;

    --success: #27ae60;

    --success-light: #2ecc71;

    --warning: #f39c12;

    --warning-light: #f1c40f;

    --danger: #c0392b;

    --info: #3498db;

    --bg-body: #f5f7fa;

    --bg-card: #ffffff;

    --bg-sidebar: linear-gradient(160deg, #1e3a5f 0%, #0d1b2a 100%);

    --text-primary: #2c3e50;

    --text-secondary: #7f8c8d;

    --text-muted: #95a5a6;

    --text-light: #ecf0f1;

    --border-color: #e0e6ed;

    --border-radius: 12px;

    --border-radius-sm: 8px;

    --border-radius-lg: 16px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);

    --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.1);

    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);

    --shadow-xl: 0 15px 50px rgba(0, 0, 0, 0.15);

    --sidebar-width: 260px;

    --header-height: 70px;

    --transition-fast: 0.2s ease;

    --transition-normal: 0.3s ease;

    --transition-slow: 0.5s ease;

}



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



body {

    font-family: 'Segoe UI', 'Roboto', sans-serif;

    background-color: var(--bg-body);

    color: var(--text-primary);

    overflow-x: hidden;

    font-size: 14px;

    line-height: 1.6;

}



h1, h2, h3, h4, h5, h6 { font-weight: 600; color: var(--text-primary); margin-bottom: 0.5rem; }

h1 { font-size: 2rem; }

h2 { font-size: 1.75rem; }

h3 { font-size: 1.5rem; }



.wrapper { display: flex; min-height: 100vh; }



/* Sidebar */

.sidebar {

    width: var(--sidebar-width);

    background: var(--bg-sidebar);

    position: fixed;

    height: 100vh;

    overflow-y: auto;

    transition: var(--transition-normal);

    z-index: 1000;

    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);

}



.sidebar-header {

    padding: 25px 20px;

    background: rgba(0, 0, 0, 0.2);

    text-align: center;

    border-bottom: 1px solid rgba(255, 255, 255, 0.1);

}



.sidebar-header h3 { color: white; font-size: 22px; font-weight: 700; }

.sidebar-header h3 i { color: var(--secondary-light); margin-right: 8px; }



.sidebar .nav { padding: 15px 0; }

.sidebar .nav-item { margin: 5px 12px; }



.sidebar .nav-link {

    color: rgba(255, 255, 255, 0.75);

    padding: 14px 18px;

    border-radius: var(--border-radius-sm);

    transition: var(--transition-normal);

    display: flex;

    align-items: center;

    font-size: 14px;

    font-weight: 500;

    text-decoration: none;

}



.sidebar .nav-link:hover { background: rgba(255, 255, 255, 0.1); color: white; }

.sidebar .nav-link.active { background: var(--secondary); color: white; }

.sidebar .nav-link i { width: 28px; text-align: center; font-size: 16px; margin-right: 12px; }



/* Main Content */

.main-content {

    margin-left: var(--sidebar-width);

    min-height: 100vh;

    width: calc(100% - var(--sidebar-width));

    display: flex;

    flex-direction: column;

    transition: var(--transition-normal);

    background: var(--bg-body);

}



/* Sidebar overlay for mobile */

.sidebar-overlay {

    display: none;

    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, 0.45);

    z-index: 999;

}

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



/* Desktop sidebar hide/show toggle */

.sidebar.hidden {

    margin-left: calc(-1 * var(--sidebar-width));

}

.main-content.expanded {

    margin-left: 0;

    width: 100%;

}



/* Module pages content wrapper (exams_generator, etc.) */

#content {

    margin-left: var(--sidebar-width);

    width: calc(100% - var(--sidebar-width));

    min-height: 100vh;

    transition: var(--transition-normal);

}



/* Header */

.header {

    height: var(--header-height);

    background: var(--bg-card);

    box-shadow: var(--shadow-sm);

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 0 30px;

    position: sticky;

    top: 0;

    z-index: 100;

    border-bottom: 1px solid var(--border-color);

}



.btn-toggle {

    background: var(--bg-body);

    border: none;

    font-size: 18px;

    color: var(--text-primary);

    cursor: pointer;

    padding: 10px 14px;

    border-radius: var(--border-radius-sm);

}



.btn-toggle:hover { background: var(--secondary); color: white; }



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



.header-right .dropdown-toggle {

    text-decoration: none;

    color: var(--text-primary);

    font-weight: 500;

    display: flex;

    align-items: center;

    gap: 8px;

    padding: 8px 15px;

    border-radius: var(--border-radius-sm);

}



.header-right .dropdown-toggle:hover { background: var(--bg-body); }

.header-right .dropdown-toggle i { font-size: 18px; color: var(--secondary); }



/* Content */

.content { flex: 1; padding: 30px; }



.content-header {

    margin-bottom: 30px;

    padding-bottom: 20px;

    border-bottom: 2px solid var(--border-color);

}



.content-header h2 {

    font-size: 28px;

    font-weight: 700;

    color: var(--primary);

    margin-bottom: 5px;

    display: flex;

    align-items: center;

}



.content-header h2 i { color: var(--secondary); margin-right: 12px; }

.content-header p { color: var(--text-secondary); margin: 0; font-size: 15px; }



/* Cards */

.card {

    background: var(--bg-card);

    border: none;

    border-radius: var(--border-radius-lg);

    box-shadow: var(--shadow-md);

    margin-bottom: 25px;

    overflow: hidden;

}



.card-header {

    background: white;

    padding: 20px 25px;

    border-bottom: 1px solid var(--border-color);

    display: flex;

    align-items: center;

    justify-content: space-between;

}



.card-header h5 { margin: 0; font-size: 16px; font-weight: 600; color: var(--primary); display: flex; align-items: center; }

.card-header h5 i { color: var(--secondary); margin-right: 10px; }

.card-body { padding: 25px; }



/* Stat Cards */

.stat-card {

    background: var(--bg-card);

    border-radius: var(--border-radius-lg);

    padding: 25px;

    box-shadow: var(--shadow-md);

    display: flex;

    align-items: center;

    gap: 20px;

    margin-bottom: 20px;

}



.stat-icon {

    width: 65px;

    height: 65px;

    border-radius: var(--border-radius);

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 26px;

    flex-shrink: 0;

}



.stat-primary .stat-icon { background: rgba(52, 152, 219, 0.15); color: var(--secondary); }

.stat-success .stat-icon { background: rgba(39, 174, 96, 0.15); color: var(--success); }

.stat-danger .stat-icon { background: rgba(231, 76, 60, 0.15); color: var(--accent); }

.stat-warning .stat-icon { background: rgba(243, 156, 18, 0.15); color: var(--warning); }



.stat-info h3 { font-size: 20px; font-weight: 400; margin: 0; color: var(--primary); }

.stat-info p { margin: 5px 0 0; font-size: 10px; color: var(--text-secondary); font-weight: 200; text-transform: uppercase; }



/* Tables */

.table { margin: 0; width: 100%; }



.table thead th {

    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);

    color: white;

    font-weight: 600;

    font-size: 13px;

    padding: 15px;

    border: none;

    text-transform: uppercase;

}



.table thead th:first-child { border-radius: var(--border-radius-sm) 0 0 0; }

.table thead th:last-child { border-radius: 0 var(--border-radius-sm) 0 0; }



.table tbody td {

    padding: 15px;

    font-size: 14px;

    color: var(--text-primary);

    vertical-align: middle;

    border-bottom: 1px solid var(--border-color);

}



.table tbody tr:hover { background: rgba(52, 152, 219, 0.05); }



/* Buttons */

.btn {

    padding: 10px 22px;

    border-radius: var(--border-radius-sm);

    font-weight: 600;

    font-size: 14px;

    transition: var(--transition-normal);

    border: none;

    cursor: pointer;

    display: inline-flex;

    align-items: center;

    gap: 8px;

    text-decoration: none;

}



.btn-primary { background: var(--secondary); color: white; }

.btn-primary:hover { background: var(--secondary-dark); }

.btn-success { background: var(--success); color: white; }

.btn-danger { background: var(--accent); color: white; }

.btn-secondary { background: var(--bg-body); color: var(--text-primary); border: 1px solid var(--border-color); }

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



/* Forms */

.form-control {

    border: 2px solid var(--border-color);

    border-radius: var(--border-radius-sm);

    padding: 12px 16px;

    font-size: 14px;

    background: white;

    width: 100%;

}



.form-control:focus { border-color: var(--secondary); box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.15); outline: none; }



.form-label { font-weight: 600; font-size: 14px; color: var(--primary); margin-bottom: 8px; display: block; }



.form-select {

    border: 2px solid var(--border-color);

    border-radius: var(--border-radius-sm);

    padding: 12px 16px;

    font-size: 14px;

    background: white;

    width: 100%;

}



/* Modal - Scrollable */

.modal-content { 

    border: none; 

    border-radius: var(--border-radius-lg); 

    box-shadow: var(--shadow-xl);

    max-height: 90vh;

    display: flex;

    flex-direction: column;

}



.modal-dialog {

    max-width: 70%;

    margin: 1.75rem auto;

    overflow: hidden;

}



.modal-header {

    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);

    color: white;

    padding: 20px 25px;

    flex-shrink: 0;

}



.modal-header .modal-title { color: white; font-weight: 600; }

.modal-header .btn-close { filter: brightness(0) invert(1); }



.modal-body { 

    padding: 30px; 

    overflow-y: auto;

    overflow-x: hidden;

    max-height: calc(90vh - 140px);

    flex: 1;

}



.modal-footer { 

    padding: 20px 25px; 

    background: var(--bg-body); 

    border-top: 1px solid var(--border-color);

    flex-shrink: 0;

}



/* Modal Scrollbar Styling */

.modal-body::-webkit-scrollbar,

.modal-content::-webkit-scrollbar {

    width: 6px;

}



.modal-body::-webkit-scrollbar-track,

.modal-content::-webkit-scrollbar-track {

    background: var(--bg-body);

    border-radius: 3px;

}



.modal-body::-webkit-scrollbar-thumb,

.modal-content::-webkit-scrollbar-thumb {

    background: var(--secondary);

    border-radius: 3px;

}



.modal-body::-webkit-scrollbar-thumb:hover,

.modal-content::-webkit-scrollbar-thumb:hover {

    background: var(--secondary-dark);

}



/* Responsive Modal - Tablet */

@media (max-width: 992px) {

    .modal-dialog {

        max-width: 90%;

        margin: 1rem auto;

    }

    

    .modal-body {

        max-height: calc(85vh - 130px);

        padding: 20px;

    }

}



/* Responsive Modal - Mobile */

@media (max-width: 768px) {

    .modal-dialog {

        max-width: 95%;

        margin: 0.5rem auto;

    }

    

    .modal-body {

        max-height: calc(80vh - 120px);

        padding: 15px;

    }

    

    .modal-header {

        padding: 15px 20px;

    }

    

    .modal-footer {

        padding: 15px 20px;

        flex-direction: column;

    }

    

    .modal-footer .btn {

        width: 100%;

        margin-bottom: 10px;

    }

    

    .modal-footer .btn:last-child {

        margin-bottom: 0;

    }

}



/* Responsive Modal - Small Mobile */

@media (max-width: 576px) {

    .modal-body {

        max-height: calc(75vh - 110px);

        padding: 12px;

    }

    

    .modal-header {

        padding: 12px 15px;

    }

    

    .modal-header .modal-title {

        font-size: 16px;

    }

}



/* Alerts */

.alert {

    border-radius: var(--border-radius-sm);

    padding: 16px 20px;

    border: none;

    font-weight: 500;

    margin-bottom: 20px;

}



.alert-success { background: rgba(39, 174, 96, 0.15); color: var(--success); border-left: 4px solid var(--success); }

.alert-danger { background: rgba(231, 76, 60, 0.15); color: var(--accent); border-left: 4px solid var(--accent); }

.alert-warning { background: rgba(243, 156, 18, 0.15); color: var(--warning); border-left: 4px solid var(--warning); }



/* Badges */

.badge {

    padding: 6px 14px;

    font-weight: 600;

    font-size: 11px;

    border-radius: 20px;

    text-transform: uppercase;

}



.badge-success { background: rgba(39, 174, 96, 0.15); color: var(--success); }

.badge-warning { background: rgba(243, 156, 18, 0.15); color: var(--warning); }

.badge-danger { background: rgba(231, 76, 60, 0.15); color: var(--accent); }

.badge-primary { background: rgba(52, 152, 219, 0.15); color: var(--secondary); }



/* Footer */

.footer { background: var(--bg-card); padding: 20px 30px; text-align: center; border-top: 1px solid var(--border-color); }

.footer p { margin: 0; font-size: 13px; color: var(--text-secondary); }



/* Search Box */

.search-box { position: absolute; right:20px; max-width: 320px; }

.search-box input { padding-left: 45px; border-radius: 25px; }

.search-box i { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }



/* Action Buttons */

.action-buttons { display: flex; gap: 8px; }



.action-btn {

    width: 36px;

    height: 36px;

    border: none;

    border-radius: var(--border-radius-sm);

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    text-decoration: none;

}



.action-btn.view { background: rgba(52, 152, 219, 0.15); color: var(--secondary); }

.action-btn.edit { background: rgba(243, 156, 18, 0.15); color: var(--warning); }

.action-btn.delete { background: rgba(231, 76, 60, 0.15); color: var(--accent); }



/* Empty State */

.empty-state { text-align: center; padding: 60px 20px; }

.empty-state i { font-size: 70px; color: var(--border-color); margin-bottom: 20px; }

.empty-state h4 { color: var(--text-primary); margin-bottom: 10px; }

.empty-state p { color: var(--text-secondary); }



/* Tab Navigation */

.nav-tabs { border-bottom: 2px solid var(--border-color); margin-bottom: 25px; gap: 10px; display: flex; flex-wrap: wrap; }

.nav-tabs .nav-link { border: none; color: var(--text-secondary); font-weight: 600; padding: 14px 24px; border-radius: var(--border-radius-sm) var(--border-radius-sm) 0 0; }

.nav-tabs .nav-link:hover { color: var(--secondary); }

.nav-tabs .nav-link.active { background: white; color: var(--secondary); border-bottom: 3px solid var(--secondary); }



/* Summary Items */

.summary-item { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--border-color); }

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

.summary-item span:first-child { color: var(--text-secondary); font-size: 14px; }

.summary-item span:last-child { font-weight: 700; font-size: 16px; }



/* Settings */

.settings-section { background: white; border-radius: var(--border-radius-lg); padding: 30px; box-shadow: var(--shadow-md); margin-bottom: 25px; }

.settings-section h5 { margin-bottom: 25px; padding-bottom: 15px; border-bottom: 2px solid var(--border-color); color: var(--primary); }



/* Dropdown */

.dropdown-menu { border: none; border-radius: var(--border-radius-sm); box-shadow: var(--shadow-lg); padding: 10px; min-width: 200px; }

.dropdown-menu .dropdown-item { border-radius: 6px; padding: 10px 15px; color: var(--text-primary); }

.dropdown-menu .dropdown-item:hover { background: var(--bg-body); color: var(--secondary); }

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



/* Responsive - Tablet and below */

@media (max-width: 992px) {

    .sidebar { margin-left: -280px; }

    .sidebar.active { margin-left: 0; }

    .main-content { margin-left: 0; width: 100%; }

    #content { margin-left: 0; width: 100%; }

    .content { padding: 20px 15px; }

    .content-header .d-flex { flex-direction: column; gap: 15px; }

    .content-header .btn { width: 100%; justify-content: center; }

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

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

    .nav-tabs .nav-link { border-radius: var(--border-radius-sm); }

    .modal-dialog { max-width: 90%; margin: 1.75rem auto; }

}



/* Responsive - Mobile */

@media (max-width: 768px) {

    :root { --header-height: 60px; }

    .header { padding: 0 15px; }

    .header-right .dropdown-toggle span { display: none; }

    .content-header h2 { font-size: 20px; flex-wrap: wrap; }

    .stat-card { flex-direction: column; text-align: center; padding: 18px; gap: 12px; }

    .stat-icon { width: 50px; height: 50px; font-size: 20px; }

    .stat-info h3 { font-size: 20px; }

    .card { margin-bottom: 15px; }

    .card-header { padding: 15px; flex-direction: column; gap: 10px; align-items: flex-start !important; }

    .card-body { padding: 15px; }

    .table { font-size: 12px; }

    .table thead th, .table tbody td { padding: 10px 8px; }

    .action-buttons { flex-wrap: wrap; justify-content: center; }

    .action-btn { width: 30px; height: 30px; }

    .btn { padding: 8px 16px; font-size: 13px; }

    .form-control, .form-select { padding: 10px 14px; font-size: 13px; }

    .modal-body { padding: 20px; }

    .modal-footer { padding: 15px 20px; flex-direction: column; }

    .modal-footer .btn { width: 100%; justify-content: center; }

    .search-box { max-width: 100%; width: 100%; }

    .footer { padding: 15px; }

    .badge { padding: 4px 10px; font-size: 10px; }

}



/* Responsive - Small Mobile */

@media (max-width: 576px) {

    .content { padding: 15px 10px; }

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

    .stat-card { padding: 15px; }

    .stat-icon { width: 45px; height: 45px; font-size: 18px; }

    .stat-info h3 { font-size: 18px; }

    .table thead th, .table tbody td { padding: 8px 6px; font-size: 11px; }

    .btn { padding: 7px 14px; font-size: 12px; }

    .modal-header { padding: 15px; }

    .modal-header .modal-title { font-size: 16px; }

    .modal-body { padding: 15px; }

    .settings-section { padding: 20px; }

    .alert { padding: 12px 15px; font-size: 13px; }

}



/* Extra Small */

@media (max-width: 400px) {

    .content-header h2 { font-size: 16px; }

    .stat-info h3 { font-size: 16px; }

    .card-header h5 { font-size: 14px; }

    .table { font-size: 10px; }

    .table thead th, .table tbody td { padding: 6px 4px; }

}



/* Touch devices */

@media (hover: none) and (pointer: coarse) {

    .btn:hover { transform: none; }

    .stat-card:hover { transform: none; }

    .action-btn:hover { transform: scale(1.05); }

}



/* Print */

@media print {

    .sidebar, .header, .btn, .action-buttons, .search-box { display: none !important; }

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

    .content { padding: 0; }

    .card { box-shadow: none; border: 1px solid #ddd; }

    .table thead th { background: #f5f5f5 !important; color: #000 !important; }

}



/* Scrollbar */

::-webkit-scrollbar { width: 8px; height: 8px; }

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

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



/* Animations */

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

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

.fade-in { animation: fadeIn 0.5s ease; }

.slide-up { animation: slideUp 0.5s ease; }



/* Toast */

.toast-container { position: fixed; top: 25px; right: 25px; z-index: 9999; }

.toast { background: white; border-radius: var(--border-radius-sm); box-shadow: var(--shadow-lg); padding: 18px 22px; margin-bottom: 12px; display: flex; align-items: center; gap: 14px; min-width: 350px; animation: slideIn 0.4s ease; }

.toast-success { border-left: 5px solid var(--success); }

.toast-error { border-left: 5px solid var(--accent); }



/* Spinner */

.spinner-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255, 255, 255, 0.9); display: none; align-items: center; justify-content: center; z-index: 9999; }

.spinner-overlay.active { display: flex; }

.spinner-border { width: 50px; height: 50px; border: 4px solid rgba(52, 152, 219, 0.2); border-top-color: var(--secondary); border-radius: 50%; animation: spin 0.8s linear infinite; }

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



/* Text utilities */

.text-success { color: var(--success) !important; }

.text-danger { color: var(--accent) !important; }

.text-muted { color: var(--text-muted) !important; }

.text-center { text-align: center !important; }

.text-end { text-align: right !important; }



/* Margin utilities */

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

.mb-1 { margin-bottom: 0.25rem !important; }

.mb-2 { margin-bottom: 0.5rem !important; }

.mb-3 { margin-bottom: 1rem !important; }

.mb-4 { margin-bottom: 1.5rem !important; }

.mb-5 { margin-bottom: 3rem !important; }

.mt-0 { margin-top: 0 !important; }

.mt-1 { margin-top: 0.25rem !important; }

.mt-2 { margin-top: 0.5rem !important; }

.mt-3 { margin-top: 1rem !important; }

.mt-4 { margin-top: 1.5rem !important; }

.mt-5 { margin-top: 3rem !important; }



/* Padding utilities */

.p-0 { padding: 0 !important; }

.p-1 { padding: 0.25rem !important; }

.p-2 { padding: 0.5rem !important; }

.p-3 { padding: 1rem !important; }

.p-4 { padding: 1.5rem !important; }

.p-5 { padding: 3rem !important; }

.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }

.px-3 { padding-left: 1rem !important; padding-right: 1rem !important; }



/* Display utilities */

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

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

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

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

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



/* Flex utilities */

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

.flex-wrap { flex-wrap: wrap !important; }

.flex-nowrap { flex-wrap: nowrap !important; }

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

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

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

.align-items-start { align-items: flex-start !important; }

.gap-1 { gap: 0.25rem !important; }

.gap-2 { gap: 0.5rem !important; }

.gap-3 { gap: 1rem !important; }

.gap-4 { gap: 1.5rem !important; }



/* Width utilities */

.w-100 { width: 100% !important; }

.w-auto { width: auto !important; }



/* Grid */

.row { display: flex; flex-wrap: wrap; margin-left: -15px; margin-right: -15px; }

.col, .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12,

.col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12,

.col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12,

.col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 { position: relative; padding-left: 15px; padding-right: 15px; }



.col-12 { flex: 0 0 100%; max-width: 100%; }

.col-6 { flex: 0 0 50%; max-width: 50%; }

.col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }

.col-3 { flex: 0 0 25%; max-width: 25%; }

.col-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }



@media (min-width: 768px) {

    .col-md-12 { flex: 0 0 100%; max-width: 100%; }

    .col-md-6 { flex: 0 0 50%; max-width: 50%; }

    .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }

    .col-md-3 { flex: 0 0 25%; max-width: 25%; }

    .col-md-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }

}



@media (min-width: 992px) {

    .col-lg-12 { flex: 0 0 100%; max-width: 100%; }

    .col-lg-6 { flex: 0 0 50%; max-width: 50%; }

    .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }

    .col-lg-3 { flex: 0 0 25%; max-width: 25%; }

    .col-lg-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }

}



/* ── Module Management: Sidebar Section Labels & Locked Items ── */
.sidebar-section-label {
    display: block;
    padding: 4px 18px 2px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: .1em;
    color: rgba(255,255,255,.4);
    text-transform: uppercase;
}

.sidebar-divider {
    border-color: rgba(255,255,255,.1);
    margin: 4px 12px;
}

.nav-link-locked {
    opacity: .45;
    pointer-events: auto !important;
    cursor: default;
    transition: opacity .2s;
    display: flex;
    align-items: center;
}

.nav-link-locked:hover {
    opacity: .65;
    background: rgba(255,255,255,.05);
}

.nav-link-locked .fa-lock {
    margin-left: auto;
    font-size: .7rem;
    color: rgba(255,255,255,.6);
}

/* ── Dashboard Plan Widget ── */
.plan-widget { border-left: 4px solid #6f42c1; }
.plan-widget .badge-starter  { background: #6c757d; }
.plan-widget .badge-growth   { background: #0d6efd; }
.plan-widget .badge-premium  { background: #6f42c1; }

