/* ============================================
   Torah Tracker — plan
   Phase 11.5C: Split from app.css
   ============================================ */

/* ============================================
   Plan View Styles
   ============================================ */

.plan-header {
    padding: 20px 0 16px;
}

.plan-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.plan-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 4px 0 0;
}

.plan-summary-bar {
    background: var(--bg-card);
    border-radius: 12px;
    height: 36px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plan-summary-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-green));
    opacity: 0.2;
    transition: width 0.5s ease;
    width: 0;
    border-radius: 12px;
}

.plan-summary-text {
    position: relative;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.plan-list {
    min-height: 60px;
    margin-bottom: 16px;
}

.plan-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 12px;
    background: var(--bg-card);
    border-radius: 14px;
    margin-bottom: 8px;
    border: 1px solid var(--border-subtle);
}

.plan-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.plan-item-info {
    flex: 1;
    min-width: 0;
}

.plan-item-title {
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.plan-item-meta {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.plan-item-actions {
    display: flex;
    gap: 4px;
}

.plan-action-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    font-size: 16px;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.plan-action-btn:hover,
.plan-action-btn:active {
    opacity: 1;
    background: var(--bg-elevated);
}

.plan-add-btn {
    width: 100%;
    padding: 16px;
    background: var(--bg-card);
    border: 2px dashed var(--border-subtle);
    border-radius: 14px;
    color: var(--accent-blue);
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.plan-add-icon {
    font-size: 20px;
    font-weight: 700;
}

/* Plan modal extras */
.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    margin-top: 14px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.plan-type-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.plan-type-btn {
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-elevated);
    color: var(--text-primary);
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
}

.plan-type-btn.active {
    background: var(--accent-blue);
    color: white;
    border-color: var(--accent-blue);
}

.plan-duration-row {
    display: flex;
    gap: 6px;
}

.plan-dur-btn {
    flex: 1;
    padding: 8px 4px;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-elevated);
    color: var(--text-primary);
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
}

.plan-dur-btn.active {
    background: var(--accent-blue);
    color: white;
    border-color: var(--accent-blue);
}


/* ---- Phase 11: Plan Type Toggle ---- */

.plan-type-toggle {
    display: flex;
    gap: 0;
    background: var(--bg-elevated, #1C1C1E);
    border-radius: 10px;
    padding: 3px;
    margin-bottom: 14px;
}

.plan-type-toggle-btn {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #8E8E93;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.plan-type-toggle-btn.active {
    background: var(--accent-blue, #007AFF);
    color: #fff;
}

/* ---- Phase 11: Day-of-Week Picker ---- */

.plan-day-picker {
    display: flex;
    gap: 6px;
    margin-bottom: 4px;
}

.plan-day-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--border-color, #2C2C2E);
    background: transparent;
    color: #8E8E93;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.plan-day-btn.active {
    background: var(--accent-blue, #007AFF);
    border-color: var(--accent-blue, #007AFF);
    color: #fff;
}

.plan-day-btn:active {
    transform: scale(0.9);
}

.plan-day-hint {
    font-size: 12px;
    color: #8E8E93;
    margin-bottom: 8px;
}

/* ---- Phase 11: Plan Item Days Badge ---- */

.plan-item-days {
    font-size: 11px;
    color: #8E8E93;
    margin-top: 2px;
}

.plan-item-chazara {
    border-left: 3px solid var(--accent-blue, #007AFF);
}

/* ---- Phase 11: Dashboard Chazara Schedule Items ---- */

.schedule-item-chazara {
    cursor: pointer;
    border-left: 3px solid var(--accent-blue, #007AFF);
}

.schedule-item-chazara:active {
    transform: scale(0.98);
    opacity: 0.8;
}

.schedule-checkbox-chazara {
    font-size: 16px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---- Phase 11: Chazara Checklist Modal ---- */

.chazara-checklist-content {
    max-width: 420px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.chazara-checklist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.chazara-checklist-header h3 {
    margin: 0;
}

.chazara-checklist-count {
    font-size: 13px;
    color: #8E8E93;
    font-weight: 600;
}

.chazara-select-all-row {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color, #2C2C2E);
    margin-bottom: 8px;
}

.chazara-select-all-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary, #fff);
    cursor: pointer;
}

.chazara-checklist-items {
    flex: 1;
    overflow-y: auto;
    max-height: 50vh;
    -webkit-overflow-scrolling: touch;
}

.chazara-group-header {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary, #fff);
    padding: 10px 0 6px 0;
    border-bottom: 1px solid var(--border-color, #2C2C2E);
    margin-bottom: 4px;
}

.chazara-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 4px;
    cursor: pointer;
    border-bottom: 1px solid var(--bg-elevated, #1C1C1E);
    transition: background 0.15s;
}

.chazara-item:active {
    background: var(--bg-elevated, #1C1C1E);
}

.chazara-item-check {
    margin-top: 2px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: var(--accent-blue, #007AFF);
}

.chazara-item-body {
    flex: 1;
    min-width: 0;
}

.chazara-item-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary, #fff);
}

.chazara-item-meta {
    font-size: 12px;
    color: #8E8E93;
    margin-top: 2px;
}

.chazara-item-overdue {
    color: #FF6B6B;
    font-weight: 600;
    margin-left: 4px;
}

.chazara-checklist-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color, #2C2C2E);
}

.chazara-checklist-actions .btn-primary {
    flex: 1;
}

.chazara-checklist-actions .btn-secondary {
    flex: 0;
    min-width: 70px;
}

/* ---- Phase 11: Print Chazara Sheet Button ---- */

.chazara-print-btn {
    display: block;
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border-radius: 12px;
    border: 1px dashed var(--border-color, #2C2C2E);
    background: transparent;
    color: var(--text-secondary, #8E8E93);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.chazara-print-btn:active {
    background: var(--bg-elevated, #1C1C1E);
    color: var(--text-primary, #fff);
}

/* Subject picker inside plan modal */
.plan-subject-picker {
    margin: 8px 0 4px;
    padding: 10px;
    border-radius: 10px;
    background: var(--bg-secondary, #f5f5f5);
}

.plan-subject-picker.hidden {
    display: none;
}

.plan-subject-picker .picker-group {
    margin-bottom: 6px;
}

.plan-subject-picker .picker-label {
    font-size: 12px;
}

