/* CRON表达式计算器样式 */

.cron-calculator-section {
    margin-bottom: 2rem;
}

.cron-calculator-section .input-group-text {
    background-color: #f8f9fa;
    border-right: none;
    font-weight: 600;
}

.cron-calculator-section .form-control {
    border-left: none;
    border-right: none;
    font-family: 'Courier New', monospace;
}

.cron-calculator-section .btn-success {
    border-left: none;
}

#resultSection {
    margin-top: 2rem;
}

#resultDescription {
    margin-bottom: 1rem;
    line-height: 1.8;
}

#resultDescription code {
    background-color: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
    color: #d63384;
    font-size: 0.95em;
}

#resultDescription strong {
    color: #495057;
    margin-right: 0.5rem;
}

#resultTableBody tr {
    cursor: default;
}

#resultTableBody tr:hover {
    background-color: #f8f9fa;
}

/* CRON表达式说明区域样式 */
.cron-explanation-section {
    margin-bottom: 1.5rem;
}

.cron-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.75rem;
}

.cron-card-body {
    padding: 1rem 1.25rem;
}

.cron-description-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #495057;
    margin-bottom: 0.75rem;
}

.cron-subtitle {
    font-size: 0.95rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.75rem;
    margin-top: 0.5rem;
}

.cron-note-text {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0;
    line-height: 1.5;
}

/* CRON格式图表 */
.cron-format-diagram {
    background-color: #f8f9fa;
    padding: 0.75rem;
    border-radius: 0.375rem;
    border: 1px solid #dee2e6;
    display: flex;
    justify-content: center;
}

.format-row {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 0.3rem;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
}

.format-field {
    flex: 0 0 auto;
    min-width: 75px;
    text-align: center;
    position: relative;
    padding: 0.4rem 0.85rem;
}

.format-field .asterisk {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: bold;
    color: #0d6efd;
    margin-bottom: 0.4rem;
    position: relative;
    line-height: 2;
}

.format-field .asterisk::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 8px;
    background-color: #0d6efd;
}

.format-field .field-label {
    margin-top: 0.6rem;
    font-size: 0.75rem;
    color: #6c757d;
    line-height: 1.25;
    padding: 0;
}

/* 常用表达式表格 */
.common-expressions-section .table {
    margin-bottom: 0;
}

.common-expressions-section .expression-row {
    cursor: pointer;
    transition: background-color 0.2s;
}

.common-expressions-section .expression-row:hover {
    background-color: #e7f3ff !important;
}

.common-expressions-section .expression-row code {
    background-color: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
    color: #d63384;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .format-row {
        flex-direction: column;
    }
    
    .format-field {
        min-width: 100%;
    }
    
    .format-field .asterisk::after {
        display: none;
    }
}
