/* ============================================================
   全局样式
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f3ff 0%, #e8e4f0 50%, #ddd6fe 100%);
    min-height: 100vh;
}

/* ============================================================
   布局
   ============================================================ */
.layout {
    display: flex;
    min-height: 100vh;
}

/* ============================================================
   侧边栏 - 蓝紫渐变主题
   ============================================================ */
.sidebar {
    width: 250px;
    background: linear-gradient(180deg, #6B63D6 0%, #5A49A6 100%);
    color: #fff;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    box-shadow: 2px 0 12px rgba(107, 99, 214, 0.4);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.sidebar::-webkit-scrollbar {
    width: 4px;
}
.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.sidebar-header {
    padding: 20px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 74px;
}

.header-left-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-wrapper {
    flex-shrink: 0;
}

.sidebar-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.header-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 130px;
    margin-top: -10px;
}

.company-name {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    letter-spacing: 4px;
    line-height: 1.5;
    text-align: center;
}

.company-en {
    font-size: 12px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    margin: 2px 0 0 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1.2;
    text-align: center;
}

/* 侧边栏导航 */
.sidebar-nav {
    padding: 15px 0;
}

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

.sidebar-nav .divider {
    padding: 12px 20px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar-nav li a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-left-color: #fbbf24;
}

.sidebar-nav li a.active {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-left-color: #fbbf24;
}

.sidebar-nav .icon {
    margin-right: 12px;
    font-size: 18px;
    width: 24px;
    text-align: center;
}

/* 子菜单 */
.sidebar-nav .submenu {
    display: none;
    background: rgba(0, 0, 0, 0.15);
}

.sidebar-nav .submenu.active {
    display: block;
}

.sidebar-nav .submenu a {
    padding-left: 50px;
    font-size: 13px;
    border-left: none;
}

.sidebar-nav .submenu a:hover,
.sidebar-nav .submenu a.active {
    background: rgba(255, 255, 255, 0.1);
    border-left: none;
}

.sidebar-nav .has-submenu > a {
    cursor: pointer;
    position: relative;
}

.sidebar-nav .has-submenu > a::after {
    content: '▶';
    position: absolute;
    right: 15px;
    font-size: 10px;
    transition: transform 0.3s ease;
    transform: rotate(-90deg);
}

.sidebar-nav .has-submenu.active > a::after {
    transform: rotate(0deg);
}

/* ============================================================
   主内容区
   ============================================================ */
.main-content {
    flex: 1;
    margin-left: 250px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ============================================================
   顶部导航 - 白色卡片风格
   ============================================================ */
.top-header {
    background: #fff;
    padding: 12px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 12px rgba(124, 58, 237, 0.1);
    border-radius: 0 0 16px 16px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-toggle {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    color: #fff;
    transition: all 0.3s ease;
    display: none;
}

.sidebar-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.system-title {
    font-size: 24px;
    font-weight: 600;
    color: #6B63D6;
    margin: 0;
    padding-left: 15px;
    border-left: 3px solid #6B63D6;
}

/* 浮动帮助按钮 */
.help-float-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f3e8ff;
    border-radius: 50%;
    text-decoration: none;
    margin-right: 10px;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(124, 58, 237, 0.15);
}

.help-float-btn .help-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(124, 58, 237, 0.15);
}

.help-float-btn .help-icon {
    font-size: 18px;
    font-weight: 600;
    color: #7c3aed;
    line-height: 1;
    font-family: Arial, sans-serif;
}

.help-float-btn:hover {
    transform: scale(1.08);
    box-shadow: inset 0 2px 4px rgba(124, 58, 237, 0.2);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: #f9fafb;
    border-radius: 20px;
}

.user-name {
    font-weight: 600;
    color: #1f2937;
}

.user-type {
    color: #7c3aed;
    font-size: 12px;
    font-weight: 500;
}

.btn-logout {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.btn-logout:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    color: #fff;
}

/* ============================================================
   内容区
   ============================================================ */
.content-wrapper {
    padding: 24px 30px;
    flex: 1;
}

/* ============================================================
   页面头部
   ============================================================ */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    background: #fff;
    padding: 20px 28px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.08);
}

.page-header h1 {
    font-size: 24px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.page-header p {
    color: #6b7280;
    margin: 4px 0 0 0;
    font-size: 14px;
}

.page-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ============================================================
   卡片 - 白色圆角风格
   ============================================================ */
.card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.08);
    margin-bottom: 24px;
    overflow: hidden;
}

