/* 深色模式样式 */
body.dark-mode {
    background: #1a1a2e;
    color: #e0e0e0;
}

body.dark-mode .header {
    background: linear-gradient(135deg, #16213e 0%, #0f3460 100%);
    color: #fff;
}

body.dark-mode .sidebar {
    background: #16213e;
    color: #e0e0e0;
}

body.dark-mode .sidebar a {
    color: #b0b0b0;
}

body.dark-mode .sidebar a:hover,
body.dark-mode .sidebar a.active {
    background: #0f3460;
    color: #fff;
}

body.dark-mode .card {
    background: #16213e;
    color: #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

body.dark-mode .stat-card {
    background: linear-gradient(135deg, #16213e 0%, #0f3460 100%);
    color: #fff;
}

body.dark-mode table {
    background: #16213e;
    color: #e0e0e0;
}

body.dark-mode th {
    background: #0f3460;
    color: #fff;
}

body.dark-mode tr:hover {
    background: #1a1a3e;
}

body.dark-mode tr:nth-child(even) {
    background: #1a1a3e;
}

body.dark-mode input[type="text"],
body.dark-mode input[type="password"],
body.dark-mode input[type="email"],
body.dark-mode input[type="number"],
body.dark-mode select,
body.dark-mode textarea {
    background: #0f3460;
    color: #e0e0e0;
    border: 1px solid #2a2a5e;
}

body.dark-mode input:focus,
body.dark-mode select:focus,
body.dark-mode textarea:focus {
    border-color: #4a9eff;
}

body.dark-mode .btn-primary {
    background: #4a9eff;
}

body.dark-mode .btn-success {
    background: #51cf66;
}

body.dark-mode .btn-warning {
    background: #ffd43b;
    color: #333;
}

body.dark-mode .btn-danger {
    background: #ff6b6b;
}

body.dark-mode .btn-sm {
    background: #0f3460;
    color: #e0e0e0;
}

body.dark-mode .btn-sm:hover {
    background: #1a1a5e;
}

body.dark-mode .pagination a {
    background: #16213e;
    color: #e0e0e0;
    border: 1px solid #2a2a5e;
}

body.dark-mode .pagination a.active {
    background: #4a9eff;
    color: #fff;
}

body.dark-mode .pagination a:hover:not(.active) {
    background: #1a1a5e;
}

body.dark-mode .modal-content {
    background: #16213e;
    color: #e0e0e0;
}

body.dark-mode .close {
    color: #e0e0e0;
}

body.dark-mode .alert-success {
    background: #1a3a2e;
    color: #51cf66;
    border-left: 4px solid #51cf66;
}

body.dark-mode .alert-error {
    background: #3a1a1a;
    color: #ff6b6b;
    border-left: 4px solid #ff6b6b;
}

body.dark-mode .alert-warning {
    background: #3a3a1a;
    color: #ffd43b;
    border-left: 4px solid #ffd43b;
}

body.dark-mode .alert-info {
    background: #1a2a3a;
    color: #4a9eff;
    border-left: 4px solid #4a9eff;
}

/* 主题切换按钮样式 */
.theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

body.dark-mode .theme-toggle {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}
