/* Cron Specific Styles */
.cron-container {
    max-width: 1200px;
    margin-bottom: 4rem;
}

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

.tool-title {
    font-size: 2.25rem;
    color: var(--text-main);
    margin: 0;
}

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

.quick-cron-btn {
    background: var(--bg-surface);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.quick-cron-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.cron-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 992px) {
    .cron-layout {
        grid-template-columns: 1fr;
    }
}

.panel {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

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

/* Cron Input Styles */
.cron-input-wrapper {
    background: var(--bg-body);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    display: flex;
    justify-content: center;
    transition: border-color 0.2s;
}

.cron-input-wrapper.error {
    border-color: var(--danger);
}

.cron-parts {
    display: flex;
    gap: 1rem;
}

@media (max-width: 576px) {
    .cron-parts {
        gap: 0.5rem;
    }
}

input[type="text"].cron-part {
    width: 60px;
    height: 60px;
    min-width: 0;
    flex: none;
    text-align: center;
    font-size: 1.5rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-weight: bold;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-surface);
    color: var(--text-main);
    transition: all 0.2s;
    outline: none;
    padding: 0;
    margin: 0;
}

@media (max-width: 576px) {
    input[type="text"].cron-part {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

input[type="text"].cron-part:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.2);
    transform: translateY(-2px);
}

.cron-labels {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

@media (max-width: 576px) {
    .cron-labels {
        gap: 0.5rem;
    }
}

.cron-labels span {
    width: 60px;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

@media (max-width: 576px) {
    .cron-labels span {
        width: 45px;
        font-size: 0.65rem;
    }
}

.cron-explainer {
    margin-top: 2rem;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary);
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.4;
}

.cron-explainer.error {
    color: var(--danger);
    font-size: 1.1rem;
}

/* Next Executions Table/List */
.schedule-panel {
    height: 100%;
}

.execution-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.execution-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.execution-item:first-child {
    padding-top: 0;
}

.execution-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.execution-date {
    font-weight: 600;
    color: var(--text-main);
    font-size: 1rem;
}

.execution-time {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    color: var(--primary);
    background: var(--bg-body);
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    font-size: 0.95rem;
    align-self: flex-start;
    border: 1px solid var(--border-color);
}

/* Builder Table */
.cron-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.cron-table th, .cron-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
    color: var(--text-main);
}

.cron-table th {
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.85rem;
    border-bottom: 2px solid var(--border-color);
}

.cron-table code {
    background: var(--bg-body);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
}
