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

:root {
    --primary-color: #0078d4;
    --primary-hover: #106ebe;
    --primary-light: #e5f1fb;
    --danger-color: #d13438;
    --success-color: #107c10;
    --warning-color: #ffb900;
    --bg-color: #f5f5f5;
    --card-bg: #ffffff;
    --text-color: #323130;
    --text-secondary: #605e5c;
    --border-color: #e1e1e1;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.12);
    --radius: 12px;
    --radius-sm: 8px;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: var(--text-color);
    line-height: 1.6;
}

.hidden {
    display: none !important;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #106ebe 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 120, 212, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 120, 212, 0.4);
}

.btn-secondary {
    background: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-color);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color) 0%, #a4262c 100%);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(209, 52, 56, 0.4);
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

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

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

input[type="text"],
input[type="email"],
input[type="password"],
textarea,
.select-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: all 0.2s ease;
    background: var(--card-bg);
}

input:focus,
textarea:focus,
.select-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.1);
}

.search-input {
    width: 220px;
    padding-left: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23605e5c' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 12px center;
}

.input-group {
    display: flex;
    gap: 8px;
}

.input-group input {
    flex: 1;
}

/* Login Page */
.login-container {
    max-width: 420px;
    margin: 80px auto;
    padding: 40px;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
}

.login-container h1 {
    text-align: center;
    margin-bottom: 8px;
    font-size: 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-container .subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 14px;
}

.error-message {
    color: var(--danger-color);
    margin-top: 12px;
    font-size: 14px;
    text-align: center;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
    background: var(--card-bg);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header h1 {
    font-size: 22px;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

#current-user {
    color: var(--text-secondary);
    font-weight: 500;
    padding: 8px 16px;
    background: var(--bg-color);
    border-radius: 20px;
}

/* Navigation */
.nav-tabs {
    display: flex;
    background: var(--card-bg);
    padding: 0 32px;
    gap: 8px;
    box-shadow: 0 1px 0 var(--border-color);
}

.tab-btn {
    padding: 16px 24px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    margin-bottom: -1px;
}

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

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Tab Content */
.tab-content {
    padding: 24px 32px;
    background: var(--bg-color);
    min-height: calc(100vh - 130px);
}

/* Toolbar */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 20px;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.toolbar-left,
.toolbar-right {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

/* Table */
.table-container {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f4 100%);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

tbody tr {
    transition: all 0.2s ease;
}

tbody tr:hover {
    background: var(--primary-light);
}

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

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    gap: 4px;
}

.status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status-active {
    background: #dff6dd;
    color: var(--success-color);
}

.status-active::before {
    background: var(--success-color);
}

.status-invalid {
    background: #fde7e9;
    color: var(--danger-color);
}

.status-invalid::before {
    background: var(--danger-color);
}

.status-unknown {
    background: #fff4ce;
    color: #8a6914;
}

.status-unknown::before {
    background: #8a6914;
}

/* Batch Actions */
.batch-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--radius);
    margin-top: 16px;
    color: white;
}

.batch-actions #selected-count {
    font-weight: 600;
}

