:root {
    --bg: #eef1f9;
    --sidebar-bg: #151f32;
    --sidebar-text: #e8ecf8;
    --sidebar-hover: rgba(74, 144, 255, 0.24);
    --card-bg: #ffffff;
    --card-radius: 18px;
    --card-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
    --primary: #2d5bff;
    --primary-hover: #1f47db;
    --danger: #ef4444;
    --danger-hover: #dc2626;
    --warning: #f59e0b;
    --warning-hover: #d97706;
    --success: #16a34a;
    --muted: #9aa5c1;
    --body-text: #102040;
    --border: #e2e8f6;
    --input-bg: #f7f9ff;
    --input-border: #cbd5f5;
}

body {
    margin: 0;
    font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--body-text);
}

.hidden {
    display: none !important;
}

.layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 240px;
    flex: 0 0 240px;
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    padding: 32px 22px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.brand {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.user-panel {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
}

.user-name {
    font-weight: 600;
    font-size: 18px;
}

.user-role {
    font-size: 13px;
    opacity: 0.75;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    background: rgba(23, 31, 53, 0.92);
    border-radius: 0 0 12px 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    padding: 10px 0;
    z-index: 2200;
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    color: #f8fbff;
    text-decoration: none;
    font-size: 14px;
}

.user-dropdown a:hover {
    background: rgba(74, 144, 255, 0.24);
}

.sidebar-search {
	width: calc(100% - 10px);
	padding: 8px 16px;
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	background: rgba(255, 255, 255, 0.08);
	color: #f8fbff;
	margin: 4px 0 10px;
	outline: none;
	font-size: 13px;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
	transition: border 0.2s ease, background 0.2s ease;
	align-self: stretch;
}

.sidebar-search::placeholder {
	color: rgba(255, 255, 255, 0.55);
}

.sidebar-search:focus {
	background: rgba(255, 255, 255, 0.16);
	border-color: rgba(255, 255, 255, 0.5);
}

.menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.site-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 6px;
}

.site-toggle {
    width: 100%;
    margin: 6px 0 2px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--sidebar-text);
    text-align: left;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.site-toggle:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.3);
}

.menu.withdraw-collapsed #withdrawList .sidebar-menu-entry[data-country] {
    display: none;
}

.menu.login-collapsed #loginList .sidebar-menu-entry[data-country] {
    display: none;
}

.sidebar-menu-entry {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
}

.sidebar-menu-entry .menu-item {
    flex: 1;
}

.sidebar-menu-entry.fixed-entry {
    padding: 0;
    margin-bottom: 8px;
}

.drag-handle {
    width: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.35);
    cursor: grab;
    user-select: none;
    font-size: 12px;
}

.sidebar-menu-entry:hover .drag-handle {
    color: rgba(255, 255, 255, 0.7);
}

.star-btn {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    font-size: 16px;
    transition: color 0.2s ease, background 0.2s ease;
}

.star-btn:hover {
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.08);
}

.star-btn.starred {
    color: #facc15;
}

.sidebar-menu-entry.starred-site .menu-item {
    padding-left: 14px;
}

.sidebar-menu-entry[data-section="withdraw"][data-country] {
    cursor: grab;
}

.sidebar-menu-entry.dragging {
    opacity: 0.6;
}

#loginList .drag-handle {
    cursor: default;
    color: rgba(255, 255, 255, 0.25);
}

.account-dropdown {
    position: relative;
    width: 260px;
}

.account-dropdown-trigger {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #d7def1;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    cursor: pointer;
}

.account-dropdown-arrow {
    font-size: 12px;
    color: #6b7280;
}

.account-dropdown-panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.18);
    padding: 10px;
    display: none;
    z-index: 1200;
}

.account-dropdown.open .account-dropdown-panel {
    display: block;
}

.account-dropdown-search {
    width: calc(100% - 12px);
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid #d7def1;
    margin-bottom: 8px;
    font-size: 13px;
}