.card-header {
    padding: 16px 24px;
    border-bottom: 1px solid #f3f4f6;
    font-weight: 600;
    font-size: 16px;
    color: #1f2937;
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h2,
.card-header h3,
.card-header h4 {
    margin: 0;
    font-size: 16px;
}

.card-body {
    padding: 24px;
}

.card-footer {
    padding: 16px 24px;
    border-top: 1px solid #f3f4f6;
    display: flex;
    gap: 12px;
    background: #fafafa;
    flex-wrap: wrap;
}

/* ============================================================
   表单
   ============================================================ */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.form-group .required {
    color: #ef4444;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fff;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 60px;
}

.form-group input[readonly],
.form-group input:disabled {
    background: #f3f4f6;
    cursor: not-allowed;
}

.form-control-sm {
    padding: 6px 10px;
    font-size: 13px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    width: 100%;
    transition: all 0.3s ease;
    background: #fff;
}

.form-control-sm:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.form-control-lg {
    padding: 14px 18px;
    font-size: 18px;
    font-weight: 500;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    width: 100%;
}

.form-control-static {
    padding: 10px 14px;
    display: block;
    color: #374151;
}

.form-horizontal .form-group {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.form-horizontal .form-group label {
    min-width: 140px;
    margin-top: 10px;
}

.form-horizontal .form-group > *:not(label) {
    flex: 1;
}

.form-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.form-inline .form-group {
    margin-bottom: 0;
}

.form-inline .form-group label {
    margin-bottom: 0;
    margin-right: 6px;
}

.form-inline input,
.form-inline select {
    min-width: 200px;
}

.form-help {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #6b7280;
}

.form-text {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: #6b7280;
}

.form-actions {
    display: flex;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
    flex-wrap: wrap;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #7c3aed;
    cursor: pointer;
}

/* ============================================================
   按钮 - 渐变风格
   ============================================================ */
.btn {
    padding: 10px 22px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    font-weight: 500;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.4);
    color: #fff;
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
    color: #fff;
}

.btn-secondary {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(107, 114, 128, 0.4);
    color: #fff;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
    color: #fff;
}

.btn-info {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(14, 165, 233, 0.4);
    color: #fff;
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
    color: #fff;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 12px;
    border-radius: 8px;
    display: inline-block;
    text-decoration: none;
    margin: 2px 3px;
}

.btn-sm:hover {
    color: #fff;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
}

/* ============================================================
   表格
   ============================================================ */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    font-size: 14px;
}

.table th,
.table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}

.table th {
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    font-weight: 600;
    color: #1f2937;
    white-space: nowrap;
    border-bottom: 2px solid #e5e7eb;
    font-size: 13px;
}

.table tbody tr {
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background: #faf5ff;
}

.table-striped tbody tr:nth-child(even) {
    background: #fafafa;
}

.table-striped tbody tr:nth-child(even):hover {
    background: #faf5ff;
}

.table-bordered {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.table-bordered th,
.table-bordered td {
    border: 1px solid #e5e7eb;
}

.table td.text-center,
.table th.text-center {
    text-align: center;
}

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

.text-primary {
    color: #7c3aed;
}
.text-success {
    color: #10b981;
}
.text-danger {
    color: #ef4444;
}
.text-warning {
    color: #f59e0b;
}
.text-muted {
    color: #6b7280;
}

/* ============================================================
   徽章
   ============================================================ */
.badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    text-align: center;
    line-height: 1.5;
}

.badge-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #059669;
}

.badge-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #d97706;
}

.badge-danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
}

.badge-info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #2563eb;
}

.badge-primary {
    background: linear-gradient(135deg, #ede9fe 0%, #c4b5fd 100%);
    color: #5b21b6;
}

.badge-secondary {
    background: #f3f4f6;
    color: #4b5563;
}

/* ============================================================
   搜索框
   ============================================================ */
.search-box {
    background: #fff;
    padding: 20px 24px;
    border-radius: 16px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.08);
}

.search-box .form-group {
    margin-bottom: 0;
}

.search-box .form-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.search-box input,
.search-box select {
    min-width: 200px;
}

/* ============================================================
   警告框
   ============================================================ */
.alert {
    padding: 14px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.alert-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #059669;
    border: 1px solid #6ee7b7;
}

.alert-danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
    border: 1px solid #fca5a5;
}

.alert-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #d97706;
    border: 1px solid #fcd34d;
}

.alert-info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #2563eb;
    border: 1px solid #93c5fd;
}

.alert-link {
    color: inherit;
    text-decoration: underline;
    margin: 0 4px;
    font-weight: 600;
}

.alert-link:hover {
    color: inherit;
}

