@charset "UTF-8";

:root {
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --primary-light: #eff6ff;
    --primary-dark: #1d4ed8;
    --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    
    --success: #10b981;
    --success-hover: #059669;
    --success-light: #ecfdf5;
    --success-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    
    --warning: #f59e0b;
    --warning-hover: #d97706;
    --warning-light: #fffbeb;
    --warning-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    
    --danger: #ef4444;
    --danger-hover: #dc2626;
    --danger-light: #fef2f2;
    --danger-gradient: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    
    --info: #06b6d4;
    --info-hover: #0891b2;
    --info-light: #ecfeff;
    --info-gradient: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    
    --purple: #8b5cf6;
    --purple-light: #f5f3ff;
    
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    --white: #ffffff;
    --black: #000000;
    
    --bg-main: #f0f2f5;
    --bg-card: #ffffff;
    --bg-sidebar: #1e293b;
    --bg-header: #1e293b;
    
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;
    --text-light: #9ca3af;
    --text-white: #ffffff;
    
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    
    --radius-sm: 4px;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    
    --transition: all 0.2s ease;
    --transition-fast: all 0.15s ease;
    
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
    
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 80px;
    --header-height: 64px;
}

* { box-sizing: border-box; }

html { font-size: 14px; -webkit-font-smoothing: antialiased; }

body {
    font-family: var(--font-sans);
    background: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.app { min-height: 100vh; background: var(--bg-main); }
.app-header-fixed { padding-top: var(--header-height); }

.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 1030;
    background: var(--bg-header);
    box-shadow: var(--shadow-md);
    border: none;
}

.app-header .navbar-header {
    background: transparent;
    float: left;
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.app-header .navbar-brand {
    color: var(--text-white);
    font-size: var(--text-lg);
    font-weight: 700;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
}

.app-header .navbar-brand i { font-size: 24px; color: var(--primary); }
.app-header .navbar-collapse { background: transparent; float: right; height: var(--header-height); }
.app-header .navbar-nav { height: 100%; display: flex; align-items: center; }
.app-header .navbar-nav > li { height: 100%; display: flex; align-items: center; }

.app-header .navbar-nav > li > a {
    color: rgba(255, 255, 255, 0.85);
    font-size: var(--text-sm);
    font-weight: 500;
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.app-header .navbar-nav > li > a:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.1);
}

.app-header .thumb-sm {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.app-header .thumb-sm img { width: 100%; height: 100%; object-fit: cover; }

.app-header .dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 8px 0;
    min-width: 200px;
    margin-top: 8px;
}

.app-header .dropdown-menu > li > a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: var(--text-secondary);
    font-size: var(--text-sm);
    transition: var(--transition);
}

.app-header .dropdown-menu > li > a:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.app-header .dropdown-menu .divider {
    height: 1px;
    background: var(--border-light);
    margin: 8px 0;
}

.app-aside {
    position: fixed;
    top: var(--header-height);
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1020;
    transition: var(--transition);
}

.app-aside-folded .app-aside { width: var(--sidebar-collapsed-width); }
.app-aside .aside-wrap { padding: 20px 0; height: 100%; display: flex; flex-direction: column; }
.app-aside .navi-wrap { flex: 1; overflow-y: auto; overflow-x: hidden; }
.app-aside .navi-wrap::-webkit-scrollbar { width: 4px; }
.app-aside .navi-wrap::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); border-radius: var(--radius-full); }

.app-aside .nav { list-style: none; padding: 0; margin: 0; }
.app-aside .nav > li { margin: 2px 12px; }

.app-aside .nav > li > a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-sm);
    font-weight: 500;
    border-radius: var(--radius);
    transition: var(--transition);
    text-decoration: none;
    gap: 12px;
}

.app-aside .nav > li > a:hover { background: rgba(255, 255, 255, 0.1); color: var(--text-white); }
.app-aside .nav > li.active > a { background: var(--primary); color: var(--text-white); }
.app-aside .nav > li > a i { width: 20px; text-align: center; font-size: 16px; }
.app-aside .nav > li > a .pull-right { margin-left: auto; }
.app-aside .nav > li > a .label { font-size: var(--text-xs); padding: 2px 8px; border-radius: var(--radius-full); }
.app-aside .nav > li > a .label.bg-info { background: var(--primary) !important; }
.app-aside .nav > li > a .label.bg-danger { background: var(--danger) !important; }

