:root {
    --bg-app: #ECEFF1;
    --bg-surface: #FFFFFF;
    --bg-glass: rgba(255, 255, 255, 0.82);
    --border-soft: #D1D5DB;
    --border-strong: #CBD5E1;
    --shadow-soft: 0 4px 16px rgba(15, 23, 42, 0.06);
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
    --primary: #2563EB;
    --primary-hover: #1D4ED8;
    --text-main: #0F172A;
    --text-muted: #64748B;

    --success: #16a34a;
    --danger: #dc2626;
    --warning: #d97706;
    --info: #0284c7;

    --sidebar-width: 260px;
    --border-radius: 14px;
    --border-radius-sm: 10px;
    --transition: all 0.2s ease;
}

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

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

.app-container {
    display: flex;
    min-height: 100vh;
    height: 100vh;
    background: var(--bg-app);
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-glass);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-soft);
    z-index: 100;
    position: sticky;
    top: 0;
    border-right: 1px solid var(--border-soft);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid var(--border-soft);
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.logo i {
    font-size: 28px;
    color: var(--primary);
    background: var(--bg-surface);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    box-shadow: var(--shadow-xs);
}

.logo h2 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-main);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-surface);
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-soft);
    transition: var(--transition);
}

.user-info:hover {
    background: rgba(255, 255, 255, 0.9);
}

.user-info i {
    font-size: 36px;
    color: var(--primary);
}

.user-info div {
    flex: 1;
}

.user-info strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.user-info small {
    font-size: 12px;
    color: var(--text-muted);
    background: rgba(15, 23, 42, 0.04);
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.nav-section {
    padding: 12px 20px 8px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    color: var(--text-muted);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    border-radius: 8px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    height: 40px;
}

.nav-item:hover {
    background: rgba(15, 23, 42, 0.04);
    color: var(--text-main);
}

.nav-item.active {
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary);
}

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

.nav-item.logout {
    color: var(--danger);
    margin-top: 10px;
}

.nav-item.logout:hover {
    background: rgba(220, 38, 38, 0.08);
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-soft);
    background: transparent;
}

.system-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    font-size: 11px;
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    overflow: hidden;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1 1 auto;
    justify-content: center;
    padding: 6px 10px;
    border-left: 1px solid var(--border-soft);
    background: transparent;
    transition: var(--transition);
}

.status-item:first-child {
    border-left: none;
}

.status-item:hover {
    background: rgba(15, 23, 42, 0.08);
}

.status-item i {
    opacity: 0.7;
    font-size: 12px;
}

.status-item span {
    font-weight: 600;
    font-size: 12px;
}

.version-info {
    text-align: center;
    margin-top: 10px;
    color: var(--text-muted);
    font-size: 11px;
    opacity: 0.7;
}

.version-info small {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Mono', monospace;
    letter-spacing: 0.5px;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    background: transparent;
    position: relative;
    height: 100vh;
}

.topbar {
    height: 64px;
    padding: 0 24px;
    background: var(--bg-glass);
    border-bottom: 1px solid var(--border-soft);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-xs);
    position: sticky;
    top: 0;
    z-index: 200;
    backdrop-filter: blur(10px);
}

.breadcrumb {
    font-size: 14px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.breadcrumb i {
    font-size: 12px;
    opacity: 0.5;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.current-time {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    background: var(--bg-surface);
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--border-soft);
}

.notification-bell {
    position: relative;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-surface);
    border-radius: 50%;
    border: 1px solid var(--border-soft);
    transition: var(--transition);
}

.notification-bell:hover {
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary);
    box-shadow: var(--shadow-xs);
}

.notification-bell i {
    font-size: 16px;
}

.notification-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-surface);
}

/* Flash Messages */
.flash-container {
    padding: 0 30px;
    margin-top: 20px;
}

.alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 4px solid;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

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

.alert-success {
    background-color: rgba(22, 163, 74, 0.08);
    color: var(--success);
    border-left-color: var(--success);
}

.alert-danger {
    background-color: rgba(220, 38, 38, 0.08);
    color: var(--danger);
    border-left-color: var(--danger);
}

.alert-warning {
    background-color: rgba(217, 119, 6, 0.08);
    color: var(--warning);
    border-left-color: var(--warning);
}

.alert-info {
    background-color: rgba(2, 132, 199, 0.08);
    color: var(--info);
    border-left-color: var(--info);
}

.alert .close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition);
    color: inherit;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.alert .close:hover {
    opacity: 1;
    background: rgba(15, 23, 42, 0.06);
}

