/* 简化版Cron模态框样式 */
.cron-modal-simple {
    max-width: 500px !important;
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* 标题栏 */
.cron-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid #F3F4F6;
}

.cron-modal-title {
    font-size: 16px;
    font-weight: 600;
    color: #1F2937;
}

.cron-modal-close {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: #6B7280;
    font-size: 20px;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.cron-modal-close:hover {
    background: #F3F4F6;
}

/* 内容区 */
.cron-modal-body {
    padding: 20px;
}

/* 执行类型选择 */
.cron-type-selector {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #F3F4F6;
}

.cron-type-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
}

.cron-type-option input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* 配置区域 */
.cron-config-section {
    margin-bottom: 24px;
}

/* 时间选择器 */
.cron-time-picker {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.cron-time-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cron-time-label {
    font-size: 12px;
    color: #6B7280;
    margin-bottom: 6px;
}

.cron-time-select {
    width: 80px;
    height: 40px;
    padding: 0 12px;
    font-size: 16px;
    font-weight: 600;
    color: #1F2937;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.cron-time-select:hover {
    border-color: #2563EB;
}

.cron-time-select:focus {
    outline: none;
    border-color: #2563EB;
    background: #FFFFFF;
}

.cron-time-separator {
    font-size: 24px;
    font-weight: 600;
    color: #6B7280;
    margin-bottom: 8px;
}

/* 添加按钮 */
.cron-add-btn {
    height: 40px;
    padding: 0 16px;
    margin-bottom: 8px;
    border: 1px solid #10B981;
    background: #10B981;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
    white-space: nowrap;
}

.cron-add-btn:hover {
    background: #059669;
    border-color: #059669;
}

/* 时间点列表 */
.cron-time-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    min-height: 40px;
    padding: 8px;
    background: #F9FAFB;
    border-radius: 6px;
    border: 1px solid #E5E7EB;
}

.cron-time-list:empty::before {
    content: '暂无时间点，请添加';
    color: #9CA3AF;
    font-size: 13px;
    line-height: 24px;
}

.cron-time-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 12px;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 4px;
    font-size: 14px;
    color: #1F2937;
    font-weight: 500;
}

.cron-time-tag-remove {
    width: 16px;
    height: 16px;
    border: none;
    background: transparent;
    color: #9CA3AF;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    transition: all 0.2s;
}

.cron-time-tag-remove:hover {
    background: #FEE2E2;
    color: #EF4444;
}

/* 星期选择 */
.cron-week-selector {
    margin-bottom: 20px;
}

.cron-week-label {
    display: block;
    font-size: 13px;
    color: #6B7280;
    margin-bottom: 10px;
}

.cron-week-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cron-week-btn {
    flex: 1;
    min-width: 60px;
    height: 36px;
    border: 1px solid #E5E7EB;
    background: #FFFFFF;
    color: #374151;
    font-size: 13px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
}

.cron-week-btn:hover {
    border-color: #2563EB;
    color: #2563EB;
}

.cron-week-btn.selected {
    background: #2563EB;
    border-color: #2563EB;
    color: #FFFFFF;
    font-weight: 500;
}

/* 提示文字 */
.cron-hint {
    font-size: 12px;
    color: #9CA3AF;
    text-align: center;
}

/* 预览区域 */
.cron-preview-section {
    padding: 16px;
    background: #F9FAFB;
    border-radius: 6px;
    border: 1px solid #E5E7EB;
}

.cron-preview-title {
    font-size: 12px;
    color: #6B7280;
    margin-bottom: 8px;
}

.cron-preview-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cron-preview-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #1F2937;
}

.cron-preview-icon {
    font-size: 16px;
}

/* 底部按钮 */
.cron-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 16px;
    border-top: 1px solid #F3F4F6;
}

.cron-btn-secondary {
    height: 36px;
    padding: 0 16px;
    border: 1px solid #E5E7EB;
    background: #FFFFFF;
    color: #374151;
    font-size: 14px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
}

.cron-btn-secondary:hover {
    background: #F9FAFB;
}

.cron-btn-primary {
    height: 36px;
    padding: 0 24px;
    border: none;
    background: #2563EB;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
}

.cron-btn-primary:hover {
    background: #1D4ED8;
}