.account-dropdown-options {
    max-height: 220px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.account-option {
    border: none;
    background: #f7f9ff;
    border-radius: 8px;
    padding: 8px 10px;
    text-align: left;
    cursor: pointer;
    font-size: 13px;
}

.account-option:hover {
    background: #e6ecff;
}

.account-dropdown.inline {
    width: 220px;
}
.account-dropdown.inline .account-dropdown-trigger {
    width: 100%;
}

.menu-item {
    color: var(--sidebar-text);
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 10px;
    transition: background 0.2s ease, transform 0.2s ease;
    font-size: 15px;
}

.menu-item:hover,
.menu-item.active {
    background: var(--sidebar-hover);
    transform: translateX(4px);
}

.content {
    flex: 1;
    min-width: 0;
    padding: 42px 48px;
    box-sizing: border-box;
}

.page-title {
    margin: 0 0 18px;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.card {
    background: var(--card-bg);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    padding: 32px;
    margin-bottom: 28px;
    position: relative;
}

.card h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 22px;
    font-weight: 600;
}

.card-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.card-heading h2 {
    margin-bottom: 8px;
}

.card-subtitle {
    margin-top: -10px;
    margin-bottom: 12px;
    color: #6d7a99;
    font-size: 14px;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

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

.form.grid .full-width {
    grid-column: 1 / -1;
}

.create-user-form {
    gap: 20px;
}

.form-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.form-row-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.password-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 20px;
    align-items: flex-end;
}

.password-row label {
    margin: 0;
}

.btn-generate-pwd {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    min-height: 47px;
    align-self: flex-end;
}

.btn-generate-pwd:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.admin-checkbox {
    background: linear-gradient(90deg, rgba(253, 224, 71, 0.28), rgba(254, 240, 138, 0.45));
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    gap: 12px;
    align-items: center;
    color: #8a6d1a;
    border: 1px solid rgba(251, 191, 36, 0.35);
}

.admin-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0;
}

.admin-checkbox label {
    cursor: pointer;
    user-select: none;
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.admin-checkbox .desc {
    opacity: 0.75;
    font-size: 13px;
    font-weight: normal;
}

.form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    color: #42516d;
}

.form input,
.form select {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--input-border);
    background: var(--input-bg);
    font-size: 15px;
    transition: border 0.15s ease, box-shadow 0.15s ease;
}

.form input:focus,
.form select:focus {
    outline: none;
    border-color: #4c79ff;
    box-shadow: 0 0 0 4px rgba(76, 121, 255, 0.18);
    background: #fff;
}

.input-inline-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

.input-inline .grow {
    flex: 1;
}

.input-inline input {
    margin: 0;
}

.toggle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid var(--input-border);
    background: var(--input-bg);
    transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.toggle:hover {
    border-color: #9aaef5;
}

.toggle:focus-within {
    border-color: #4c79ff;
    box-shadow: 0 0 0 4px rgba(76, 121, 255, 0.18);
    background: #fff;
}

.toggle-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.toggle-title {
    font-size: 15px;
    font-weight: 600;
    color: #304060;
}

.toggle-desc {
    font-size: 12px;
    color: var(--muted);
}

.toggle input[type="checkbox"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

.toggle-indicator {
    flex-shrink: 0;
    width: 48px;
    height: 26px;
    border-radius: 999px;
    background: #cad4f6;
    position: relative;
    transition: background 0.2s ease;
}

.toggle-indicator::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 3px 8px rgba(13, 22, 45, 0.12);
    transition: transform 0.2s ease;
}

.toggle input[type="checkbox"]:checked + .toggle-indicator {
    background: var(--primary);
}

.toggle input[type="checkbox"]:checked + .toggle-indicator::after {
    transform: translateX(22px);
}

.admin-tip {
    grid-column: 1 / -1;
    background: linear-gradient(90deg, rgba(253, 224, 71, 0.28), rgba(254, 240, 138, 0.45));
    border-radius: 12px;
    padding: 12px 18px;
    display: flex;
    gap: 12px;
    align-items: center;
    color: #8a6d1a;
    border: 1px solid rgba(251, 191, 36, 0.35);
    font-size: 14px;
}

.admin-tip strong {
    font-weight: 600;
}

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

.btn {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px 22px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 12px 20px rgba(45, 91, 255, 0.18);
}

.btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(45, 91, 255, 0.24);
}

.btn-danger {
    background: var(--danger);
    box-shadow: 0 12px 18px rgba(239, 68, 68, 0.18);
}

.btn-danger:hover {
    background: var(--danger-hover);
}

.btn-warning {
    background: var(--warning);
    color: #fff;
    box-shadow: 0 12px 18px rgba(245, 158, 11, 0.22);
}

.btn-warning:hover {
    background: var(--warning-hover);
}

.btn-secondary {
    background: #edf1ff;
    color: #42516d;
    box-shadow: none;
}

.btn-secondary:hover {
    background: #e2e8ff;
}