/* Content Container */
.content-container {
    flex: 1;
    padding: 24px;
    background: transparent;
}

/* Cards */
.card {
    background: var(--bg-surface);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    padding: 20px;
    margin-bottom: 25px;
    transition: var(--transition);
    border: 1px solid var(--border-soft);
    position: relative;
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-soft);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-soft);
}

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

.card-title i {
    color: var(--primary);
    font-size: 22px;
}

.card-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 6px;
    line-height: 1.5;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border-radius: var(--border-radius-sm);
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

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

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

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

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

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

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

.btn-outline {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--border-soft);
    color: var(--text-muted);
    font-weight: 600;
}

.btn-outline:hover {
    background: var(--bg-surface);
    border-color: var(--border-strong);
    color: var(--text-main);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
    border-radius: 6px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
    border-radius: 10px;
}

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

/* Tables */
.table-container {
    overflow-x: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xs);
    border: 1px solid var(--border-soft);
    background: var(--bg-surface);
}

.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--bg-surface);
    min-width: 800px;
}

.table th {
    background: #F8FAFC;
    padding: 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-soft);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-soft);
    vertical-align: middle;
    transition: var(--transition);
}

.table tbody tr {
    transition: var(--transition);
}

.table tbody tr:hover {
    background-color: #F1F5F9;
}

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

/* Forms */
.form-group {
    margin-bottom: 24px;
}

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

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-soft);
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    transition: var(--transition);
    background: var(--bg-surface);
    color: var(--text-main);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.form-control.error {
    border-color: var(--danger);
    background: rgba(229, 62, 62, 0.02);
}

.form-text {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 6px;
    line-height: 1.4;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.form-check-input {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary);
}

.form-check-label {
    font-size: 14px;
    color: var(--text-main);
    cursor: pointer;
}

/* Status badges */
.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.badge-success {
    background: rgba(22, 163, 74, 0.12);
    color: var(--success);
    border: 1px solid rgba(22, 163, 74, 0.2);
}

.badge-danger {
    background: rgba(220, 38, 38, 0.12);
    color: var(--danger);
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.badge-warning {
    background: rgba(217, 119, 6, 0.12);
    color: var(--warning);
    border: 1px solid rgba(217, 119, 6, 0.2);
}

.badge-info {
    background: rgba(2, 132, 199, 0.12);
    color: var(--info);
    border: 1px solid rgba(2, 132, 199, 0.2);
}

.badge-primary {
    background: rgba(37, 99, 235, 0.12);
    color: var(--primary);
    border: 1px solid rgba(37, 99, 235, 0.2);
}

/* Stats cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-surface);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid var(--border-soft);
    transition: var(--transition);
}

.stat-card:hover {
    box-shadow: var(--shadow-soft);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.stat-icon.primary { 
    background: rgba(37, 99, 235, 0.12); 
    color: var(--primary); 
    border: 1px solid rgba(37, 99, 235, 0.2);
}
.stat-icon.success { 
    background: rgba(22, 163, 74, 0.12); 
    color: var(--success); 
    border: 1px solid rgba(22, 163, 74, 0.2);
}
.stat-icon.warning { 
    background: rgba(217, 119, 6, 0.12); 
    color: var(--warning); 
    border: 1px solid rgba(217, 119, 6, 0.2);
}
.stat-icon.danger { 
    background: rgba(220, 38, 38, 0.12); 
    color: var(--danger); 
    border: 1px solid rgba(220, 38, 38, 0.2);
}
.stat-icon.info { 
    background: rgba(2, 132, 199, 0.12); 
    color: var(--info); 
    border: 1px solid rgba(2, 132, 199, 0.2);
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
    margin-bottom: 4px;
}

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

.stat-change {
    font-size: 12px;
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}

/* Terminal */
.terminal {
    background: var(--bg-surface);
    color: var(--text-main);
    border-radius: var(--border-radius);
    padding: 24px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid var(--border-soft);
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-soft);
}

.terminal-controls {
    display: flex;
    gap: 8px;
}

.terminal-content {
    white-space: pre-wrap;
    line-height: 1.6;
    font-size: 13px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}

.terminal-line {
    margin-bottom: 4px;
    padding: 2px 4px;
    border-radius: 3px;
    transition: background 0.2s;
}

.terminal-line:hover {
    background: rgba(15, 23, 42, 0.04);
}

.terminal-line.info { color: var(--info); }
.terminal-line.success { color: var(--success); }
.terminal-line.error { color: var(--danger); }
.terminal-line.warning { color: var(--warning); }
.terminal-line.debug { color: var(--primary); }

