.scheduler-page {
    padding: 0 24px 40px;
    max-width: 1200px;
    color: #1a1a2e;
}

.scheduler-page h2 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px;
    color: #1a1a2e;
}

.scheduler-page .subtitle {
    font-weight: 400;
    color: #6b7280;
    font-size: 13px;
}

.scheduler-page .trigger-section,
.scheduler-page .history-section,
.scheduler-page .schedule-section,
.scheduler-page .reprocess-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

.scheduler-page .trigger-form {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.scheduler-page .form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.scheduler-page .form-group label {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.scheduler-page .form-group select,
.scheduler-page .form-group input {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    min-width: 220px;
    background: #fff;
    color: #1a1a2e;
}

.scheduler-page .form-group select:focus,
.scheduler-page .form-group input:focus {
    outline: none;
    border-color: #003399;
    box-shadow: 0 0 0 2px rgba(0, 51, 153, 0.15);
}

.scheduler-page .btn-trigger {
    padding: 8px 20px;
    background: #003399;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.scheduler-page .btn-trigger:hover:not(:disabled) {
    background: #002266;
}

.scheduler-page .btn-trigger:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.scheduler-page .alert {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
}

.scheduler-page .alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.scheduler-page .alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.scheduler-page .loading,
.scheduler-page .empty {
    color: #6b7280;
    font-style: italic;
    padding: 20px 0;
}

.scheduler-page .table-container {
    overflow-x: auto;
}

.scheduler-page .history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.scheduler-page .history-header h2 {
    margin: 0;
}

.scheduler-page .history-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.scheduler-page .history-filter label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
    margin: 0;
}

.scheduler-page .history-filter select {
    padding: 6px 10px;
    font-size: 13px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
}

.scheduler-page .history-scroll {
    max-height: 2000px;
    overflow-y: auto;
    border: 1px solid #f3f4f6;
    border-radius: 6px;
}

.scheduler-page .history-scroll thead th {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
}

.scheduler-page table {
    width: 100%;
    border-collapse: collapse;
}

.scheduler-page thead th {
    text-align: left;
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
    border-bottom: 2px solid #e5e7eb;
    white-space: nowrap;
}

.scheduler-page tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 13px;
}

.scheduler-page tbody tr:hover {
    background: #f9fafb;
}

.scheduler-page .status-cell {
    width: 50px;
    text-align: center;
}

.scheduler-page .badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
}

.scheduler-page .badge-success {
    background: #d1fae5;
    color: #065f46;
}

.scheduler-page .badge-failure {
    background: #fee2e2;
    color: #991b1b;
}

.scheduler-page .status-text {
    font-weight: 600;
}

.scheduler-page .status-success {
    color: #065f46;
}

.scheduler-page .status-failure {
    color: #991b1b;
}

.scheduler-page .status-neutral {
    color: #6b7280;
}

.scheduler-page .schedule-frequency {
    margin: 0 0 8px 0;
    color: #374151;
}

.scheduler-page .schedule-help {
    margin: 0 0 12px 0;
    color: #6b7280;
    font-size: 12px;
}

.scheduler-page .schedule-input {
    width: 80px;
    padding: 4px 8px;
    font-size: 13px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
}

.scheduler-page .btn-save {
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: #2563eb;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
}

.scheduler-page .btn-save:hover:not(:disabled) {
    background: #1d4ed8;
}

.scheduler-page .btn-save:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.scheduler-page .tab-bar {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid #4b5563;
    margin-bottom: 20px;
}

.scheduler-page .tab {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #d1d5db;
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
}

.scheduler-page .tab:hover {
    color: #ffffff;
}

.scheduler-page .tab-active {
    color: #ffffff;
    border-bottom-color: #60a5fa;
}

.scheduler-page .error-cell {
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #991b1b;
}

.scheduler-page .row-failure {
    background: #fefce8;
}

.scheduler-page .reprocess-description {
    color: #6b7280;
    font-size: 13px;
    margin: 0 0 20px;
    line-height: 1.5;
}

.scheduler-page .reprocess-form {
    margin-bottom: 20px;
}

.scheduler-page .reprocess-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.scheduler-page .btn-reprocess {
    padding: 10px 20px;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, opacity 0.15s;
    min-width: 200px;
}

.scheduler-page .btn-reprocess:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.scheduler-page .btn-events {
    background: #003399;
}

.scheduler-page .btn-events:hover:not(:disabled) {
    background: #002266;
}

.scheduler-page .btn-lineups {
    background: #0369a1;
}

.scheduler-page .btn-lineups:hover:not(:disabled) {
    background: #075985;
}

.scheduler-page .btn-statistics {
    background: #4338ca;
}

.scheduler-page .btn-statistics:hover:not(:disabled) {
    background: #3730a3;
}
