/* 堆積分後台管理系統 - 賽博朋克風格CSS */

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

body {
    font-family: 'Orbitron', 'Arial', sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* 霓虹光效果 */
@keyframes neon-glow {
    0%, 100% { box-shadow: 0 0 5px currentColor, 0 0 10px currentColor, 0 0 15px currentColor; }
    50% { box-shadow: 0 0 10px currentColor, 0 0 20px currentColor, 0 0 30px currentColor; }
}

/* 主色調定義 */
:root {
    --primary-color: #4facfe;
    --secondary-color: #00f2fe;
    --accent-color: #667eea;
    --success-color: #56ab2f;
    --warning-color: #f093fb;
    --danger-color: #f093fb;
    --text-color: #ffffff;
    --bg-dark: #1a1a2e;
    --bg-darker: #16213e;
    --bg-darkest: #0f3460;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* 登錄頁面 */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-darker) 50%, var(--bg-darkest) 100%);
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 0, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 0, 0.05) 0%, transparent 50%);
    animation: pulse 4s ease-in-out infinite;
}

.login-box {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    padding: 40px;
    width: 90%;
    max-width: 400px;
    position: relative;
    backdrop-filter: blur(10px);
    animation: neon-glow 2s ease-in-out infinite;
    animation-delay: 0.5s;
}

.login-box::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00ffff, #ff00ff, #ffff00, #00ffff);
    border-radius: 15px;
    z-index: -1;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    color: var(--primary-color);
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(79, 172, 254, 0.5);
    font-weight: 900;
}

.login-header p {
    color: #888;
    font-size: 1.1em;
}

.login-form .form-group {
    margin-bottom: 20px;
}

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

.login-form input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--primary-color);
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.login-form input:focus {
    outline: none;
    box-shadow: 0 0 15px rgba(79, 172, 254, 0.5);
    border-color: var(--primary-color);
}

.login-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: #000;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 255, 255, 0.4);
}

.error-message {
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid #ff0000;
    color: #ff6666;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

/* 管理後台主界面 */
.admin-container {
    display: flex;
    min-height: 100vh;
}

/* 側邊欄 */
.sidebar {
    width: 280px;
    background: rgba(0, 0, 0, 0.9);
    border-right: 2px solid #00ffff;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 1000;
}

.sidebar-header {
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
}

.sidebar-header h2 {
    color: #00ffff;
    font-size: 1.8em;
    margin-bottom: 5px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.sidebar-header p {
    color: #888;
    font-size: 0.9em;
}

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

.nav-item {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: rgba(0, 255, 255, 0.1);
    border-left-color: #00ffff;
    color: #00ffff;
}

.nav-item.active {
    background: rgba(0, 255, 255, 0.2);
    border-left-color: #00ffff;
    color: #00ffff;
}

.nav-icon {
    font-size: 1.2em;
    margin-right: 15px;
    width: 25px;
    text-align: center;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(0, 255, 255, 0.3);
    text-align: center;
}

/* 側欄底部：歡迎 / 主題開關 / 登出 換行顯示 */
.sidebar-footer-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}

.sidebar-footer-row p {
    margin: 0;
}

.sidebar-footer-row .admin-switch {
    margin: 0;
}

/* 側欄底部：主題開關（只要開關） */
.admin-switch {
    position: relative;
    width: 44px;
    height: 22px;
    border-radius: 999px;
    border: 1px solid rgba(0, 255, 255, 0.35);
    background: rgba(0, 0, 0, 0.35);
    cursor: pointer;
    display: inline-block;
    vertical-align: middle;
    margin: 8px 0 10px;
}

.admin-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(0, 255, 255, 0.9);
    transition: transform 0.2s ease, background 0.2s ease;
}

.admin-switch.is-on {
    background: rgba(0, 255, 255, 0.18);
    border-color: rgba(0, 255, 255, 0.6);
}

.admin-switch.is-on::after {
    transform: translateX(22px);
    background: rgba(0, 255, 255, 1);
}

.admin-switch:focus {
    outline: none;
}

.admin-switch:focus-visible {
    box-shadow: 0 0 0 3px rgba(0, 255, 255, 0.18);
}

.sidebar-footer p {
    color: #888;
    margin-bottom: 10px;
}

.logout-btn {
    color: #ff6666;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.logout-btn:hover {
    color: #ff0000;
}

/* 主內容區 */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 30px;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
}

.content-header {
    margin-bottom: 30px;
}

