:root {
    /* 核心色板 - Cyberpunk/Deep Blue Theme */
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --bg-panel: rgba(30, 41, 59, 0.7);
    --bg-panel-hover: rgba(51, 65, 85, 0.8);

    --primary: #3b82f6;
    /* Blue */
    --primary-hover: #2563eb;
    --secondary: #ec4899;
    /* Pink */
    --accent: #8b5cf6;
    /* Purple */

    --text-main: #f8fafc;
    --text-muted: #94a3b8;

    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;

    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.36);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 20%);
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.2);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.4);
}

/* 通用组件类 */
.glass-panel {
    background: var(--bg-panel);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--radius-md);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 0.5rem;
    font-size: 0.95rem;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #059669);
    color: white;
}

.btn-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

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

.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
}

.btn-outline:hover {
    border-color: var(--text-main);
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.btn-text {
    background: transparent;
    color: var(--text-muted);
}

.btn-text:hover {
    color: var(--text-main);
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

.btn-block {
    width: 100%;
}

.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

/* 输入框 */
input[type="text"],
input[type="password"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-size: 0.95rem;
    transition: var(--transition);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* ========== 认证页面 ========== */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 1rem;
}

.auth-box {
    width: 100%;
    max-width: 420px;
    padding: 2.5rem;
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.auth-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-circle {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 32px;
    color: white;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.auth-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-muted);
}

.form-group {
    margin-bottom: 1.25rem;
    position: relative;
}

.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
}

.input-icon input {
    padding-left: 3rem;
}

.captcha-group {
    display: flex;
    gap: 1rem;
}

.captcha-box {
    flex-shrink: 0;
    width: 100px;
    height: 46px;
    background: white;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
}

.captcha-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

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

.auth-footer a:hover {
    text-decoration: underline;
}

.bg-shape {
    position: absolute;
    filter: blur(80px);
    z-index: 1;
    opacity: 0.4;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--primary);
    top: 10%;
    left: 20%;
    border-radius: 50%;
    animation: float 10s infinite alternate;
}

.shape-2 {
    width: 250px;
    height: 250px;
    background: var(--secondary);
    bottom: 15%;
    right: 20%;
    border-radius: 50%;
    animation: float 8s infinite alternate-reverse;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(30px, 50px);
    }
}

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

/* 侧边栏 */
.sidebar {
    width: 260px;
    background: var(--bg-darker);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: 50;
    border-radius: 0;
}

.sidebar-header {
    padding: 2rem 1.5rem;
    display: flex;
    align-items: center;
}

.sidebar-header .logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.sidebar-header .logo i {
    color: var(--primary);
}

.sidebar-nav {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-item i {
    font-size: 1.2rem;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.1), transparent);
    color: var(--primary);
    border-left: 3px solid var(--primary);
}

.nav-divider {
    height: 1px;
    background: var(--glass-border);
    margin: 1rem 0;
}

.nav-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 0 1rem;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--glass-border);
}

.user-mini-profile {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
}