.btn-ghost {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 14px;
    cursor: pointer;
    padding: 0;
}

.btn-ghost:hover {
    text-decoration: underline;
}

.input-note {
    font-size: 12px;
    color: var(--muted);
}

.btn-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-warning,
.btn-sm.btn-warning {
    background: var(--warning) !important;
    color: #fff !important;
    border-color: var(--warning) !important;
}

.btn-warning:hover,
.btn-sm.btn-warning:hover {
    background: var(--warning-hover) !important;
}

.btn-success,
.btn-sm.btn-success {
    background: var(--success) !important;
    color: #fff !important;
    border-color: var(--success) !important;
}

.btn-success:hover,
.btn-sm.btn-success:hover {
    background: #15803d !important;
}

.table-scroll-container {
    width: 100%;
    margin-bottom: 16px;
}

.table-scroll {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 10px;
    position: relative;
    --scroll-x: 0px;
    --scroll-max: 0px;
}

.table-scrollbar {
    width: 100%;
    padding-bottom: 2px;
    margin-bottom: 8px;
}

.table-scrollbar input[type="range"] {
    width: 100%;
    cursor: pointer;
    accent-color: var(--primary);
}

.table-scrollbar input[type="range"]:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

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

.table th {
    text-align: left;
    padding: 14px 18px;
    font-weight: 600;
    font-size: 14px;
    color: #5b6a8d;
    background: #f7f9ff;
}

.table td {
    padding: 16px 18px;
    border-bottom: 1px solid #f0f3ff;
    font-size: 14px;
}

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

.table tbody tr:nth-child(even) {
    background: rgba(247, 249, 255, 0.6);
}

.table th:last-child,
.table td:last-child {
    position: sticky;
    right: 0;
    background: #fff;
    box-shadow: -4px 0 12px rgba(15, 23, 42, 0.06);
    z-index: 10;
    transform: translateX(calc(var(--scroll-x) - var(--scroll-max)));
}

.table th:last-child {
    background: #f7f9ff;
    z-index: 11;
}

.table-select {
    width: 100%;
    min-width: 90px;
    max-width: 140px;
    padding: 6px 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    font-size: 13px;
    color: var(--body-text);
    box-sizing: border-box;
}


.select-compact {
    width: 100%;
    min-width: 110px;
    max-width: 160px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #fff;
}

.compact-field {
    max-width: 200px;
}


.inline-hint {
    font-size: 12px;
    color: #6b7280;
    font-weight: 400;
}

.confirm-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    padding: 20px;
}

.confirm-dialog {
    background: #fff;
    border-radius: 18px;
    padding: 26px 28px;
    width: min(360px, 100%);
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.15);
}

.confirm-message {
    font-size: 16px;
    color: #111827;
    line-height: 1.5;
    margin-bottom: 20px;
}

.confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.table-select.updating {
    opacity: 0.6;
    pointer-events: none;
}

.withdraw-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: #f3f4f6;
    color: #4b5563;
}

.withdraw-tag[data-status="1"] {
    background: rgba(16, 185, 129, 0.18);
    color: #047857;
}

.withdraw-tag[data-status="2"] {
    background: rgba(248, 113, 113, 0.18);
    color: #b91c1c;
}

.table-select.withdraw-select {
    transition: border-color 0.2s ease, color 0.2s ease;
}

.table-select.withdraw-select[data-status="1"] {
    border-color: rgba(16, 185, 129, 0.8);
    color: #047857;
    font-weight: 600;
}

.table-select.withdraw-select[data-status="2"] {
    border-color: rgba(248, 113, 113, 0.8);
    color: #b91c1c;
    font-weight: 600;
}

.feedback-preview {
    display: inline-block;
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 13px;
    color: #1f2937;
}

.feedback-cell {
    position: relative;
    cursor: help;
}

.feedback-cell[data-feedback]:hover::after {
    display: none;
}

.feedback-cell[data-feedback]:hover::before {
    display: none;
}

.feedback-tooltip {
    position: absolute;
    background: #111827;
    color: #f9fafb;
    padding: 12px 16px;
    border-radius: 12px;
    max-width: 320px;
    font-size: 13px;
    line-height: 1.6;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.3);
    z-index: 4000;
    white-space: pre-wrap;
}

.status-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}
.status-done {
    background: rgba(16, 185, 129, 0.18);
    color: #047857;
}
.status-failed {
    background: rgba(248, 113, 113, 0.18);
    color: #b91c1c;
}
.status-running {
    background: rgba(59, 130, 246, 0.18);
    color: #1d4ed8;
}