/* ============================================================
   分页
   ============================================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    gap: 6px;
    flex-wrap: wrap;
}

.pagination span {
    padding: 8px 14px;
    color: #6b7280;
    font-weight: 500;
}

.pagination a {
    padding: 8px 16px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    text-decoration: none;
    color: #374151;
    transition: all 0.3s ease;
    font-weight: 500;
}

.pagination a:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    color: #fff;
    border-color: #7c3aed;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.pagination .current {
    padding: 8px 16px;
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    color: #fff;
    border-radius: 10px;
    font-weight: 600;
}

.pagination .disabled {
    padding: 8px 16px;
    color: #d1d5db;
    background: #f9fafb;
    border-color: #e5e7eb;
    border-radius: 10px;
    cursor: not-allowed;
}

/* ============================================================
   统计卡片
   ============================================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.08);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.15);
}

.stat-info .stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
}

.stat-info .stat-label {
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    margin-top: 2px;
}

.stat-icon {
    font-size: 40px;
    opacity: 0.6;
}

.stat-card .btn-sm {
    margin-top: 4px;
}

/* ============================================================
   信息网格 (详情页)
   ============================================================ */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px 24px;
}

.info-grid label {
    display: block;
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 2px;
}

.info-grid p {
    font-size: 15px;
    color: #1f2937;
    font-weight: 500;
    margin: 0;
    word-break: break-all;
}

.info-box {
    background: #f9fafb;
    padding: 16px 20px;
    border-radius: 10px;
    border-left: 4px solid #7c3aed;
}

.info-box label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
    display: block;
}

.info-box p {
    margin: 4px 0 0 0;
    color: #1f2937;
}

/* ============================================================
   示例代码块
   ============================================================ */
pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 16px 20px;
    border-radius: 10px;
    overflow-x: auto;
    font-size: 13px;
    font-family: 'Consolas', 'Courier New', monospace;
    line-height: 1.6;
    margin: 10px 0;
}

/* ============================================================
   辅助类
   ============================================================ */
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }

.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }

.mr-10 { margin-right: 10px; }
.mr-20 { margin-right: 20px; }

.ml-10 { margin-left: 10px; }
.ml-20 { margin-left: 20px; }

.clearfix { clear: both; }
.float-right { float: right; }
.float-left { float: left; }

/* ============================================================
   响应式设计
   ============================================================ */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        width: 280px;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .sidebar-toggle {
        display: block;
    }

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

    .top-header {
        padding: 10px 16px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .header-left {
        flex: 1;
    }

    .system-title {
        font-size: 16px;
        padding-left: 10px;
        border-left: 2px solid #6B63D6;
    }

    .content-wrapper {
        padding: 16px;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px 20px;
    }

    .page-header h1 {
        font-size: 20px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-info .stat-value {
        font-size: 24px;
    }

    .info-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .form-horizontal .form-group {
        flex-direction: column;
        gap: 4px;
    }

    .form-horizontal .form-group label {
        min-width: auto;
        margin-top: 0;
    }

    .search-box .form-inline {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box input,
    .search-box select {
        min-width: 100%;
    }

    .form-inline {
        flex-direction: column;
        align-items: stretch;
    }

    .form-inline .form-group {
        width: 100%;
    }

    .form-inline input,
    .form-inline select {
        min-width: 100%;
    }

    .card-body {
        padding: 16px;
    }
    .card-header {
        padding: 12px 16px;
        font-size: 14px;
    }

    .table th,
    .table td {
        padding: 8px 10px;
        font-size: 13px;
    }

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

    .btn-sm {
        padding: 4px 10px;
        font-size: 11px;
    }

    .user-info {
        padding: 4px 10px;
        font-size: 13px;
    }

    .btn-logout {
        padding: 6px 14px;
        font-size: 13px;
    }

    .help-float-btn {
        width: 32px;
        height: 32px;
        margin-right: 6px;
    }
    .help-float-btn .help-icon-wrapper {
        width: 26px;
        height: 26px;
    }
    .help-float-btn .help-icon {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .stat-card {
        padding: 12px 14px;
    }

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

    .stat-icon {
        font-size: 28px;
    }

    .page-header {
        padding: 12px 16px;
    }

    .top-header {
        padding: 8px 12px;
    }

    .system-title {
        font-size: 14px;
    }

    .content-wrapper {
        padding: 12px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .card-body {
        padding: 12px;
    }

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

    .pagination a,
    .pagination span,
    .pagination .current,
    .pagination .disabled {
        padding: 6px 10px;
        font-size: 12px;
    }
}