.batch-actions .btn-danger {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.batch-actions .btn-danger:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Mail Layout */
.mail-layout {
    display: flex;
    gap: 24px;
    height: calc(100vh - 200px);
    min-height: 500px;
}

.mail-sidebar {
    width: 280px;
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.mail-sidebar h3 {
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    margin-top: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.mail-sidebar h3:first-child {
    margin-top: 0;
}

/* Account Selector - 可折叠邮箱选择器 */
.account-selector {
    position: relative;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.account-selector-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.account-selector-header:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.account-selector.expanded .account-selector-header {
    border-color: var(--primary-color);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.account-selector-current {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
    flex: 1;
}

.current-group {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.current-account {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.account-selector-arrow {
    font-size: 10px;
    color: var(--text-secondary);
    transition: transform 0.2s ease;
    flex-shrink: 0;
    margin-left: 8px;
}

.account-selector.expanded .account-selector-arrow {
    transform: rotate(180deg);
}

.account-selector-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border: 2px solid var(--primary-color);
    border-top: none;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    padding: 12px;
    z-index: 100;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    display: none;
    max-height: 300px;
    overflow-y: auto;
}

.account-selector.expanded .account-selector-dropdown {
    display: block;
}

/* Account List - 账号选择区域 */
.account-list-container {
    max-height: 200px;
    overflow-y: auto;
    margin: -4px;
    padding: 4px;
    flex-shrink: 0;
}

.mail-group-filter {
    margin-bottom: 8px;
    padding: 8px 12px;
    font-size: 13px;
}

.account-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.account-item {
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    background: var(--bg-color);
}

.account-item:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.account-item.active {
    border-color: var(--primary-color);
    background: var(--primary-light);
    box-shadow: 0 2px 8px rgba(0, 120, 212, 0.2);
}

.account-item-email {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.account-item-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.account-item-unread {
    background: var(--primary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.account-item-group {
    font-size: 10px;
    color: var(--text-secondary);
    background: var(--bg-color);
    padding: 1px 6px;
    border-radius: 4px;
}

/* Folder List - 紧凑的文件夹列表 */
.folder-list-container {
    flex: 1;
    overflow-y: auto;
    margin-top: 4px;
}

.folder-list {
    list-style: none;
}

.folder-list li {
    padding: 8px 12px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
    margin-bottom: 2px;
    font-size: 14px;
}

.folder-list li:hover {
    background: var(--bg-color);
}

.folder-list li.active {
    background: var(--primary-light);
    color: var(--primary-color);
    font-weight: 600;
}

.folder-count {
    font-size: 11px;
    background: var(--primary-color);
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
    min-width: 18px;
    text-align: center;
}

.folder-count.empty {
    background: transparent;
    color: var(--text-secondary);
}

.mail-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.mail-toolbar {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f4 100%);
}

.mail-list {
    flex: 1;
    overflow-y: auto;
}

.mail-item {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--card-bg);
}

.mail-item:hover {
    background: var(--primary-light);
}

/* 未读邮件 - 蓝色左边框 + 浅蓝背景 */
.mail-item.unread {
    background: linear-gradient(90deg, var(--primary-color) 3px, #f0f8ff 3px);
}

.mail-item.unread .mail-item-from,
.mail-item.unread .mail-item-subject {
    font-weight: 700;
    color: var(--text-color);
}

/* 已读邮件 - 白色背景 */
.mail-item.read {
    background: var(--card-bg);
}

.mail-item.read .mail-item-from {
    font-weight: 500;
    color: var(--text-secondary);
}

.mail-item.read .mail-item-subject {
    font-weight: 400;
    color: var(--text-secondary);
}

.mail-item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.mail-item-from {
    font-weight: 600;
    color: var(--text-color);
}

.mail-item-date {
    font-size: 12px;
    color: var(--text-secondary);
}

.mail-item-subject {
    margin-bottom: 6px;
    font-size: 15px;
}

.mail-item-preview {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-top: 1px solid var(--border-color);
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f4 100%);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

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

.modal-content {
    background: var(--card-bg);
    border-radius: var(--radius);
    width: 90%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

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

.modal-large {
    max-width: 800px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f4 100%);
}

.modal-header h2 {
    font-size: 18px;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: var(--border-color);
    color: var(--text-color);
}

.modal-content form,
.groups-content,
.verify-content {
    padding: 24px;
    padding-bottom: 0;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
    margin-top: 0;
    background: var(--bg-color);
    border-radius: 0 0 var(--radius) var(--radius);
}

.modal-footer .btn {
    min-width: 80px;
}

/* Confirm Dialog */
.modal-small {
    max-width: 400px;
}

.confirm-content {
    padding: 24px;
    text-align: center;
}

.confirm-content p {
    font-size: 16px;
    color: var(--text-color);
    margin: 0;
}

/* Groups List */
.groups-list {
    list-style: none;
    margin-top: 16px;
}

.groups-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background: var(--bg-color);
    margin-bottom: 8px;
}

/* Mail Detail */
.mail-detail-content {
    padding: 24px;
}

.mail-meta {
    margin-bottom: 20px;
    padding: 16px;
    background: var(--bg-color);
    border-radius: var(--radius-sm);
}

.mail-meta p {
    margin-bottom: 8px;
    font-size: 14px;
}

.mail-meta p:last-child {
    margin-bottom: 0;
}

.mail-body {
    min-height: 200px;
    max-height: 400px;
    overflow-y: auto;
    padding: 16px;
    background: var(--bg-color);
    border-radius: var(--radius-sm);
}

.mail-body iframe {
    width: 100%;
    min-height: 300px;
    border: none;
    background: white;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 10px;
    background: var(--border-color);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 16px;
}

.progress-inner {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 5px;
}

.verify-content {
    padding: 24px;
}

.verify-results {
    max-height: 300px;
    overflow-y: auto;
    margin-top: 16px;
}

.verify-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-color);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 16px 24px;
    background: #323130;
    color: white;
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    animation: slideIn 0.3s ease;
    font-weight: 500;
}

.toast.success {
    background: linear-gradient(135deg, var(--success-color) 0%, #0b5c0b 100%);
}

.toast.error {
    background: linear-gradient(135deg, var(--danger-color) 0%, #a4262c 100%);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        padding: 12px 16px;
    }

    .nav-tabs {
        padding: 0 16px;
    }

    .tab-content {
        padding: 16px;
    }

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

    .toolbar-left,
    .toolbar-right {
        justify-content: flex-start;
    }

    .mail-layout {
        flex-direction: column;
        height: auto;
    }

    .mail-sidebar {
        width: 100%;
        max-height: 300px;
    }

    .search-input {
        width: 100%;
    }
}

/* Loading Spinner */
.loading {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 24px;
    color: var(--text-secondary);
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state p {
    margin-top: 8px;
    font-size: 15px;
}

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

::-webkit-scrollbar-track {
    background: var(--bg-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Checkbox */
input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

/* Select dropdown */
.select-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23605e5c' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* Import Tabs */
.import-tabs {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.import-tab {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid var(--border-color);
    background: var(--card-bg);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.import-tab:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.import-tab.active {
    border-color: var(--primary-color);
    background: var(--primary-light);
    color: var(--primary-color);
}

/* File Upload */
.file-upload-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-sm);
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--bg-color);
}

.file-upload-area:hover,
.file-upload-area.dragover {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.file-upload-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.file-upload-hint {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 8px;
}

.file-selected {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    background: var(--card-bg);
    border-radius: var(--radius-sm);
    margin-top: 12px;
}

.file-selected span {
    font-weight: 500;
    color: var(--primary-color);
}

/* Register Link */
.register-link {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
}

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

.register-link a:hover {
    text-decoration: underline;
}

/* Admin Layout */
.admin-layout {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.admin-section {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.admin-section h3 {
    margin-bottom: 16px;
    font-size: 18px;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

/* Settings Form */
.settings-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.setting-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.setting-item label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    cursor: pointer;
}

.setting-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.setting-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin-left: 26px;
}

/* Role Badge */
.role-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.role-admin {
    background: #fff3cd;
    color: #856404;
}

.role-user {
    background: #d4edda;
    color: #155724;
}