.list-summary {
    margin: 15px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    align-items: center;
    font-size: 14px;
    color: #374151;
    font-weight: 500;
}

.stat-item {
    background: #f3f4f6;
    color: #1f2937;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}
.tag-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
}

.tag-status.admin {
    background: rgba(45, 91, 255, 0.14);
    color: #1d4ed8;
}

.tag-status.active {
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
}

.tag-status.inactive {
    background: rgba(245, 158, 11, 0.15);
    color: #b45309;
}

.pagination {
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
}

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

.page-link.disabled {
    color: #c0c6dd;
    pointer-events: none;
}

.page-info {
    color: #6b7596;
}

.alert {
    padding: 12px 18px;
    border-radius: 12px;
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
    margin-bottom: 18px;
}

.alert-error {
    background: rgba(239, 68, 68, 0.12);
    color: var(--danger);
}

.muted {
    color: var(--muted);
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 24, 39, 0.35);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(2px);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.6);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.85s linear infinite;
    margin-bottom: 14px;
}

.loading-text {
    color: white;
    font-size: 16px;
    letter-spacing: 0.06em;
}

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

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2100;
    padding: 24px;
    box-sizing: border-box;
}

.modal.hidden {
    display: none !important;
}

.modal-content {
    background: #fff;
    padding: 28px;
    border-radius: 16px;
    width: min(440px, 100%);
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.25);
}

.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(140deg, #1e3a8a, #4338ca 45%, #7c3aed);
    color: white;
}

.login-card {
    background: white;
    color: var(--body-text);
    padding: 42px 40px;
    border-radius: 18px;
    box-shadow: 0 30px 60px rgba(17, 24, 39, 0.28);
    width: 340px;
}

.login-card h1 {
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
    font-size: 26px;
}

.login-card .form label span {
    font-weight: 600;
    color: #364565;
}

/* 表单操作按钮组 */
.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

/* 小按钮 */
.btn-sm {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.15s ease;
}

.btn-sm:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-sm.btn-danger {
    background: var(--danger);
}

.btn-sm.btn-danger:hover {
    background: var(--danger-hover);
}

/* 空数据提示 */
.empty {
    text-align: center;
    color: var(--muted);
    padding: 24px !important;
    font-size: 14px;
}

/* 筛选表单 */
.filter-form {
    background: var(--card-bg);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    padding: 24px;
    margin-bottom: 24px;
}

.filter-form .form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
}

.filter-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    color: #42516d;
    min-width: 180px;
}

.filter-form input,
.filter-form select {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--input-border);
    background: var(--input-bg);
    font-size: 14px;
}

.filter-form .btn {
    margin-bottom: 0;
}

/* 状态相关样式 - 整行背景色 */
.status-running {
    background: rgba(251, 146, 60, 0.08);
}

.status-done {
    background: rgba(34, 197, 94, 0.08);
}

.status-failed {
    background: rgba(239, 68, 68, 0.08);
}

/* 状态文本样式 */
.status-text-running {
    color: #ea580c;
    font-weight: 500;
}

.status-text-done {
    color: #16a34a;
    font-weight: 500;
}

.status-text-failed {
    color: #dc2626;
    font-weight: 500;
}

/* Badge样式 */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
}

.badge-success {
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
}

.badge-secondary {
    background: rgba(156, 163, 175, 0.12);
    color: #4b5563;
}

.badge-warning {
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
}

@media (max-width: 1100px) {
    .layout {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 22px 24px;
    }
    .menu {
        flex-direction: row;
        gap: 18px;
    }
    .content {
        padding: 28px 20px 36px;
    }
    .form.grid {
        grid-template-columns: 1fr;
    }
    .form-row-3,
    .form-row-2,
    .password-row {
        grid-template-columns: 1fr;
    }

    .btn-generate-pwd {
        width: 100%;
    }
    .filter-form .form-row {
        flex-direction: column;
    }
    .filter-form label {
        width: 100%;
    }
}
@media (max-width: 768px) {
    .layout {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        flex: none;
        position: sticky;
        top: 0;
        z-index: 200;
    }
    .menu {
        flex-direction: row;
        overflow-x: auto;
        gap: 12px;
        scrollbar-width: none;
    }
    .menu::-webkit-scrollbar {
        display: none;
    }
    .content {
        padding: 24px 20px;
    }
}
