: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);
}

.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: #666;
    font-weight: 400;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    transition: all var(--transition-fast);

    &.active {
        font-weight: 600;
        border-color: #818CF8;
        background: #EEF2FF;
        color: #4338CA;
    }

    &.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: #4338CA;
    background: #EEF2FF;
}

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

.goal-description {
    font-size: 15px;
    line-height: 1.55;
    margin: 0;
    color: #333;
}

.edit-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    flex-shrink: 0;
    display: flex;
    align-items: center;

    &:hover svg {
        stroke: #555;
    }
}

/* ─── 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: #4338CA;
        border-bottom-color: #6366F1;
    }
}

/* ─── 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: #4338CA;
}

.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;
}

/* ─── 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 #818CF8;
    background: #EEF2FF;
}

.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: #333;
}

/* ─── 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);
    }
}
