/* ===== Schedules Page ===== */
.schedules-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.page-title {
    font-size: 2rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: var(--neutral-foreground-rest);
}

.page-subtitle {
    font-size: 0.95rem;
    color: var(--neutral-foreground-hint);
    margin: 0;
}

/* ===== Schedule Editor ===== */
.schedule-editor-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.editor-header {
    margin-bottom: 2rem;
}

.editor-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin: 1rem 0 0 0;
    color: var(--neutral-foreground-rest);
}

.editor-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.editor-section {
    background: var(--neutral-layer-2);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid var(--neutral-stroke-rest);
}

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

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: var(--neutral-foreground-rest);
}

.form-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    color: var(--neutral-foreground-rest);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group:last-child {
    margin-bottom: 0;
}

.empty-activities {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--neutral-foreground-hint);
}

.empty-activities .empty-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.activities-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-card {
    background: var(--neutral-layer-1);
    border-radius: 6px;
    padding: 1rem;
    border: 1px solid var(--neutral-stroke-rest);
}

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

.activity-number {
    font-weight: 600;
    color: var(--accent-foreground-rest);
    font-size: 1.1rem;
}

.activity-fields {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.editor-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding-top: 1rem;
}

/* ===== Template List ===== */
.schedule-template-list {
    padding: 1rem 0;
}

.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.template-card {
    background: var(--neutral-layer-2);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid var(--neutral-stroke-rest);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.template-card:hover {
    border-color: var(--neutral-stroke-hover);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.template-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    color: var(--neutral-foreground-rest);
}

.template-card-actions {
    display: flex;
    gap: 0.25rem;
}

.template-card-body {
    color: var(--neutral-foreground-hint);
}

.template-description {
    margin: 0;
    line-height: 1.5;
}

.empty-templates {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--neutral-foreground-hint);
}

/* ===== Template Card Meta ===== */
.template-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.template-activity-count {
    font-size: 0.85rem;
    color: var(--neutral-foreground-hint);
}

.template-date {
    font-size: 0.8rem;
    color: var(--neutral-foreground-hint);
    opacity: 0.7;
}

/* ===== Delete Confirmation Dialog ===== */
.delete-confirm-dialog {
    background: var(--neutral-layer-floating);
    border-radius: 12px;
    padding: 2rem;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.delete-confirm-dialog h3 {
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--neutral-foreground-rest);
}

.delete-confirm-dialog p {
    margin: 0 0 1.5rem 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--neutral-foreground-hint);
}

.dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}
