@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap');

.wsm-wrapper {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    max-width: 100%;
}

/* ===== BP TAB PERCENTAGE ===== */
.wsm-bp-pct {
    font-size: 11px;
    font-weight: 600;
    color: #10b981;
    margin-left: 4px;
}

/* ===== HEADER / OVERALL ===== */
.wsm-header {
    margin-bottom: 28px;
}

.wsm-overall {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 28px;
    background: #1e293b;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
}

.wsm-overall-ring {
    position: relative;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.wsm-overall-ring svg {
    width: 80px;
    height: 80px;
    transform: rotate(-90deg);
}

.wsm-ring-bg {
    fill: none;
    stroke: rgba(255,255,255,0.06);
    stroke-width: 6;
}

.wsm-ring-fill {
    fill: none;
    stroke: url(#wsm-grad);
    stroke-width: 6;
    stroke-linecap: round;
    transition: stroke-dasharray 0.8s ease;
}

.wsm-category-card {
    border-left: 3px solid var(--wsm-color, #3b82f6);
}

.wsm-overall-pct {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    color: #10b981;
}

.wsm-overall-text h3 {
    font-size: 18px;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0 0 4px;
}

.wsm-overall-text p {
    font-size: 13px;
    color: #94a3b8;
    margin: 0;
}

/* ===== GRID ===== */
.wsm-grid {
    display: grid;
    gap: 20px;
}

/* ===== CATEGORY CARD ===== */
.wsm-category-card {
    background: #1e293b;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 20px 24px;
    transition: all 0.2s;
}

.wsm-category-card:hover {
    border-color: rgba(59,130,246,0.15);
}

.wsm-category-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.wsm-category-icon {
    position: relative;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.wsm-cat-ring {
    width: 48px;
    height: 48px;
    transform: rotate(-90deg);
}

.wsm-cat-ring .wsm-ring-bg {
    stroke-width: 4;
}

.wsm-cat-ring .wsm-ring-fill {
    stroke-width: 4;
}

.wsm-category-icon .wsm-cat-pct {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
    color: #e2e8f0;
}

.wsm-category-info {
    flex: 1;
}

.wsm-category-name {
    font-size: 15px;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0 0 2px;
}

.wsm-category-stat {
    font-size: 12px;
    color: #64748b;
}

/* ===== PROGRESS BAR ===== */
.wsm-category-bar {
    margin-bottom: 12px;
}

.wsm-bar {
    height: 5px;
    background: rgba(255,255,255,0.06);
    border-radius: 10px;
    overflow: hidden;
}

.wsm-bar-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.6s ease;
}

/* ===== COURSE LIST ===== */
.wsm-category-courses {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wsm-course-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.15s;
}

.wsm-course-item:hover {
    background: rgba(255,255,255,0.03);
}

.wsm-course-done {
    background: rgba(16,185,129,0.04);
}

.wsm-course-icon {
    font-size: 12px;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.wsm-course-done .wsm-course-icon { color: #10b981; }
.wsm-course-pending .wsm-course-icon { color: #64748b; }

.wsm-course-title {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: #e2e8f0;
}

.wsm-course-pct {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    flex-shrink: 0;
}

.wsm-course-done .wsm-course-pct { color: #10b981; }

/* ===== EMPTY ===== */
.wsm-empty {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
    font-size: 15px;
    background: rgba(255,255,255,0.02);
    border-radius: 12px;
    border: 1px dashed rgba(255,255,255,0.08);
}

/* ===== DASHBOARD WIDGET ===== */
.wsm-dash {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #1e293b;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 28px 32px;
}

.wsm-dash .wsm-ring-bg {
    stroke: rgba(255,255,255,0.08);
    stroke-width: 6;
}

.wsm-dash-welcome h2 {
    font-size: 26px;
    font-weight: 800;
    color: #f1f5f9;
    margin: 0 0 4px;
    letter-spacing: -0.3px;
}

.wsm-dash-tagline {
    font-size: 14px;
    color: #94a3b8;
    margin: 0 0 24px;
}

.wsm-dash-main {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 20px;
}

.wsm-dash-overall {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wsm-dash-ring {
    position: relative;
    width: 76px;
    height: 76px;
    flex-shrink: 0;
}

.wsm-dash-ring svg {
    width: 76px;
    height: 76px;
    transform: rotate(-90deg);
}

.wsm-dash-ring .wsm-ring-bg {
    stroke-width: 6;
}

.wsm-dash-ring .wsm-ring-fill {
    stroke: var(--wsm-color, #3b82f6);
    stroke-width: 6;
}

.wsm-dash-pct {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 800;
    color: #f1f5f9;
}

.wsm-dash-overall-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wsm-dash-label {
    font-size: 14px;
    font-weight: 700;
    color: #e2e8f0;
}

.wsm-dash-sub {
    font-size: 11px;
    color: #94a3b8;
}

/* ===== CATEGORY CIRCLES ===== */
.wsm-dash-categories {
    display: flex;
    gap: 12px;
    flex-wrap: nowrap;
    align-items: center;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

.wsm-dash-cat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    min-width: 46px;
    text-align: center;
    flex-shrink: 0;
}

.wsm-dash-cat-ring {
    position: relative;
    width: 42px;
    height: 42px;
}

.wsm-dash-cat-ring svg {
    width: 42px;
    height: 42px;
    transform: rotate(-90deg);
}

.wsm-dash-cat-ring .wsm-ring-bg {
    stroke-width: 4;
}

.wsm-dash-cat-ring .wsm-ring-fill {
    stroke: var(--wsm-color, #3b82f6);
    stroke-width: 4;
}

.wsm-dash-cat-pct {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 800;
    color: #e2e8f0;
}

.wsm-dash-cat-name {
    font-size: 9px;
    font-weight: 600;
    color: #94a3b8;
    max-width: 46px;
    line-height: 1.15;
}

/* ===== STATS ===== */
.wsm-dash-stats {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.wsm-dash-stat {
    flex: 1;
    min-width: 140px;
    padding: 14px 18px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wsm-dash-stat-value {
    font-size: 22px;
    font-weight: 800;
    color: #f1f5f9;
}

.wsm-dash-stat-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #64748b;
}

/* ===== LOGIN STATE ===== */
.wsm-dash-login {
    text-align: center;
    padding: 40px;
}

.wsm-dash-login .wsm-dash-welcome h2 {
    margin-bottom: 8px;
}

.wsm-dash-btn {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 28px;
    background: #3b82f6;
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
}

.wsm-dash-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

/* ===== DASHBOARD RESPONSIVE ===== */
@media (max-width: 768px) {
    .wsm-dash {
        padding: 20px;
    }
    .wsm-dash-main {
        flex-direction: column;
        align-items: flex-start;
    }
    .wsm-dash-categories {
        width: 100%;
        justify-content: center;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .wsm-overall {
        flex-direction: column;
        text-align: center;
    }
    .wsm-category-head {
        flex-direction: column;
        text-align: center;
    }
    .wsm-category-icon {
        margin: 0 auto;
    }
}