.app-aside .nav-sub {
    list-style: none;
    padding: 4px 0;
    margin: 4px 0 4px 28px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius);
}

.app-aside .nav-sub > li > a {
    display: block;
    padding: 10px 16px 10px 24px;
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--text-xs);
    transition: var(--transition);
    text-decoration: none;
}

.app-aside .nav-sub > li > a:hover { color: var(--text-white); background: rgba(255, 255, 255, 0.05); }
.app-aside .line { height: 1px; background: rgba(255, 255, 255, 0.1); margin: 16px 20px; }

.app-aside .hidden-folded {
    display: block;
    padding: 8px 20px;
    font-size: var(--text-xs);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.app-aside .wrapper { padding: 20px; }
.app-aside .wrapper .text-center-folded { font-size: var(--text-xs); color: rgba(255, 255, 255, 0.5); margin-bottom: 8px; }
.app-aside .progress { height: 4px; background: rgba(255, 255, 255, 0.1); border-radius: var(--radius-full); margin-bottom: 12px; }
.app-aside .progress-bar { border-radius: var(--radius-full); }
.app-aside .progress-bar-info { background: var(--primary); }
.app-aside .progress-bar-primary { background: var(--purple); }

.app-content {
    margin-left: var(--sidebar-width);
    min-height: calc(100vh - var(--header-height));
    transition: var(--transition);
}

.app-aside-folded .app-content { margin-left: var(--sidebar-collapsed-width); }
.app-content-body { padding: 24px; }
.bg-light { background: var(--bg-main) !important; }
.lter { background: transparent; }
.b-b { border-bottom: 1px solid var(--border-color) !important; }
.wrapper-md { padding: 24px; }
.control { max-width: 100%; }

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 { font-weight: 600; line-height: 1.4; color: var(--text-primary); }
.h1, h1 { font-size: var(--text-4xl); }
.h2, h2 { font-size: var(--text-3xl); }
.h3, h3 { font-size: var(--text-2xl); }
.h4, h4 { font-size: var(--text-xl); }
.h5, h5 { font-size: var(--text-lg); }
.h6, h6 { font-size: var(--text-base); }

.font-thin { font-weight: 300; }
.font-bold { font-weight: 600; }
.m-n { margin: 0; }
.m-t-sm { margin-top: 8px; }
.m-t-md { margin-top: 16px; }
.m-t-lg { margin-top: 24px; }
.m-b { margin-bottom: 16px; }
.m-b-sm { margin-bottom: 8px; }
.m-b-lg { margin-bottom: 24px; }
.m-l-sm { margin-left: 8px; }
.m-r-sm { margin-right: 8px; }
.padder-v { padding-top: 8px; padding-bottom: 8px; }
.padder { padding-left: 16px; padding-right: 16px; }

.text-muted { color: var(--text-muted) !important; }
.text-primary { color: var(--primary) !important; }
.text-success { color: var(--success) !important; }
.text-warning { color: var(--warning) !important; }
.text-danger { color: var(--danger) !important; }
.text-info { color: var(--info) !important; }
.text-dark { color: var(--gray-800) !important; }
.text-primary-dk { color: var(--primary-dark) !important; }
.text-dark-dk { color: var(--gray-800) !important; }
.text-success-dk { color: #047857 !important; }
.text-info-dk { color: #0284c7 !important; }
.text-md { font-size: var(--text-sm); }
.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }

.row-sm { margin-left: -8px; margin-right: -8px; }
.row-sm > [class*="col-"] { padding-left: 8px; padding-right: 8px; }

.panel {
    background: var(--bg-card);
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    margin-bottom: 24px;
    overflow: hidden;
}

.panel-heading {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-card);
}

.panel-default > .panel-heading { background: var(--bg-card); }
.panel-heading.bg-info { background: var(--primary-gradient); }
.panel-heading.bg-info.dk { background: var(--primary-gradient); }
.panel-heading.no-border { border-bottom: none; }
.panel-heading.font-bold .panel-title { font-weight: 600; }

.panel-title {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.panel-body { padding: 24px; }
.panel-footer { padding: 16px 24px; background: var(--gray-50); border-top: 1px solid var(--border-light); }
.panel.padder-v { padding: 24px; }

.panel.padder-v.item {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.panel.padder-v.item:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.panel .top { position: relative; }
.panel .top .fa-caret-down { color: var(--warning); }

.panel .round {
    width: 56px;
    height: 56px;
    line-height: 56px;
    text-align: center;
    border-radius: var(--radius-full);
    background: var(--primary-light);
    color: var(--primary);
    font-size: 24px;
    display: inline-block;
    border: 3px solid var(--border-light);
}

.panel .row { display: flex; align-items: center; }
.panel .h1 { font-size: var(--text-3xl); font-weight: 700; margin: 0; }
.panel b-a { border: none; }

.panel .thumb-lg {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-full);
    overflow: hidden;
    margin: -50px auto 16px;
    border: 4px solid var(--bg-card);
    box-shadow: var(--shadow-md);
}

.panel .thumb-lg img { width: 100%; height: 100%; object-fit: cover; }
.panel .m-t-n-xxl { margin-top: -48px; }
.panel .avatar { border-radius: var(--radius-full); }
.panel .b-white { border-color: var(--bg-card) !important; }
.panel .b-3x { border-width: 4px; }
.panel .hbox { display: flex; border-top: 1px solid var(--border-light); }

.panel .hbox > .col {
    flex: 1;
    padding: 20px;
    text-align: center;
    transition: var(--transition);
}

.panel .hbox > .col:hover { background: var(--gray-50); }
.panel .hbox > .col.b-r { border-right: 1px solid var(--border-light); }
.panel .hbox .h3 { font-size: var(--text-xl); font-weight: 700; margin: 0 0 4px; color: var(--text-primary); }
.panel .hbox i { color: var(--text-muted); margin-right: 4px; }
.panel .hbox span { color: var(--text-muted); font-size: var(--text-sm); }
.panel .h2 { font-size: var(--text-xl); margin: 0; }
.panel .h4 { font-size: var(--text-base); margin: 8px 0 0; color: var(--text-secondary); }

.list-group { margin-bottom: 0; }

.list-group-item {
    padding: 16px 24px;
    border: none;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-size: var(--text-sm);
    transition: var(--transition);
}

.list-group-item:last-child { border-bottom: none; }
.list-group-item:hover { background: var(--gray-50); }
.list-group-item em, .list-group-item i { margin-right: 10px; color: var(--primary); }

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

.table > thead > tr > th {
    background: var(--gray-50);
    border-bottom: 2px solid var(--border-color);
    color: var(--text-secondary);
    font-size: var(--text-sm);
    font-weight: 600;
    padding: 14px 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table > tbody > tr > td {
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
    font-size: var(--text-sm);
    padding: 14px 16px;
    vertical-align: middle;
}

.table > tbody > tr:hover > td { background: var(--gray-50); }
.table-striped > tbody > tr:nth-of-type(odd) { background: var(--gray-50); }
.table-striped > tbody > tr:nth-of-type(odd):hover { background: var(--gray-100); }
.table-responsive { border-radius: 0 0 var(--radius-xl) var(--radius-xl); overflow-x: auto; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: var(--text-sm);
    font-weight: 500;
    padding: 10px 20px;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
    background: var(--primary-gradient);
    color: var(--text-white);
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover { background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-dark) 100%); box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5); }

.btn-success { background: var(--success-gradient); color: var(--text-white); box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4); }
.btn-success:hover { background: linear-gradient(135deg, var(--success-hover) 0%, #047857 100%); }
.btn-warning { background: var(--warning-gradient); color: var(--text-white); box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4); }
.btn-warning:hover { background: linear-gradient(135deg, var(--warning-hover) 0%, #b45309 100%); }
.btn-danger { background: var(--danger-gradient); color: var(--text-white); box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4); }
.btn-danger:hover { background: linear-gradient(135deg, var(--danger-hover) 0%, #b91c1c 100%); }
.btn-info { background: var(--info-gradient); color: var(--text-white); box-shadow: 0 4px 14px rgba(6, 182, 212, 0.4); }
.btn-info:hover { background: linear-gradient(135deg, var(--info-hover) 0%, #0e7490 100%); }
.btn-default { background: var(--bg-card); color: var(--text-secondary); border: 1px solid var(--border-color); }
.btn-default:hover { background: var(--gray-50); color: var(--text-primary); border-color: var(--gray-300); }
.btn-white { background: var(--bg-card); color: var(--text-secondary); border: 1px solid var(--border-color); }
.btn-white:hover { background: var(--gray-50); }
.btn-lg { padding: 14px 28px; font-size: var(--text-base); border-radius: var(--radius-lg); }
.btn-sm { padding: 6px 14px; font-size: var(--text-xs); border-radius: var(--radius-sm); }
.btn-xs { padding: 4px 10px; font-size: var(--text-xs); border-radius: var(--radius-sm); }
.btn-rounded { border-radius: var(--radius-full); }
.btn-block { display: flex; width: 100%; }

.form-control {
    display: block;
    width: 100%;
    height: 44px;
    padding: 10px 16px;
    font-size: var(--text-sm);
    font-family: var(--font-sans);
    color: var(--text-primary);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15); }
.form-control::placeholder { color: var(--text-light); }
.form-control.input-sm { height: 36px; padding: 6px 12px; font-size: var(--text-xs); }
.form-inline .form-group { margin-right: 12px; margin-bottom: 12px; }

.input-group { position: relative; display: flex; width: 100%; }
.input-group .form-control { position: relative; flex: 1 1 auto; width: 1%; min-width: 0; border-radius: 0; }
.input-group .form-control:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.input-group .form-control:last-child { border-radius: 0 var(--radius) var(--radius) 0; }

.input-group-addon {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    font-size: var(--text-sm);
    color: var(--text-secondary);
    background: var(--gray-50);
    border: 1px solid var(--border-color);
}

.input-group-addon:first-child { border-radius: var(--radius) 0 0 var(--radius); border-right: none; }
.input-group-addon:last-child { border-radius: 0 var(--radius) var(--radius) 0; border-left: none; }
.input-daterange { border-radius: var(--radius); overflow: hidden; }
.input-daterange .form-control { border: 1px solid var(--border-color); }
.input-daterange .input-group-addon { background: var(--bg-card); cursor: pointer; }

.alert {
    padding: 16px 20px;
    border-radius: var(--radius-lg);
    border: none;
    font-size: var(--text-sm);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success { background: var(--success-light); color: var(--success); border-left: 4px solid var(--success); }
.alert-danger { background: var(--danger-light); color: var(--danger); border-left: 4px solid var(--danger); }
.alert-warning { background: var(--warning-light); color: var(--warning); border-left: 4px solid var(--warning); }
.alert-info { background: var(--info-light); color: var(--info); border-left: 4px solid var(--info); }
.alert .btn-sm { padding: 4px 12px; }

.label {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
}

.label-primary { background: var(--primary-light); color: var(--primary); }
.label-success { background: var(--success-light); color: var(--success); }
.label-warning { background: var(--warning-light); color: var(--warning); }
.label-danger { background: var(--danger-light); color: var(--danger); }
.label-info { background: var(--info-light); color: var(--info); }
.label-default { background: var(--gray-100); color: var(--text-secondary); }
.label.bg-info { background: var(--primary) !important; color: var(--text-white); }
.label.bg-danger { background: var(--danger) !important; color: var(--text-white); }
.label.bg-warning { background: var(--warning) !important; color: var(--text-white); }

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
    background: var(--danger);
    color: var(--text-white);
}

.nav-tabs { border-bottom: 2px solid var(--border-light); margin-bottom: 20px; display: flex; gap: 0; }
.nav-tabs > li { margin-bottom: -2px; }

.nav-tabs > li > a {
    padding: 12px 20px;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-muted);
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    transition: var(--transition);
    background: transparent;
}

.nav-tabs > li > a:hover { background: transparent; border-bottom-color: var(--primary); color: var(--primary); }
.nav-tabs > li.active > a, .nav-tabs > li.active > a:hover, .nav-tabs > li.active > a:focus { background: transparent; border: none; border-bottom: 2px solid var(--primary); color: var(--primary); }
.tab-content { padding: 0; }

.progress { height: 8px; background: var(--gray-100); border-radius: var(--radius-full); overflow: hidden; box-shadow: none; }
.progress-bar { border-radius: var(--radius-full); }
.progress-bar-primary { background: var(--primary-gradient); }
.progress-bar-success { background: var(--success-gradient); }
.progress-bar-info { background: var(--info-gradient); }
.progress-xxs { height: 3px; }
.progress-xs { height: 6px; }

.modal { z-index: 1050; }
.modal-dialog { margin: 50px auto; max-width: 500px; }
.modal-lg { max-width: 800px; }
.modal-content { background: var(--bg-card); border: none; border-radius: var(--radius-xl); box-shadow: var(--shadow-xl); }
.modal-header { padding: 20px 24px; border-bottom: 1px solid var(--border-light); }
.modal-header .close { opacity: 0.5; font-size: 28px; font-weight: 300; margin-top: -4px; }
.modal-header .close:hover { opacity: 1; }
.modal-title { font-size: var(--text-lg); font-weight: 600; color: var(--text-primary); }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border-light); display: flex; justify-content: flex-end; gap: 12px; }

.on.md {
    width: 12px;
    height: 12px;
    background: var(--success);
    border-radius: var(--radius-full);
    position: absolute;
    bottom: 0;
    right: 0;
    border: 2px solid var(--bg-card);
}

.hidden-folded { display: block; }
.pull-right { float: right; }
.pull-left { float: left; }
.text-lt { color: rgba(255, 255, 255, 0.9); }
.dk { color: var(--text-muted); }
.w-full { width: 100%; }
.w { width: 200px; }
.clearfix::after { content: ""; display: table; clear: both; }

.animated { animation-duration: 0.3s; animation-fill-mode: both; }
.fadeIn { animation-name: fadeIn; }
.fadeInRight { animation-name: fadeInRight; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

@media (max-width: 991px) {
    .app-aside { transform: translateX(-100%); }
    .app-aside.show { transform: translateX(0); }
    .app-content { margin-left: 0; }
    .app-header .navbar-header { float: none; }
    .app-header .navbar-collapse { float: none; background: var(--bg-header); }
}

@media (max-width: 767px) {
    .app-content-body { padding: 16px; }
    .wrapper-md { padding: 16px; }
    .panel { border-radius: var(--radius-lg); }
    .panel-body { padding: 16px; }
    .row-sm > [class*="col-"] { margin-bottom: 12px; }
    .form-inline .form-group { display: block; width: 100%; }
    .btn { width: 100%; justify-content: center; }
}

@media (min-width: 768px) {
    .app-aside-folded .hidden-folded { display: none !important; }
    .app-aside-folded .nav > li > a { justify-content: center; padding: 12px; }
    .app-aside-folded .nav > li > a span { display: none; }
    .app-aside-folded .nav-sub { display: none; }
    .app-aside-folded .line { display: none; }
    .app-aside-folded .wrapper { display: none; }
}

.bg-black { background: var(--gray-900) !important; }
.bg-dark { background: var(--gray-800) !important; }
.bg-white { background: var(--bg-card) !important; }
.bg-primary { background: var(--primary) !important; }
.bg-success { background: var(--success) !important; }
.bg-warning { background: var(--warning) !important; }
.bg-danger { background: var(--danger) !important; }
.bg-info { background: var(--info) !important; }
.no-border { border: none !important; }
.no-shadow { box-shadow: none !important; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.skeleton {
    background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-50) 50%, var(--gray-100) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius);
}

@keyframes skeleton-loading { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.stat-card .stat-icon { width: 56px; height: 56px; border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 16px; }
.stat-card .stat-icon.primary { background: var(--primary-light); color: var(--primary); }
.stat-card .stat-icon.success { background: var(--success-light); color: var(--success); }
.stat-card .stat-icon.warning { background: var(--warning-light); color: var(--warning); }
.stat-card .stat-icon.info { background: var(--info-light); color: var(--info); }
.stat-card .stat-icon.purple { background: var(--purple-light); color: var(--purple); }
.stat-card .stat-value { font-size: var(--text-3xl); font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.stat-card .stat-label { font-size: var(--text-sm); color: var(--text-muted); }

.chart-container { position: relative; height: 260px; }
.announcement-list { max-height: 300px; overflow-y: auto; }
.announcement-list::-webkit-scrollbar { width: 4px; }
.announcement-list::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: var(--radius-full); }

.search-toolbar {
    background: var(--bg-card);
    padding: 20px;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.search-toolbar .form-control { min-width: 150px; }
.search-toolbar .btn { flex-shrink: 0; }
.fixed-table-toolbar { padding: 16px 20px; }
.fixed-table-pagination { padding: 16px 20px; }

.dropdown-menu {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
}

.dropdown-menu > li > a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: var(--text-secondary);
    font-size: var(--text-sm);
    transition: var(--transition);
}

.dropdown-menu > li > a:hover { background: var(--primary-light); color: var(--primary); }
.dropdown-menu .divider { height: 1px; background: var(--border-light); margin: 8px 0; }