.user-mini-profile .avatar {
    width: 36px;
    height: 36px;
    background: var(--bg-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.user-mini-profile .info {
    flex: 1;
    min-width: 0;
}

.user-mini-profile .username {
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-mini-profile .status {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.logout-btn {
    display: none;
    /* 结合在 mini-profile 里了 */
}

/* 主内容区 */
.content-area {
    flex: 1;
    margin-left: 260px;
    padding: 2rem;
    max-width: 1400px;
    margin-right: auto;
}

.mobile-header {
    display: none;
    padding: 1rem;
    background: var(--bg-darker);
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    border-radius: var(--radius-md);
}

/* 页面通用布局 */
.page-header {
    margin-bottom: 2rem;
}

.page-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
}

.page-header .subtitle {
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-icon-text {
    padding-right: 1.2rem;
}

.page-centered {
    display: flex;
    justify-content: center;
    padding-top: 4rem;
}

.max-w-500 {
    width: 100%;
    max-width: 500px;
}

/* Dashboard Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.stats-grid.mini {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.stat-card {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

.stat-card .icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
}

.stat-card .info .label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.stat-card .info .value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
}

.gradient-blue {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.05));
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.gradient-purple {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(139, 92, 246, 0.05));
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.gradient-orange {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.05));
    border: 1px solid rgba(245, 158, 11, 0.2);
}

/* 机器人卡片 */
.bots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

.bot-card {
    background: var(--bg-panel);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: var(--transition);
}

.bot-card:hover {
    transform: translateY(-4px);
    background: var(--bg-panel-hover);
    border-color: rgba(59, 130, 246, 0.3);
}

.bot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.bot-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary);
}

.bot-status {
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
}

.bot-status.active {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.bot-status.inactive {
    background: rgba(148, 163, 184, 0.2);
    color: var(--text-muted);
}

.bot-info {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.bot-info p {
    margin-bottom: 0.3rem;
}

.bot-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* 规则卡片 */
.rules-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.rule-card {
    background: var(--bg-panel);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1.2rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: start;
}

.rule-main {
    flex: 1;
}

.rule-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.rule-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.keyword-tag {
    background: rgba(59, 130, 246, 0.15);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-right: 0.5rem;
    display: inline-block;
    margin-bottom: 0.3rem;
}

.rule-reply {
    color: var(--text-muted);
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.8rem;
    border-radius: var(--radius-sm);
    margin-top: 0.8rem;
}

/* 表格样式 */
.table-container {
    overflow-x: auto;
    border-radius: var(--radius-md);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
}

.data-table th,
.data-table td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

.data-table th {
    background: rgba(0, 0, 0, 0.2);
    font-weight: 600;
    color: var(--text-muted);
}

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

.status-badge {
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

.status-badge.used {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

.status-badge.unused {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

/* Switch Toggle */
.toggle-switch {
    display: inline-block;
    position: relative;
    width: 48px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    transition: .4s;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: .4s;
}

input:checked+.toggle-slider {
    background-color: var(--success);
}

input:checked+.toggle-slider:before {
    transform: translateX(24px);
}

/* 模态框 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #1e293b;
    width: 90%;
    max-width: 500px;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
    transform: translateY(20px);
    transition: transform 0.3s;
    max-height: 90vh;
    overflow-y: auto;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.modal-lg {
    max-width: 700px;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.1);
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
}

.close-btn:hover {
    color: white;
}

/* 规则输入组件 */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.tag {
    background: rgba(59, 130, 246, 0.2);
    color: var(--primary);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tag-remove {
    cursor: pointer;
    opacity: 0.7;
}

.tag-remove:hover {
    opacity: 1;
}

.button-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.button-remove {
    cursor: pointer;
    color: var(--danger);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
}

/* 响应式 */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }

    .content-area {
        margin-left: 0;
        padding: 1rem;
    }

    .auth-box {
        padding: 1.5rem;
    }

    .mobile-header {
        display: flex;
    }

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

/* Toast */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    background: #1e293b;
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-sm);
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 2000;
    transform: translateY(100px);
    transition: transform 0.3s;
}

.toast.show {
    transform: translateY(0);
}

.toast.success {
    border-color: var(--success);
}

.toast.error {
    border-color: var(--danger);
}

/* ========== 规则编辑器布局 ========== */
.rule-editor-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    align-items: start;
}

.editor-panel {
    padding: 1.5rem;
}

.preview-panel {
    position: sticky;
    top: 2rem;
    padding: 0;
    overflow: hidden;
}

.preview-header {
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--glass-border);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.telegram-preview {
    padding: 1.5rem;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 300px;
}

.tg-message {
    background: #1e3a5f;
    border-radius: 12px 12px 12px 4px;
    overflow: hidden;
    max-width: 320px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.tg-image {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    background-color: rgba(255, 255, 255, 0.1);
}

.tg-text {
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #e8e8e8;
    word-wrap: break-word;
}

.tg-buttons {
    padding: 0 0.5rem 0.5rem;
}

.tg-button-row {
    display: flex;
    gap: 4px;
    margin-top: 4px;
}

.tg-button {
    flex: 1;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    text-align: center;
    font-size: 0.85rem;
    color: #7dd3fc;
    border: 1px solid rgba(125, 211, 252, 0.3);
}

/* 图片上传区 */
.image-upload-area {
    position: relative;
}

.image-preview-box {
    width: 100%;
    height: 150px;
    border: 2px dashed var(--glass-border);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
    background-size: cover;
    background-position: center;
    position: relative;
}

.image-preview-box:hover {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.05);
}

.image-preview-box i {
    font-size: 2rem;
    color: var(--text-muted);
}

.image-preview-box span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.image-preview-box.has-image i,
.image-preview-box.has-image span {
    display: none;
}

.image-preview-box .remove-image {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: rgba(239, 68, 68, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    display: none;
}

.image-preview-box.has-image .remove-image {
    display: flex;
}

/* 按钮行编辑 */
.button-row-group {
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.button-row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.buttons-in-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.single-button-input {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.single-button-input input {
    flex: 1;
}

.add-btn-to-row {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

/* 表单提示 */
.hint {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 0.85rem;
}

.form-section-title {
    font-weight: 600;
    font-size: 1rem;
    margin: 1.5rem 0 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
}

/* 响应式 - 规则编辑器 */
@media (max-width: 1024px) {
    .rule-editor-layout {
        grid-template-columns: 1fr;
    }

    .preview-panel {
        position: static;
        order: -1;
    }
}

/* ========== 定时任务样式 ========== */
.scheduled-info {
    margin: 0.8rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.scheduled-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
}

.scheduled-info i {
    color: var(--primary);
    width: 1.2rem;
}

.scheduled-preview {
    padding: 1rem;
}

.preview-info {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}

.preview-info .info-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.preview-info .label {
    color: var(--text-muted);
}

/* 星期选择器 */
.weekday-selector {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.weekday-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.weekday-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.weekday-item input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.weekday-item input[type="checkbox"]:checked+span {
    color: var(--primary);
}

/* btn-secondary 样式 */
.btn-secondary {
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.btn-secondary:hover {
    background: var(--accent);
    color: white;
}

/* 调度字段 */
.schedule-fields {
    margin-top: 1rem;
}

/* 时间输入框样式 */
input[type="datetime-local"],
input[type="time"] {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-size: 0.95rem;
    transition: var(--transition);
}

input[type="datetime-local"]:focus,
input[type="time"]:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* Fix select styling */
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}