/* Cron Expression Parser Styling */

/* Input Field */
#cronInput {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Cron Expression Display */
.cron-result-card {
    border: 1px solid var(--bs-border-color);
}

/* Human Readable Section */
.human-readable-section {
    text-align: center;
    padding: 1.25rem 1rem;
    background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.05) 0%, rgba(var(--bs-primary-rgb), 0.1) 100%);
    border-radius: 0.5rem;
    border: 1px dashed rgba(var(--bs-primary-rgb), 0.3);
}

.human-readable-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--bs-secondary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.human-readable-text {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--bs-primary-text-emphasis);
    line-height: 1.4;
}

/* Expression Details Table */
#detailsTable {
    font-size: 0.9rem;
}

#detailsTable thead th {
    background: var(--bs-secondary-bg);
    font-weight: 600;
    border-bottom: 2px solid var(--bs-border-color);
    padding: 0.75rem;
}

#detailsTable tbody td {
    padding: 0.65rem 0.75rem;
    vertical-align: middle;
}

#detailsTable tbody td code {
    background: var(--bs-secondary-bg);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--bs-primary-text-emphasis);
}

#detailsTable tbody tr:hover {
    background: var(--bs-secondary-bg);
}

/* Format Badge */
.badge {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Next Runs List */
#nextRunsList .list-group-item {
    padding: 0.5rem 0.75rem;
    border-left: 3px solid #052c65;
    border-right: 0;
    border-top: 0;
    font-size: 0.9rem;
}

#nextRunsList .list-group-item:first-child {
    border-top: 1px solid var(--bs-border-color);
}

/* Mobile Optimization */
@media (max-width: 768px) {
    #cronInput {
        font-size: 1rem;
    }

    .human-readable-text {
        font-size: 1.15rem;
    }

    #detailsTable {
        font-size: 0.85rem;
    }

    #detailsTable thead th,
    #detailsTable tbody td {
        padding: 0.5rem;
    }

    .card-header h6 {
        font-size: 0.95rem;
    }
}

/* Dark Mode */
[data-bs-theme="dark"] .human-readable-section {
    background: rgba(var(--bs-primary-rgb), 0.08);
}

[data-bs-theme="dark"] #detailsTable thead th {
    background: rgba(255,255,255,0.05);
}

[data-bs-theme="dark"] #detailsTable tbody td code {
    background: rgba(255,255,255,0.05);
}

[data-bs-theme="dark"] #detailsTable tbody tr:hover {
    background: rgba(255,255,255,0.03);
}

[data-bs-theme="dark"] #nextRunsList .list-group-item {
    border-left-color: #4a7bc8;
}

[data-bs-theme="dark"] #cronInput {
    background-color: #212529;
    border-color: #495057;
    color: #e9ecef;
}

[data-bs-theme="dark"] #cronInput:focus {
    background-color: #212529;
    border-color: #86b7fe;
    color: #e9ecef;
}
