/* Step Ahead IELTS — Student Home Dashboard */

#home-dashboard-panel {
    margin: 0 0 1.25rem;
    width: 100%;
}

.hd-card {
    background: #fff;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.hd-header {
    background: linear-gradient(135deg, #6d28d9, #0891b2);
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    padding: 0.85rem 1.25rem;
    letter-spacing: 0.02em;
}

.hd-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    padding: 1rem 1.25rem 0.25rem;
}

.hd-stat-card {
    text-align: center;
    padding: 0.9rem 0.5rem;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 10px;
    background: var(--light, #f8fafc);
}

.hd-stat-icon {
    font-size: 1.3rem;
    display: block;
    margin-bottom: 0.3rem;
}

.hd-stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary, #6d28d9);
    line-height: 1.1;
}

.hd-stat-label {
    font-size: 0.72rem;
    color: var(--dark-muted, #64748b);
    font-weight: 600;
    margin-top: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hd-skills {
    padding: 0.9rem 1.25rem 0.25rem;
}

.hd-skill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hd-skill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid var(--border, #e2e8f0);
    background: var(--light, #f8fafc);
    border-radius: 20px;
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
    margin: 0 0.5rem 0.5rem 0;
}

.hd-skill-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
    flex: 0 0 auto;
}

.hd-skill-label {
    color: var(--dark-muted, #64748b);
    font-weight: 600;
}

.hd-skill-band {
    color: var(--dark, #0f172a);
    font-size: 0.85rem;
}

.hd-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    padding: 1rem 1.25rem 1.25rem;
}

@media (max-width: 720px) {
    .hd-body { grid-template-columns: 1fr; }
    .hd-stats { grid-template-columns: 1fr; }
}

.hd-section-title {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--dark, #0f172a);
    margin-bottom: 0.6rem;
}

.hd-chart {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    height: 130px;
    padding: 0.5rem 0.25rem 0;
    border-bottom: 1px solid var(--border, #e2e8f0);
}

.hd-bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    gap: 0.25rem;
    min-width: 0;
}

.hd-bar {
    width: 100%;
    max-width: 44px;
    border-radius: 6px 6px 0 0;
    min-height: 4px;
    transition: height 0.3s ease;
}

.hd-bar-band {
    font-size: 0.7rem;
    font-weight: 700;
}

.hd-results {
    min-width: 0;
}

.hd-result-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.65rem;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    background: var(--light, #f8fafc);
}

.hd-result-icon {
    font-size: 1.1rem;
}

.hd-result-info {
    flex: 1;
    min-width: 0;
}

.hd-result-title {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--dark, #0f172a);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hd-result-meta {
    font-size: 0.72rem;
    color: var(--dark-muted, #64748b);
}

.hd-result-band {
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    white-space: nowrap;
}

.hd-loading,
.hd-empty {
    text-align: center;
    padding: 1.6rem 1.25rem;
    background: #fff;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 12px;
    color: var(--dark, #0f172a);
}

.hd-empty-icon {
    font-size: 2rem;
    margin-bottom: 0.4rem;
}

.hd-retry {
    margin-top: 0.6rem;
    background: var(--primary, #6d28d9);
    color: #fff;
    border: none;
    padding: 0.45rem 1.1rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
}
