/* Content Schedule Styles */

/* Modal Dialog */
.content-schedule-dialog {
    max-width: 650px;
    width: 100%;
}

.content-schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.schedule-task-card {
    position: relative;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.2s ease;
}

.schedule-task-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.schedule-status-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.schedule-status-badge.active {
    background: #dcfce7;
    color: #166534;
}

.schedule-status-badge.inactive {
    background: #fee2e2;
    color: #991b1b;
}

.schedule-card-header {
    margin-bottom: 1rem;
}

.schedule-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 0.5rem 0;
    padding-right: 100px;
}

.schedule-card-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.schedule-type-badge,
.schedule-feature-badge {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    background: var(--color-background);
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border);
}

.schedule-feature-badge {
    background: #eff6ff;
    color: #1e40af;
    border-color: #bfdbfe;
}

.schedule-feature-badge.draft {
    background: #fef3c7;
    color: #92400e;
    border-color: #fde68a;
}

.schedule-card-body {
    margin-bottom: 1rem;
}

.schedule-prompt {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin: 0 0 1rem 0;
}

.schedule-timing {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.schedule-timing-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--color-text);
}

.schedule-timing-item.secondary {
    color: var(--color-text-secondary);
}

.schedule-timing-item svg {
    flex-shrink: 0;
}

.schedule-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.schedule-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    border: 1px solid var(--color-border);
    background: var(--color-background);
    color: var(--color-text);
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.schedule-action-btn:hover {
    background: var(--color-surface);
    border-color: var(--color-primary);
}

.schedule-action-btn.execute {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.schedule-action-btn.execute:hover {
    background: #0056b3;
    border-color: #0056b3;
}

.schedule-action-btn.delete {
    color: #dc2626;
}

.schedule-action-btn.delete:hover {
    background: #fee2e2;
    border-color: #dc2626;
}

.schedule-action-btn.pause {
    color: #ea580c;
}

.schedule-action-btn.pause:hover {
    background: #fff7ed;
    border-color: #ea580c;
}

.schedule-action-btn.play {
    color: #059669;
}

.schedule-action-btn.play:hover {
    background: #d1fae5;
    border-color: #059669;
}

.schedule-action-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Schedule Editor Modal */
.schedule-editor-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.schedule-editor-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
}

.schedule-editor-input,
.schedule-editor-textarea,
.schedule-editor-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 0.9375rem;
    background: var(--color-background);
    color: var(--color-text);
    transition: all 0.15s ease;
}

.schedule-editor-input:focus,
.schedule-editor-textarea:focus,
.schedule-editor-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.schedule-editor-textarea {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

.schedule-editor-hint {
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
    margin-top: 0.25rem;
}

.schedule-editor-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 8px;
}

.schedule-editor-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.schedule-editor-checkbox label {
    flex: 1;
    cursor: pointer;
    font-size: 0.9375rem;
    color: var(--color-text);
}

.schedule-days-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.schedule-day-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 6px;
}

.schedule-day-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.schedule-day-checkbox label {
    flex: 1;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--color-text);
}

.schedule-editor-actions {
    display: flex;
    gap: 0.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.schedule-editor-actions button {
    flex: 1;
}

/* Empty state */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.empty-state svg {
    color: var(--color-text-secondary);
    opacity: 0.5;
    margin-bottom: 1rem;
}

.empty-state p {
    font-size: 1rem;
    color: var(--color-text-secondary);
    margin: 0 0 1.5rem 0;
}

@media (max-width: 768px) {
    .content-schedule-grid {
        grid-template-columns: 1fr;
    }

    .schedule-card-actions {
        flex-direction: column;
    }

    .schedule-action-btn {
        width: 100%;
        justify-content: center;
    }
}