/* Progress bars */
.progress {
    height: 10px;
    background: rgba(148, 163, 184, 0.3);
    border-radius: 5px;
    overflow: hidden;
    margin: 8px 0;
}

.progress-bar {
    height: 100%;
    background: var(--primary);
    border-radius: 5px;
    transition: width 0.6s ease;
    position: relative;
    overflow: hidden;
}

/* Loading */
.loading {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(37, 99, 235, 0.2);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
}

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

/* Toast notifications */
.toast {
    position: fixed;
    top: 30px;
    right: 30px;
    background: var(--bg-surface);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 320px;
    max-width: 400px;
    transform: translateX(400px);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 9999;
    border-left: 4px solid;
}

.toast.show {
    transform: translateX(0);
}

.toast-success {
    border-left-color: var(--success);
}

.toast-error {
    border-left-color: var(--danger);
}

.toast-warning {
    border-left-color: var(--warning);
}

.toast-info {
    border-left-color: var(--info);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.5;
    transition: var(--transition);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.toast-close:hover {
    opacity: 1;
    background: rgba(15, 23, 42, 0.06);
}

/* Modal */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    opacity: 0;
    animation: fadeIn 0.3s forwards;
}

.modal {
    z-index: 9999;
}

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

.modal-content {
    background: var(--bg-surface);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.9);
    animation: zoomIn 0.3s forwards;
}

@keyframes zoomIn {
    to { transform: scale(1); }
}

.modal-header {
    background: var(--bg-surface);
    color: var(--text-main);
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-soft);
}

.modal-header .close {
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 24px;
    cursor: pointer;
    opacity: 0.8;
    transition: var(--transition);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-header .close:hover {
    opacity: 1;
    background: rgba(15, 23, 42, 0.06);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    max-height: calc(90vh - 140px);
}

.modal-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border-soft);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Responsive */
@media (max-width: 1200px) {
    .sidebar {
        width: 240px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 992px) {
    .app-container {
        flex-direction: column;
        height: auto;
        overflow: visible;
    }

    .sidebar {
        width: 100%;
        height: auto;
        min-width: 100%;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        max-height: 70vh;
        overflow-y: auto;
    }

    .main-content {
        margin-top: 70vh;
        border-radius: 0;
        height: auto;
        overflow: visible;
    }
    
    .sidebar-nav {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
        padding: 20px;
    }
    
    .nav-item {
        border-left: none;
        border-bottom: 3px solid transparent;
        justify-content: center;
        text-align: center;
        flex-direction: column;
        padding: 15px;
    }
    
    .nav-item.active {
        border-left: none;
        border-bottom-color: var(--primary);
    }
    
    .nav-section {
        display: none;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .content-container {
        padding: 20px;
    }
    
    .card {
        padding: 20px;
    }
    
    .table th, .table td {
        padding: 12px;
    }
    
    .modal-content {
        width: 95%;
    }
    
    .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-group .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .topbar {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .breadcrumb {
        justify-content: center;
    }
    
    .topbar-actions {
        justify-content: center;
    }
    
    .card-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .modal-footer {
        flex-direction: column;
    }
}

/* Utility classes */
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 20px; }

.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 20px; }

.ml-1 { margin-left: 4px; }
.ml-2 { margin-left: 8px; }
.ml-3 { margin-left: 12px; }
.ml-4 { margin-left: 16px; }
.ml-5 { margin-left: 20px; }

.mr-1 { margin-right: 4px; }
.mr-2 { margin-right: 8px; }
.mr-3 { margin-right: 12px; }
.mr-4 { margin-right: 16px; }
.mr-5 { margin-right: 20px; }

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

.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-info { color: var(--info); }

.bg-light { background: var(--bg-surface); }
.bg-dark { background: var(--text-main); color: white; }
.bg-primary { background: var(--primary); color: white; }
.bg-secondary { background: var(--border-strong); color: var(--text-main); }

.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }
.align-items-center { align-items: center; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.position-relative { position: relative; }
.position-absolute { position: absolute; }

.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }

.cursor-pointer { cursor: pointer; }

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

::-webkit-scrollbar-track {
    background: rgba(148, 163, 184, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.4);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 116, 139, 0.6);
}

/* Print styles */
@media print {
    .sidebar, .topbar, .btn {
        display: none !important;
    }
    
    .main-content {
        margin: 0;
        box-shadow: none;
        border-radius: 0;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid var(--border-soft);
        page-break-inside: avoid;
    }
}
