/* 自定义样式补充 - 黑白主题 */

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

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.4);
}

/* 加载动画 */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #000;
    animation: spin 1s ease-in-out infinite;
}

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

/* 工具提示样式 */
.tooltip-custom {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* 进度条样式 */
.progress-modern {
    height: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-modern .progress-bar {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* 开关按钮样式 */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

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

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

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

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

input:checked + .slider:before {
    transform: translateX(26px);
}

/* 代码块样式 */
.code-block {
    background: rgba(0, 0, 0, 0.8);
    color: #f8f8f2;
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
    overflow-x: auto;
}

/* 状态指示器 */
.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-indicator.online {
    background: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
}

.status-indicator.offline {
    background: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.3);
}

.status-indicator.warning {
    background: #f59e0b;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.3);
}

/* 文件上传区域 */
.upload-area {
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.upload-area:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

.upload-area.dragover {
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.1);
}

/* 时间轴样式 */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-gradient);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.75rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-gradient);
    border: 3px solid white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

/* 响应式网格 */
.grid-responsive {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

@media (max-width: 768px) {
    .grid-responsive {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* 浮动操作按钮 */
.fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-gradient);
    border: none;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    transition: var(--transition);
    z-index: 1000;
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6);
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    background: rgba(108, 117, 125, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #6c757d;
}

/* 数据表格增强 */
.table-enhanced {
    border-collapse: separate;
    border-spacing: 0;
}

.table-enhanced th,
.table-enhanced td {
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.table-enhanced thead th {
    background: rgba(102, 126, 234, 0.1);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

.table-enhanced tbody tr:hover {
    background: rgba(102, 126, 234, 0.05);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* 通知样式 */
.notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-medium);
    border-left: 4px solid var(--primary-color);
    z-index: 1050;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    border-left-color: #10b981;
}

.notification.error {
    border-left-color: #ef4444;
}

.notification.warning {
    border-left-color: #f59e0b;
}

/* 页面头部增强样式 */
.page-header-enhanced {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.page-header-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.page-title-section {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.page-title-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    flex-shrink: 0;
}

.page-title-icon i {
    font-size: 1.75rem;
    color: white;
}

.page-title-content {
    flex-grow: 1;
    min-width: 0;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: #212529;
    margin: 0;
    line-height: 1.2;
}

.page-subtitle {
    color: #6c757d;
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}

.page-stats {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.page-stats .stat-item {
    display: inline-flex;
    align-items: center;
    font-size: 0.875rem;
    color: #495057;
    background: rgba(102, 126, 234, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 500;
}

.page-stats .stat-item i {
    color: #667eea;
}

.page-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.page-actions .btn {
    font-weight: 600;
    border-radius: 10px;
    padding: 0.625rem 1.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-actions .btn:hover {
    transform: translateY(-2px);
}

/* 存储配置卡片样式 */
.storage-config-card {
    padding: 1.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.storage-config-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.storage-config-card:hover::before {
    opacity: 1;
}

.storage-config-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 0, 0, 0.12);
}

/* 卡片头部样式 */
.card-header-custom {
    padding-bottom: 0;
    border-bottom: none;
}

.storage-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.storage-config-card:hover .storage-icon-wrapper {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.storage-icon {
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.config-name {
    font-weight: 600;
    color: #212529;
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.3;
    word-break: break-word;
}

.config-type {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 500;
}

/* 状态徽章样式 */
.status-badge {
    flex-shrink: 0;
}

.badge.status-active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 0.4rem 0.75rem;
    font-weight: 500;
    font-size: 0.75rem;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.badge.status-inactive {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    border: none;
    padding: 0.4rem 0.75rem;
    font-weight: 500;
    font-size: 0.75rem;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

/* 卡片内容样式 */
.card-content {
    padding: 0;
}

.config-meta {
    margin-bottom: 0;
}

.meta-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

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

.backup-tasks-info {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border-left: 3px solid #2196f3;
}

.info-badge {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: #1976d2;
    font-weight: 500;
}

.config-description {
    padding: 0.75rem 1rem;
    background: rgba(108, 117, 125, 0.05);
    border-radius: 8px;
    border-left: 3px solid #6c757d;
}

.config-description p {
    font-size: 0.875rem;
    line-height: 1.5;
}

/* 操作按钮样式 */
.card-actions {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.action-buttons-primary {
    display: flex;
    gap: 0.5rem;
}

.action-buttons-secondary {
    display: flex;
    gap: 0.375rem;
    flex-wrap: wrap;
}

.btn-action {
    flex: 1;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    border-width: 1.5px;
    white-space: nowrap;
    min-width: 0;
}

.btn-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-action-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
    border-width: 1px;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
}

.btn-action-sm:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.btn-action-sm span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 空状态样式 */
.empty-state-card {
    padding: 4rem 2rem;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.empty-state-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.03) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(180deg); }
}

.empty-state-content {
    position: relative;
    z-index: 1;
}

.empty-state-icon-wrapper {
    position: relative;
    display: inline-block;
}

.empty-state-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3.5rem;
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.3);
    position: relative;
    z-index: 2;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.empty-state-decoration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    border: 2px dashed rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.empty-state-title {
    font-weight: 700;
    color: #212529;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.empty-state-description {
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto 2rem;
}

.empty-state-actions .btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.empty-state-actions .btn-lg:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .page-header-enhanced {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .page-title-section {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .page-title-icon {
        width: 50px;
        height: 50px;
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .page-title-icon i {
        font-size: 1.5rem;
    }

    .page-title {
        font-size: 1.75rem;
    }

    .page-subtitle {
        font-size: 0.95rem;
    }

    .page-actions {
        justify-content: flex-start;
        margin-top: 1rem;
        width: 100%;
    }

    .page-actions .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .storage-config-card {
        padding: 1.25rem;
    }

    .action-buttons-primary {
        flex-direction: column;
    }

    .action-buttons-secondary {
        justify-content: center;
    }

    .btn-action-sm {
        min-width: 80px;
    }

    .empty-state-card {
        padding: 3rem 1.5rem;
    }

    .empty-state-icon {
        width: 100px;
        height: 100px;
        font-size: 3rem;
    }

    .empty-state-decoration {
        width: 120px;
        height: 120px;
    }

    .empty-state-title {
        font-size: 1.5rem;
    }

    .empty-state-description {
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .page-header-enhanced {
        padding: 1rem;
        border-radius: 12px;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .page-subtitle {
        font-size: 0.9rem;
    }

    .page-stats {
        margin-top: 0.75rem;
    }

    .page-stats .stat-item {
        font-size: 0.8rem;
        padding: 0.2rem 0.6rem;
        margin-bottom: 0.25rem;
    }

    .page-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .page-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .card-header-custom {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .status-badge {
        align-self: flex-end;
    }

    .empty-state-card {
        padding: 2rem 1rem;
    }

    .empty-state-icon {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }

    .empty-state-decoration {
        width: 100px;
        height: 100px;
    }

    .empty-state-title {
        font-size: 1.25rem;
    }

    .empty-state-description br {
        display: none;
    }
}

/* 编辑表单样式 */
.form-section {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding-bottom: 1.5rem;
}

.form-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.form-section-title {
    color: #212529;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(102, 126, 234, 0.1);
    display: flex;
    align-items: center;
}

.form-section-title i {
    color: #667eea;
}

.form-actions {
    background: rgba(248, 249, 250, 0.5);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.form-actions .btn {
    font-weight: 600;
    border-radius: 8px;
    padding: 0.625rem 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-actions .btn:hover {
    transform: translateY(-2px);
}

/* 表单控件增强 */
.form-control:focus,
.form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.form-check-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* 现代化模态框样式 */
.modal-modern .modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    max-height: 90vh;
}

.modal-modern .modal-dialog {
    margin: 1.75rem auto;
    max-width: 800px;
}

@media (min-width: 576px) {
    .modal-modern .modal-dialog {
        max-width: 700px;
    }
}

@media (min-width: 992px) {
    .modal-modern .modal-dialog {
        max-width: 800px;
    }
}

.modal-header-modern {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 2rem;
    position: relative;
}

.modal-header-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.modal-title-section {
    display: flex;
    align-items: center;
}

.modal-title-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.modal-title-icon i {
    font-size: 1.5rem;
    color: white;
}

.modal-title-content .modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #212529;
    margin: 0;
}

.modal-subtitle {
    color: #6c757d;
    font-size: 0.95rem;
    font-weight: 500;
}

.btn-close-modern {
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    transition: all 0.3s ease;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
}

.btn-close-modern:hover {
    background: rgba(108, 117, 125, 0.1);
    color: #495057;
    transform: scale(1.1);
}

.modal-body-modern {
    padding: 2.5rem;
    background: #ffffff;
    max-height: 70vh;
    overflow-y: auto;
}

.form-section-modal {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding-bottom: 1.5rem;
    margin-bottom: 1rem;
}

.form-section-modal:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.form-section-title-modal {
    color: #212529;
    font-weight: 700;
    margin-bottom: 2rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(102, 126, 234, 0.1);
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    letter-spacing: -0.025em;
}

.form-section-title-modal i {
    color: #667eea;
    font-size: 1.1rem;
}

/* 表单组间距优化 */
.form-section-modal .mb-3 {
    margin-bottom: 1.5rem;
}

.form-section-modal .row .mb-3 {
    margin-bottom: 1.25rem;
}

.form-section-modal .row:last-child .mb-3 {
    margin-bottom: 0;
}

.config-parameters-section {
    min-height: 80px;
}

.config-fields-container {
    transition: all 0.3s ease;
    min-height: 60px;
}

/* 固定配置信息框样式 */
.config-info-box {
    border-radius: 8px;
    border: none;
    padding: 0.875rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    box-shadow: none;
    border-left: 3px solid;
    display: flex;
    align-items: flex-start;
    line-height: 1.5;
}

.config-info-box i {
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.config-info-box.info {
    background: rgba(13, 110, 253, 0.08);
    color: #0c63e4;
    border-left-color: #0d6efd;
}

.config-info-box.warning {
    background: rgba(255, 193, 7, 0.08);
    color: #b45309;
    border-left-color: #ffc107;
}

.config-info-box.success {
    background: rgba(25, 135, 84, 0.08);
    color: #0f5132;
    border-left-color: #198754;
}

.config-info-box.danger {
    background: rgba(220, 53, 69, 0.08);
    color: #842029;
    border-left-color: #dc3545;
}

/* 保留原有alert样式用于动态提示 */
.config-fields .alert {
    border-radius: 8px;
    border: none;
    padding: 0.875rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    box-shadow: none;
    border-left: 3px solid;
}

.config-fields .alert-info {
    background: rgba(13, 110, 253, 0.08);
    color: #0c63e4;
    border-left-color: #0d6efd;
}

.config-fields .alert-warning {
    background: rgba(255, 193, 7, 0.08);
    color: #b45309;
    border-left-color: #ffc107;
}

.config-fields .alert-success {
    background: rgba(25, 135, 84, 0.08);
    color: #0f5132;
    border-left-color: #198754;
}

.config-fields .alert-danger {
    background: rgba(220, 53, 69, 0.08);
    color: #842029;
    border-left-color: #dc3545;
}

/* 现代化表单控件 */
.form-label-modern {
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    display: block;
    line-height: 1.4;
}

.form-control-modern,
.form-select-modern {
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    color: #495057;
    line-height: 1.5;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.form-control-modern::placeholder {
    color: #adb5bd;
    font-weight: 400;
    opacity: 1;
}

.form-control-modern:focus,
.form-select-modern:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.15), 0 4px 12px rgba(0, 0, 0, 0.08);
    background: #ffffff;
    outline: none;
    transform: translateY(-1px);
}

.form-control-modern:hover:not(:focus),
.form-select-modern:hover:not(:focus) {
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.form-text-modern {
    font-size: 0.825rem;
    color: #6c757d;
    margin-top: 0.5rem;
    line-height: 1.4;
    font-weight: 400;
}

.modal-footer-modern {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 1.5rem 2rem;
}

.modal-footer-info {
    flex-grow: 1;
}

.modal-footer-actions {
    display: flex;
    align-items: center;
}

.modal-footer-actions .btn {
    font-weight: 600;
    border-radius: 10px;
    padding: 0.625rem 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-footer-actions .btn:hover {
    transform: translateY(-2px);
}

/* 配置字段动画 */
.config-fields {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding-top: 0.5rem;
}

.config-fields.show {
    opacity: 1;
    transform: translateY(0);
}

/* 配置字段内部间距优化 */
.config-fields .row {
    margin-bottom: 0.75rem;
}

.config-fields .row:last-child {
    margin-bottom: 0;
}

.config-fields .mb-3 {
    margin-bottom: 1.25rem;
}

.config-fields .mb-3:last-child {
    margin-bottom: 0;
}

/* 响应式表单 */
@media (max-width: 768px) {
    .form-actions {
        padding: 1rem;
    }

    .form-actions .d-flex {
        flex-direction: column;
        gap: 1rem;
    }

    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .modal-header-modern {
        padding: 1.5rem;
    }

    .modal-title-section {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .modal-title-icon {
        margin-right: 0;
        margin-bottom: 1rem;
        width: 48px;
        height: 48px;
    }

    .modal-title-icon i {
        font-size: 1.25rem;
    }

    .modal-title-content .modal-title {
        font-size: 1.25rem;
    }

    .modal-body-modern {
        padding: 1.5rem;
        max-height: 60vh;
    }

    .modal-footer-modern {
        padding: 1rem 1.5rem;
    }

    .form-section-modal {
        padding-bottom: 1rem;
        margin-bottom: 0.75rem;
    }

    .form-section-title-modal {
        margin-bottom: 1.25rem;
        font-size: 1rem;
    }

    .config-parameters-section {
        min-height: 60px;
    }

    .form-control-modern,
    .form-select-modern {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }

    .form-label-modern {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .modal-footer-modern .d-flex {
        flex-direction: column;
        gap: 1rem;
    }

    .modal-footer-info {
        text-align: center;
    }

    .modal-footer-actions {
        width: 100%;
        justify-content: center;
    }

    .modal-footer-actions .btn {
        flex: 1;
    }
}

/* 目录浏览器样式 */
.directory-browser {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.375rem;
    background: #ffffff;
}

.directory-browser .list-group-item {
    border-left: none;
    border-right: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0.75rem 1rem;
    border-color: rgba(0, 0, 0, 0.06);
}

.directory-browser .list-group-item:hover {
    background-color: rgba(102, 126, 234, 0.05);
    transform: translateX(2px);
    border-left: 3px solid #667eea;
    padding-left: calc(1rem - 3px);
}

.directory-browser .list-group-item:first-child {
    border-top: none;
}

.directory-browser .list-group-item:last-child {
    border-bottom: none;
}

.directory-browser .list-group-item.text-muted {
    cursor: default;
    opacity: 0.7;
}

.directory-browser .list-group-item.text-muted:hover {
    background-color: transparent;
    transform: none;
    border-left: none;
    padding-left: 1rem;
}

/* 目录浏览器图标样式 */
.directory-browser .bi-folder-fill {
    font-size: 1.1rem;
    color: #667eea;
}

.directory-browser .bi-file-earmark {
    font-size: 1rem;
    opacity: 0.7;
    color: #6c757d;
}

.directory-browser .bi-chevron-right {
    font-size: 0.8rem;
    color: #adb5bd;
}

/* 目录浏览器路径输入框 */
#currentPath {
    background: rgba(248, 249, 250, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.08);
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.875rem;
    color: #495057;
}

/* 目录浏览器按钮 */
#parentBtn {
    border-color: rgba(0, 0, 0, 0.08);
    color: #495057;
    font-weight: 500;
    transition: all 0.2s ease;
}

#parentBtn:hover:not(:disabled) {
    background-color: rgba(102, 126, 234, 0.1);
    border-color: #667eea;
    color: #667eea;
}

#parentBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 备份任务卡片样式 */
.backup-task-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
}

.backup-task-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.backup-task-card:hover::before {
    opacity: 1;
}

.backup-task-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 0, 0, 0.12);
}

/* 任务卡片头部 */
.task-card-header {
    padding: 1.5rem 1.5rem 0;
}

.task-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #212529 0%, #495057 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(33, 37, 41, 0.2);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.backup-task-card:hover .task-icon-wrapper {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(33, 37, 41, 0.3);
}

.task-icon-wrapper i {
    font-size: 1.5rem;
    color: white;
}

.task-name {
    font-weight: 700;
    color: #212529;
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.3;
    word-break: break-word;
}

.task-description {
    font-size: 0.875rem;
    color: #6c757d;
    line-height: 1.4;
    margin: 0;
}

/* 状态徽章 */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.status-badge.status-active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.status-badge.status-inactive {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

.status-badge.status-success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.status-badge.status-error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.status-badge.status-running {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.status-badge.pulse {
    animation: pulse 2s infinite;
}

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

/* 任务卡片主体 */
.task-card-body {
    padding: 1.5rem;
}

/* 信息区域 */
.path-info-section,
.execution-info-section {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding-bottom: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* 行内信息布局 */
.info-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.info-label {
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #495057;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    min-width: fit-content;
}

.info-label i {
    color: #667eea;
    font-size: 0.875rem;
}

.info-value {
    margin-left: 1.5rem;
}

/* 行内代码样式 */
.path-code-inline,
.cron-code-inline {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.75rem;
    color: #495057;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

/* 自定义滚动条样式 */
.path-code-inline::-webkit-scrollbar,
.cron-code-inline::-webkit-scrollbar {
    height: 4px;
}

.path-code-inline::-webkit-scrollbar-track,
.cron-code-inline::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 2px;
}

.path-code-inline::-webkit-scrollbar-thumb,
.cron-code-inline::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
}

.path-code-inline::-webkit-scrollbar-thumb:hover,
.cron-code-inline::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* 保留原有的块级代码样式（如果需要） */
.path-code,
.cron-code {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.875rem;
    color: #495057;
    word-break: break-all;
    display: block;
}

.storage-name {
    font-weight: 600;
    color: #212529;
    background: rgba(102, 126, 234, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    display: inline-block;
    flex-shrink: 0;
}

.next-run-time {
    font-weight: 600;
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    display: inline-block;
    flex-shrink: 0;
}

.execution-mode {
    font-weight: 600;
    color: #6c757d;
    background: rgba(108, 117, 125, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    display: inline-block;
    flex-shrink: 0;
}

/* 统计信息区域 */
.stats-section {
    margin-top: 1rem;
}

.stats-section .stat-item {
    text-align: center;
    padding: 0.75rem 0.5rem;
    background: rgba(248, 249, 250, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stats-section .stat-item:hover {
    background: rgba(248, 249, 250, 1);
    border-color: rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.stats-section .stat-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
    line-height: 1;
}

.stats-section .stat-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #212529;
    line-height: 1.2;
    word-break: break-word;
}

/* 任务卡片底部操作区域 */
.task-card-footer {
    padding: 1rem 1.5rem 1.5rem;
    background: rgba(248, 249, 250, 0.5);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.action-buttons {
    display: flex;
    gap: 0.75rem;
}

.action-buttons .btn-action {
    flex: 1;
    padding: 0.75rem 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-width: 1.5px;
    white-space: nowrap;
    min-width: 0;
}

.action-buttons .btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.action-buttons .btn-action i {
    font-size: 1rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .backup-task-card {
        margin-bottom: 1rem;
    }

    .task-card-header,
    .task-card-body,
    .task-card-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .action-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }

    .action-buttons .btn-action {
        flex: none;
    }

    .stats-section .row {
        gap: 0.5rem;
    }

    .stats-section .stat-item {
        padding: 0.5rem 0.25rem;
        margin-bottom: 0.5rem;
    }

    .stats-section .stat-label {
        font-size: 0.65rem;
        margin-bottom: 0.2rem;
    }

    .stats-section .stat-value {
        font-size: 0.85rem;
    }

    /* 移动端信息行布局调整 */
    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .path-code-inline,
    .cron-code-inline {
        width: 100%;
        margin-left: 0;
        /* 保持水平滚动，不换行 */
        white-space: nowrap;
        overflow-x: auto;
    }

    .info-label {
        font-size: 0.7rem;
    }

    .storage-name,
    .next-run-time,
    .execution-mode {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
}

/* 目录浏览器加载状态 */
.directory-browser .spinner-border {
    width: 2rem;
    height: 2rem;
}

/* 目录浏览器空状态 */
.directory-browser .text-center.text-muted {
    padding: 3rem 1rem;
    color: #6c757d;
    font-style: italic;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .directory-browser {
        max-height: 300px;
    }

    .directory-browser .list-group-item {
        padding: 0.625rem 0.75rem;
    }

    .directory-browser .list-group-item:hover {
        padding-left: calc(0.75rem - 3px);
    }

    .directory-browser .list-group-item.text-muted:hover {
        padding-left: 0.75rem;
    }

    #parentBtn {
        font-size: 0.875rem;
        padding: 0.375rem 0.75rem;
    }
}

/* 定时设置样式 - 黑白风格 */
.schedule-settings {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.schedule-settings:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f1f3f4 100%);
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* 定时类型按钮样式 - 黑白风格 */
.btn-check:checked + .btn-outline-primary {
    background-color: #212529;
    border-color: #212529;
    color: white;
    box-shadow: 0 4px 12px rgba(33, 37, 41, 0.3);
    transform: translateY(-1px);
}

.btn-outline-primary {
    border-color: rgba(33, 37, 41, 0.3);
    color: #212529;
    font-weight: 600;
    transition: all 0.3s ease;
    background: #ffffff;
}

.btn-outline-primary:hover {
    background-color: rgba(33, 37, 41, 0.05);
    border-color: #212529;
    color: #212529;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 周几选择按钮样式 - 黑白风格 */
.btn-check:checked + .btn-outline-secondary {
    background-color: #495057;
    border-color: #495057;
    color: white;
    box-shadow: 0 2px 8px rgba(73, 80, 87, 0.3);
    transform: translateY(-1px);
}

.btn-outline-secondary.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
    background: #ffffff;
    border-color: rgba(73, 80, 87, 0.3);
    color: #495057;
}

/* 信息按钮样式 */
.btn-outline-info {
    border-color: rgba(13, 110, 253, 0.3);
    color: #0d6efd;
    font-weight: 600;
    transition: all 0.3s ease;
    background: #ffffff;
}

.btn-outline-info:hover {
    background-color: rgba(13, 110, 253, 0.1);
    border-color: #0d6efd;
    color: #0d6efd;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.2);
}

.btn-outline-secondary.btn-sm:hover {
    background-color: rgba(73, 80, 87, 0.05);
    border-color: #495057;
    color: #495057;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* 时间输入框样式 - 黑白风格 */
input[type="time"] {
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 1rem;
    font-weight: 500;
    border: 2px solid rgba(0, 0, 0, 0.1);
    background: #ffffff;
    color: #212529;
}

input[type="time"]:focus {
    border-color: #495057;
    box-shadow: 0 0 0 0.2rem rgba(73, 80, 87, 0.25);
}

/* 预览信息样式 - 黑白风格 */
#schedule_preview .alert {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    background: #ffffff;
}

#schedule_preview .alert-info {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #495057;
    border-left: 4px solid #6c757d;
}

#schedule_preview .alert-success {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #212529;
    border-left: 4px solid #212529;
}

#schedule_preview .alert-warning {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #495057;
    border-left: 4px solid #6c757d;
}

/* 高级设置样式 - 黑白风格 */
#advanced_cron_settings {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    padding: 1rem;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

#advanced_cron_settings .form-control {
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: #212529;
}

#advanced_cron_settings .form-control[readonly] {
    background: #f8f9fa;
    color: #6c757d;
    border-color: rgba(0, 0, 0, 0.1);
}

/* 表单标签增强 - 黑白风格 */
.schedule-settings .form-label {
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

/* 表单控件增强 - 黑白风格 */
.schedule-settings .form-control,
.schedule-settings .form-select {
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background: #ffffff;
    color: #212529;
    font-weight: 500;
    transition: all 0.3s ease;
}

.schedule-settings .form-control:focus,
.schedule-settings .form-select:focus {
    border-color: #495057;
    box-shadow: 0 0 0 0.2rem rgba(73, 80, 87, 0.25);
    background: #ffffff;
}

.schedule-settings .form-control:hover:not(:focus),
.schedule-settings .form-select:hover:not(:focus) {
    border-color: rgba(0, 0, 0, 0.2);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .schedule-settings {
        padding: 1rem;
    }

    .btn-outline-primary {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }

    .btn-outline-secondary.btn-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }

    #schedule_preview .alert {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .schedule-settings .row .col-md-6,
    .schedule-settings .row .col-md-4 {
        margin-bottom: 1rem;
    }

    .d-flex.flex-wrap.gap-2 {
        gap: 0.5rem !important;
    }

    .btn-outline-secondary.btn-sm {
        flex: 1;
        min-width: 60px;
    }
}

/* 定时设置图标样式 - 黑白风格 */
.schedule-settings .bi {
    color: #495057;
}

.btn-check:checked + label .bi {
    color: white;
}

/* 定时设置分隔线 */
.schedule-settings::before {
    content: '';
    position: absolute;
    top: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #dee2e6 50%, transparent 100%);
    opacity: 0.5;
}

.schedule-settings {
    position: relative;
    margin-top: 1.5rem;
}

/* 表单文本样式增强 */
.schedule-settings .form-text {
    color: #6c757d;
    font-size: 0.875rem;
    font-weight: 400;
    margin-top: 0.5rem;
}

/* 复选框样式增强 */
.form-check-input:checked {
    background-color: #212529;
    border-color: #212529;
}

.form-check-input:focus {
    border-color: #495057;
    box-shadow: 0 0 0 0.2rem rgba(73, 80, 87, 0.25);
}

.form-check-label {
    color: #495057;
    font-weight: 500;
}

/* 选择框样式增强 */
.schedule-settings .form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23212529' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
}

/* 输入组样式增强 */
.schedule-settings .input-group .btn {
    border-color: rgba(0, 0, 0, 0.1);
    color: #495057;
    background: #ffffff;
    font-weight: 500;
}

.schedule-settings .input-group .btn:hover {
    background-color: #f8f9fa;
    border-color: rgba(0, 0, 0, 0.2);
    color: #212529;
}