.content-header h1 {
    color: #00ffff;
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.content-header p {
    color: #888;
    font-size: 1.1em;
}

/* Admins page header: subtitle left + actions right */
.admin-page-header .admin-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-page-header .admin-header-row p {
    margin: 0;
}

.admin-page-header .admin-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* Readable tip (avoid yellow warning background) */
.admin-tip {
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.9);
    color: #000;
}

/* 統計卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #00ffff;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.stat-card:hover::before {
    left: 100%;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 255, 255, 0.3);
}

.stat-icon {
    font-size: 2.5em;
    margin-right: 20px;
    min-width: 60px;
    text-align: center;
}

.stat-content h3 {
    color: #00ffff;
    font-size: 2em;
    margin-bottom: 5px;
    font-weight: 700;
}

.stat-content p {
    color: #888;
    font-size: 1em;
}

/* 快速操作 */
.quick-actions {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #00ffff;
    border-radius: 12px;
    padding: 30px;
}

.quick-actions h2 {
    color: #00ffff;
    font-size: 1.8em;
    margin-bottom: 25px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

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

.action-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.action-card:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: #00ffff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.3);
    color: #00ffff;
}

.action-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
    display: block;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .action-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

/* 表格樣式 */
.data-table {
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #00ffff;
}

.data-table th {
    background: rgba(0, 255, 255, 0.1);
    color: #00ffff;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
}

.data-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.data-table tr:hover {
    background: rgba(0, 255, 255, 0.05);
}

/* 按鈕樣式 */
.btn {
    background: linear-gradient(45deg, #00ffff, #0080ff);
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.4);
}

