:host {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
}

/* ─── Empty State ─── */
.empty-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-text {
    color: var(--text-dim);
    font-size: 14px;
}

/* ─── Student Header ─── */
.student-header {
    padding: 20px 28px 16px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-surface);
    flex-shrink: 0;
}

.student-info {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.student-name {
    font-size: 22px;
    font-weight: 600;
    margin: 0;
}

.student-iep {
    font-size: 13px;
    color: var(--text-faint);
}

.delete-student-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    align-self: center;
    padding: 6px 12px;
    border: 1px solid var(--border-muted);
    background: none;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: color var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);

    &:hover {
        color: var(--danger);
        background: var(--danger-bg);
        border-color: var(--danger);
    }
}

.goal-tabs {
    display: flex;
    gap: 4px;
    margin-top: 14px;
    flex-wrap: wrap;
    align-items: center;
}

.goal-tab {
    padding: 6px 14px;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    transition: all var(--transition-fast);

    &.active {
        font-weight: 600;
        border-color: var(--accent-indigo-border);
        background: var(--accent-indigo-bg);
        color: var(--accent-indigo);
    }

    &.add-goal {
        border: 1.5px dashed var(--border-muted);
        background: none;
        color: var(--text-faint);
    }
}

/* ─── Workspace Body ─── */
.workspace-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px 28px;
}

/* ─── Goal Card ─── */
.goal-card {
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    padding: 20px 24px;
    margin-bottom: 24px;
}

.goal-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.goal-badge {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    color: var(--accent-indigo);
    background: var(--accent-indigo-bg);
}

.goal-due {
    font-size: 12px;
    color: var(--text-faint);
    margin-left: auto;
}

.delete-goal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border: none;
    background: none;
    color: var(--text-faint);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast), background var(--transition-fast);

    &:hover {
        color: var(--danger);
        background: var(--danger-bg);
    }
}

.goal-description {
    font-size: 15px;
    line-height: 1.55;
    margin: 0;
    color: var(--text-primary);
}

/* ─── Sub Tabs ─── */
.sub-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-bottom: 1.5px solid var(--border-color);
}

.sub-tab {
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 400;
    color: var(--text-muted);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    margin-bottom: -1.5px;
    font-family: inherit;
    transition: color var(--transition-fast);

    &.active {
        font-weight: 600;
        color: var(--accent-indigo);
        border-bottom-color: var(--accent-indigo-light);
    }
}

/* ─── Tab Content ─── */
.tab-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ─── Benchmark Cards ─── */
.benchmark-card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 16px 20px;
}

.benchmark-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.benchmark-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--accent-indigo);
}

.benchmark-events {
    font-size: 11px;
    color: var(--text-dim);
    margin-left: auto;
}

.benchmark-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.delete-benchmark-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    padding: 4px;
    border: none;
    background: none;
    color: var(--text-faint);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast), background var(--transition-fast);

    &:hover {
        color: var(--danger);
        background: var(--danger-bg);
    }
}

/* ─── Progress Timeline ─── */
.timeline {
    position: relative;
    padding-left: 20px;
}

.timeline-line {
    position: absolute;
    left: 5px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--border-color);
    border-radius: 1px;
}

.timeline-item {
    position: relative;
    margin-bottom: 16px;
}

.timeline-dot {
    position: absolute;
    left: -20px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--accent-indigo-border);
    background: var(--accent-indigo-bg);
}

.event-card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 14px 18px;
}

.event-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.event-date {
    font-size: 12px;
    color: var(--text-faint);
}

.event-content {
    font-size: 13px;
    line-height: 1.55;
    margin: 0;
    color: var(--text-primary);
}

.delete-event-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    padding: 4px;
    border: none;
    background: none;
    color: var(--text-faint);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast), background var(--transition-fast);

    &:hover {
        color: var(--danger);
        background: var(--danger-bg);
    }
}

.event-benchmarks {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.benchmark-tag {
    font-size: 11px;
    font-weight: 500;
    color: var(--accent-indigo);
    background: var(--accent-indigo-bg);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--accent-indigo-border-light);
}

/* ─── Add Buttons ─── */
.add-btn {
    padding: 12px;
    border-radius: var(--radius-lg);
    border: 1.5px dashed var(--border-muted);
    background: none;
    font-size: 13px;
    color: var(--text-faint);
    cursor: pointer;
    font-family: inherit;
    transition: border-color var(--transition-fast);
    width: 100%;

    &:hover {
        border-color: var(--text-muted);
        color: var(--text-muted);
    }
}
