:root{
    --bar-height: 12px;
    --bar-radius: 8px;
    --tick-alpha: .12;
    --frame-border: rgba(0,0,0,.08);
    --frame-bg: #f6f8fa;
}
.user-first-container {
    display:flex;
    gap:0.5em;
}
.dashboard-container {
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin:5px 0;
    padding:3px;
}
.dashboard-container.user-container {
    flex: 0 0 38%; 
    display:flex;
    flex-direction: row;
}
.dashboard-container.core-skills-container {
    flex: 1; 
}
.core-skills-chart-wrapper {
    width: 95%;
    position: relative;
    align-items: center;
}
@media (max-width: 768px) {
    .dashboard-container.user-container {
        flex-direction:column;
    }
    .chart-wrapper {
        height: 180px;
    }

}

.student-container {
    margin: 20px 20px 40px 20px;
    padding: 15px;
    background-color: #e6f7ff;
    border-left: 4px solid #1890ff;
    border-radius: 4px;
}

.class-container {
    margin-bottom: 15px;
    padding: 15px;
    background-color: #ffffff;
    border-left: 4px solid #52c41a;
    border-radius: 4px;
}

.course-container {
    margin-bottom: 10px;
    padding: 10px;
    background-color: #f6ffed;
    border-left: 4px solid #faad14;
    border-radius: 4px;
}

.lessons-container {
    display: flex;
    flex-wrap: wrap;
    margin-top: 10px;
    gap: 10px;

}

.lesson-button {
    padding: 10px 15px;
    background-color: #fff7e6;
    border: 1px solid #f5222d;
    border-radius: 5px;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lesson-button:hover {
    background-color: #fde3cf;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px); 
}

.lesson-button:active {
    background-color: #fab1a0;
    transform: translateY(0); 
}

h3 ,h4{
    margin: 5px 0;
}

h5 {
    margin: 0;
}

p {
    margin: 0;
}


@media (max-width: 768px) {
    .student-container {
        margin: 1vw;
    }

    .class-container {    
        padding: 8px;
    }

    .course-container {   
        padding: 6px;
    }
    .lessons-container {
        justify-content: space-between;
    }
    .lesson-button {
        max-width:35%
    }

}

.test-scroll-wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
    padding: 1vw;
    overflow-x: visible;
}
.test-scroll-wrapper {
    flex-direction: column;
    overflow-x: none;
    overflow-x: visible;
}
.test-card {
    display:flex;
    flex-direction: row;
    justify-content:space-between;
    flex: 1 0 auto;
    flex-wrap: wrap;
    min-width: 100px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 12px 16px;
    text-decoration: none;
    color: inherit;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.test-card:hover {
    transform: translateY(-4px);
    background: #f0f0f0;
}

.test-title {
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

.test-score {
    display: flex;
    align-items: flex-start; 
    justify-content: flex-start; 
    text-align: right;
    font-size: 0.8rem;
    font-weight: 600;
    color: #007bff;
    
}

.test-meta {
    font-size: 0.6rem;
    color: #666;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
@media (max-width: 768px) {
    .test-scroll-wrapper {
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-behavior: smooth;
        scrollbar-width: none;
    }

    .test-scroll-wrapper::-webkit-scrollbar {
        display: none;
    }

    .test-card {
        flex-direction: column;
        flex: 0 0 auto;
        padding: 8px 10px;
        max-width: 90%;
    }
}

  
  
.test-result-progress-frame{
    position: relative;
    width: var(--frame-w, 100%);
    height: var(--bar-height);
    border-radius: var(--bar-radius);
    background: var(--frame-bg);
    border: 1px solid var(--frame-border);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8), inset 0 -1px 0 rgba(0,0,0,.04);
    overflow: clip; 
}
  
.test-result-progress-grid{
    position: absolute; inset:0;
    background: linear-gradient(#0000,#0000); 
    mask: repeating-linear-gradient(
        to right,
        #000 0 1px,
        transparent 1px calc((100% / var(--segments, 1)))
    );
    -webkit-mask: repeating-linear-gradient(
        to right,
        #000 0 1px,
        transparent 1px calc(100%/var(--segments,1))
    );
    
    background: rgba(0,0,0,var(--tick-alpha));
    pointer-events: none;
}
  
.test-result-progress-fill{
    height: 100%;
    border-radius: var(--bar-radius);
    transition: width .5s cubic-bezier(.22,.61,.36,1);
    position: relative;
}

.test-result-progress-fill::after{
    content:"";
    position:absolute; right:-6px; top:0; bottom:0;
    width:12px; 
    background: radial-gradient(closest-side, rgba(0,0,0,.06), transparent 70%);
    pointer-events:none;
}
  
@media (prefers-reduced-motion: reduce){
    .test-result-progress-fill{ transition: none; }
}
.practice-hint-badge{
    font-size:.78rem; letter-spacing:.2px; opacity:.75;
    padding:3px 8px; border-radius:999px; border:1px solid #cfd8e3;
    background:#f8fafc; 
    white-space:nowrap;
}
    