.btn-danger {
    background: linear-gradient(45deg, #ff0000, #ff6666);
}

.btn-success {
    background: linear-gradient(45deg, #00ff00, #66ff66);
}

.btn-warning {
    background: linear-gradient(45deg, #ffff00, #ffcc00);
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: #000;
}

.btn-secondary {
    background: linear-gradient(45deg, #4b5563, #9ca3af);
    color: #fff;
}

/* 通用卡片（用于二级页面/二级菜单） */
.card {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #00ffff;
    border-radius: 12px;
    padding: 20px;
}

/* 内容居中容器（用于编辑页等） */
.content-center {
    max-width: 980px;
    margin: 0 auto;
}

/* 二级菜单弹窗（编辑用户） */
.admin-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.admin-modal.is-open {
    display: flex;
}

.admin-modal__mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.admin-modal__panel {
    position: relative;
    width: min(980px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
}

.theme-toggle-btn {
    width: 100%;
    margin-top: 10px;
    padding: 10px 12px;
    background: rgba(0, 255, 255, 0.08);
    border: 1px solid rgba(0, 255, 255, 0.35);
    color: #00ffff;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
}

.theme-toggle-btn:hover {
    background: rgba(0, 255, 255, 0.14);
}

.lang-toggle-btn {
    width: 100%;
    margin-top: 10px;
    padding: 10px 12px;
    background: rgba(0, 255, 255, 0.08);
    border: 1px solid rgba(0, 255, 255, 0.35);
    color: #00ffff;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
}

.lang-toggle-btn:hover {
    background: rgba(0, 255, 255, 0.14);
}

/* 表單樣式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #00ffff;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(0, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

/* 警告和成功消息 */
.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-success {
    background: rgba(0, 255, 0, 0.2);
    border: 1px solid #00ff00;
    color: #66ff66;
}

.alert-danger {
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid #ff0000;
    color: #ff6666;
}

.alert-warning {
    background: rgba(255, 255, 0, 0.2);
    border: 1px solid #ffff00;
    color: #ffff66;
}

/* 加載動畫 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #00ffff;
    animation: spin 1s ease-in-out infinite;
}

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

/* 搜索區域 */
.search-section {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #00ffff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.search-inputs {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.search-inputs .form-control {
    flex: 1;
    min-width: 200px;
}

/* 統計摘要 */
.stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-item {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.stat-label {
    display: block;
    color: #888;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.stat-value {
    display: block;
    color: #00ffff;
    font-size: 1.5em;
    font-weight: 700;
}

/* 表格容器 */
.table-container {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #00ffff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    overflow-x: auto;
}

/* 狀態徽章 */
.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 600;
    color: #000 !important;
}

.status-active {
    background: rgba(0, 255, 0, 0.2);
    color: #000 !important;
    border: 1px solid #00ff00;
}

.status-banned {
    background: rgba(255, 0, 0, 0.2);
    color: #000 !important;
    border: 1px solid #ff0000;
}

/* 操作按鈕 */
.action-buttons {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 0.8em;
}

/* 分頁 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.pagination .btn {
    padding: 8px 12px;
    min-width: 40px;
    text-align: center;
}

.pagination .btn.active {
    background: #00ffff;
    color: #000;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* 卡片表單區域 */
.card-form-section {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #00ffff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.card-form-section h3 {
    color: #00ffff;
    margin-bottom: 20px;
    font-size: 1.3em;
}

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

/* 模態框樣式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #00ffff;
    border-radius: 12px;
    padding: 30px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
}

.modal-header h3 {
    color: #00ffff;
    margin: 0;
}

.close {
    color: #888;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #00ffff;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 255, 255, 0.3);
}

/* 提現狀態徽章 */
.status-pending {
    background: rgba(255, 255, 0, 0.2);
    color: #000 !important;
    border: 1px solid #ffff00;
}

.status-approved {
    background: rgba(0, 255, 0, 0.2);
    color: #000 !important;
    border: 1px solid #00ff00;
}

.status-rejected {
    background: rgba(255, 0, 0, 0.2);
    color: #000 !important;
    border: 1px solid #ff0000;
}

/* 兑换订单进度状态（pending/processing/completed/failed） */
.status-processing {
    background: rgba(255, 255, 0, 0.2);
    border: 1px solid #ffff00;
}

.status-completed {
    background: rgba(0, 255, 0, 0.2);
    border: 1px solid #00ff00;
}

.status-failed {
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid #ff0000;
}

/* 文本區域樣式 */
textarea.form-control {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

/* 提現表單 */
.withdrawal-form .form-group {
    margin-bottom: 20px;
}

.withdrawal-form label {
    display: block;
    margin-bottom: 8px;
    color: #00ffff;
    font-weight: 600;
}

/* 設置頁面樣式 */
.settings-form {
    max-width: 800px;
}

.settings-section {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #00ffff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
}

.settings-section h3 {
    color: #00ffff;
    margin-bottom: 20px;
    font-size: 1.3em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 255, 255, 0.3);
}

.form-actions .btn {
    min-width: 120px;
}

/* 小標籤樣式 */
small {
    font-size: 0.85em;
    color: #888;
    margin-top: 5px;
    display: block;
}

/* =========================
   主題：默認白色（無 data-theme 或 light）
   ========================= */
html:not([data-theme]),
html[data-theme="light"] {
    color-scheme: light;
}

html[data-theme="dark"] {
    color-scheme: dark;
}

html:not([data-theme]) body,
html[data-theme="light"] body {
    background: #f5f7fb;
    color: #0f172a;
}

html:not([data-theme]) .sidebar,
html[data-theme="light"] .sidebar {
    background: rgba(255, 255, 255, 0.92);
    border-right: 1px solid rgba(15, 23, 42, 0.12);
}

html:not([data-theme]) .sidebar-header,
html[data-theme="light"] .sidebar-header {
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

html:not([data-theme]) .sidebar-header h2,
html[data-theme="light"] .sidebar-header h2 {
    color: #0f172a;
    text-shadow: none;
}

html:not([data-theme]) .sidebar-header p,
html[data-theme="light"] .sidebar-header p,
html:not([data-theme]) .sidebar-footer p,
html[data-theme="light"] .sidebar-footer p,
html:not([data-theme]) .content-header p,
html[data-theme="light"] .content-header p,
html:not([data-theme]) .stat-label,
html[data-theme="light"] .stat-label,
html:not([data-theme]) small,
html[data-theme="light"] small {
    color: #475569;
}

html:not([data-theme]) .nav-item,
html[data-theme="light"] .nav-item {
    color: #0f172a;
}

html:not([data-theme]) .nav-item:hover,
html[data-theme="light"] .nav-item:hover {
    background: rgba(15, 23, 42, 0.06);
    border-left-color: rgba(15, 23, 42, 0.18);
    color: #0f172a;
}

html:not([data-theme]) .nav-item.active,
html[data-theme="light"] .nav-item.active {
    background: rgba(15, 23, 42, 0.08);
    border-left-color: rgba(15, 23, 42, 0.22);
    color: #0f172a;
}

html:not([data-theme]) .main-content,
html[data-theme="light"] .main-content {
    background: #f5f7fb;
}

html:not([data-theme]) .content-header h1,
html[data-theme="light"] .content-header h1 {
    color: #0f172a;
    text-shadow: none;
}

html:not([data-theme]) .stat-card,
html[data-theme="light"] .stat-card,
html:not([data-theme]) .quick-actions,
html[data-theme="light"] .quick-actions,
html:not([data-theme]) .search-section,
html[data-theme="light"] .search-section,
html:not([data-theme]) .stat-item,
html[data-theme="light"] .stat-item,
html:not([data-theme]) .table-container,
html[data-theme="light"] .table-container,
html:not([data-theme]) .card-form-section,
html[data-theme="light"] .card-form-section,
html:not([data-theme]) .settings-section,
html[data-theme="light"] .settings-section,
html:not([data-theme]) .card,
html[data-theme="light"] .card {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(15, 23, 42, 0.12);
}

html:not([data-theme]) .stat-card:hover,
html[data-theme="light"] .stat-card:hover {
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

html:not([data-theme]) .quick-actions h2,
html[data-theme="light"] .quick-actions h2,
html:not([data-theme]) .stat-content h3,
html[data-theme="light"] .stat-content h3,
html:not([data-theme]) .stat-value,
html[data-theme="light"] .stat-value,
html:not([data-theme]) .card-form-section h3,
html[data-theme="light"] .card-form-section h3,
html:not([data-theme]) .settings-section h3,
html[data-theme="light"] .settings-section h3 {
    color: #0f172a;
    text-shadow: none;
}

html:not([data-theme]) .action-card,
html[data-theme="light"] .action-card {
    background: rgba(255, 255, 255, 0.86);
    border-color: rgba(15, 23, 42, 0.12);
    color: #0f172a;
}

html:not([data-theme]) .action-card:hover,
html[data-theme="light"] .action-card:hover {
    background: rgba(15, 23, 42, 0.04);
    border-color: rgba(15, 23, 42, 0.16);
    box-shadow: 0 5px 15px rgba(15, 23, 42, 0.08);
    color: #0f172a;
}

html:not([data-theme]) .data-table,
html[data-theme="light"] .data-table {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(15, 23, 42, 0.12);
}

html:not([data-theme]) .data-table th,
html[data-theme="light"] .data-table th {
    background: rgba(15, 23, 42, 0.04);
    color: #0f172a;
    border-bottom-color: rgba(15, 23, 42, 0.10);
}

html:not([data-theme]) .data-table td,
html[data-theme="light"] .data-table td {
    color: #0f172a;
    border-bottom-color: rgba(15, 23, 42, 0.08);
}

html:not([data-theme]) .data-table tr:hover,
html[data-theme="light"] .data-table tr:hover {
    background: rgba(15, 23, 42, 0.03);
}

html:not([data-theme]) .form-group label,
html[data-theme="light"] .form-group label,
html:not([data-theme]) .withdrawal-form label,
html[data-theme="light"] .withdrawal-form label {
    color: #0f172a;
}

html:not([data-theme]) .form-control,
html[data-theme="light"] .form-control {
    background: rgba(255, 255, 255, 0.96);
    color: #0f172a;
    border-color: rgba(15, 23, 42, 0.16);
}

html:not([data-theme]) .form-control:focus,
html[data-theme="light"] .form-control:focus {
    border-color: rgba(79, 172, 254, 0.8);
    box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.18);
}

html:not([data-theme]) .admin-modal__mask,
html[data-theme="light"] .admin-modal__mask {
    background: rgba(15, 23, 42, 0.40);
}

html:not([data-theme]) .theme-toggle-btn,
html[data-theme="light"] .theme-toggle-btn {
    background: rgba(15, 23, 42, 0.04);
    border-color: rgba(15, 23, 42, 0.14);
    color: #0f172a;
}

html:not([data-theme]) .admin-switch,
html[data-theme="light"] .admin-switch {
    border-color: rgba(15, 23, 42, 0.18);
    background: rgba(15, 23, 42, 0.06);
}

html:not([data-theme]) .admin-switch::after,
html[data-theme="light"] .admin-switch::after {
    background: rgba(15, 23, 42, 0.70);
}

html:not([data-theme]) .admin-switch.is-on,
html[data-theme="light"] .admin-switch.is-on {
    background: rgba(15, 23, 42, 0.10);
    border-color: rgba(15, 23, 42, 0.24);
}

html:not([data-theme]) .admin-switch.is-on::after,
html[data-theme="light"] .admin-switch.is-on::after {
    background: rgba(15, 23, 42, 0.90);
}

html:not([data-theme]) .lang-toggle-btn,
html[data-theme="light"] .lang-toggle-btn {
    background: rgba(15, 23, 42, 0.04);
    border-color: rgba(15, 23, 42, 0.14);
    color: #0f172a;
}

html:not([data-theme]) .lang-toggle-btn:hover,
html[data-theme="light"] .lang-toggle-btn:hover {
    background: rgba(15, 23, 42, 0.07);
}

html:not([data-theme]) .theme-toggle-btn:hover,
html[data-theme="light"] .theme-toggle-btn:hover {
    background: rgba(15, 23, 42, 0.07);
}