/* ========================================
   DEDICATED SCHEDULER STYLES
   Separate file to avoid conflicts
   ======================================== */

/* Publish Column Cell */
.publish-cell {
    text-align: center;
    padding: 20px 16px !important;
    vertical-align: middle;
}

.publish-cell .not-available {
    color: #9ca3af;
    font-size: 16px;
    font-weight: 500;
}

/* Toggle Switch Container */
.schedule-toggle-container {
    display: inline-block;
}

/* The switch - the box around the slider */
.schedule-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 26px;
    vertical-align: middle;
}

/* Hide default HTML checkbox */
.schedule-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

/* The slider (background) */
.schedule-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ef4444;
    transition: 0.4s;
    border-radius: 26px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* The slider knob */
.schedule-slider::before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

/* Checked state - Green */
.schedule-switch input:checked + .schedule-slider {
    background-color: #22c55e;
}

/* Move knob when checked */
.schedule-switch input:checked + .schedule-slider::before {
    transform: translateX(26px);
}

/* Focus state for accessibility */
.schedule-switch input:focus + .schedule-slider {
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.3);
}

/* Hover effect */
.schedule-slider:hover {
    opacity: 0.95;
}

/* Active/clicking effect */
.schedule-switch input:active + .schedule-slider::before {
    width: 24px;
}

/* Schedule Modal */
.schedule-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.schedule-modal-content {
    background-color: #1e293b;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.schedule-modal .modal-header {
    padding: 24px;
    border-bottom: 1px solid #334155;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.schedule-modal .modal-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: #f1f5f9;
    margin: 0;
}

.schedule-modal .modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.15s ease;
}

.schedule-modal .modal-close:hover {
    background: #334155;
    color: #f1f5f9;
}

.schedule-modal .modal-body {
    padding: 24px;
}

.schedule-info {
    margin-bottom: 24px;
    padding: 16px;
    background: #0f172a;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

.schedule-info p {
    margin: 8px 0;
    font-size: 14px;
    color: #cbd5e1;
}

.schedule-info strong {
    color: #f1f5f9;
}

.schedule-hint {
    font-size: 13px !important;
    color: #94a3b8 !important;
    font-style: italic;
}

.schedule-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.schedule-option {
    border: 2px solid #334155;
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    background: #0f172a;
}

.schedule-option:hover {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.05);
    transform: translateY(-2px);
}

.schedule-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.schedule-option input[type="radio"]:checked + label {
    color: #3b82f6;
}

.schedule-option label {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    width: 100%;
}

.schedule-option .option-title {
    font-size: 15px;
    font-weight: 500;
    color: #f1f5f9;
}

.schedule-option .option-desc {
    font-size: 13px;
    color: #94a3b8;
}

.schedule-option .option-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #3b82f6;
    color: white;
    font-size: 11px;
    border-radius: 4px;
    font-weight: 600;
    margin-left: 8px;
}

.schedule-option input[type="radio"]:checked {
    opacity: 1;
    position: relative;
}

.schedule-option:has(input[type="radio"]:checked) {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.schedule-summary {
    margin-top: 24px;
    padding: 16px;
    background: rgba(34, 197, 94, 0.1);
    border-left: 4px solid #22c55e;
    border-radius: 6px;
}

.schedule-summary h3 {
    font-size: 14px;
    font-weight: 600;
    color: #f1f5f9;
    margin: 0 0 8px 0;
}

.schedule-summary p {
    font-size: 14px;
    color: #cbd5e1;
    margin: 0;
    line-height: 1.5;
}

.schedule-modal .modal-footer {
    padding: 20px 24px;
    border-top: 1px solid #334155;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.schedule-modal .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    border: none;
}

.schedule-modal .btn-secondary {
    background: #334155;
    color: #f1f5f9;
}

.schedule-modal .btn-secondary:hover {
    background: #475569;
}

.schedule-modal .btn-primary {
    background: #3b82f6;
    color: #ffffff;
}

.schedule-modal .btn-primary:hover {
    background: #2563eb;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.schedule-modal .btn-primary i {
    font-size: 14px;
}

/* Form styling */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #f1f5f9;
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    background: #0f172a;
    border: 2px solid #334155;
    border-radius: 6px;
    color: #f1f5f9;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #94a3b8;
}

