/* XakniEGE Dashboard 1.2 */

.xp-teacher-dashboard {
    max-width: 1500px;
    margin: 0 auto;
}

.xp-dashboard-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    min-height: 210px;
    padding: 36px 42px;
    margin-bottom: 28px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 91% 17%, rgba(255,255,255,.2), transparent 26%),
        linear-gradient(135deg, #1d4ed8 0%, #4338ca 55%, #6d28d9 100%);
    border-radius: 24px;
    box-shadow: 0 18px 42px rgba(37,99,235,.22);
}

.xp-dashboard-hero::after {
    position: absolute;
    right: -62px;
    bottom: -96px;
    width: 250px;
    height: 250px;
    content: "";
    background: rgba(255,255,255,.08);
    border-radius: 50%;
}

.xp-dashboard-hero__content,
.xp-dashboard-hero__actions {
    position: relative;
    z-index: 1;
}

.xp-dashboard-hero__content {
    min-width: 0;
}

.xp-dashboard-hero__actions {
    flex: 0 0 auto;
}

.xp-dashboard-hero__eyebrow,
.xp-dashboard-section__kicker {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.xp-dashboard-hero__eyebrow {
    color: rgba(255,255,255,.74);
}

.xp-dashboard-hero__title {
    margin: 0 0 8px;
    font-size: clamp(28px,4vw,40px);
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
}

.xp-dashboard-hero__date {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
    color: rgba(255,255,255,.93);
}

.xp-dashboard-hero__text {
    max-width: 680px;
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255,255,255,.78);
}

.xp-dashboard-primary-action,
.xp-dashboard-primary-action:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 210px;
    min-height: 52px;
    padding: 13px 24px;
    color: #1d4ed8 !important;
    text-decoration: none !important;
    background: #fff !important;
    border: 1px solid #fff !important;
    border-radius: 14px;
    box-shadow: 0 12px 27px rgba(15,23,42,.2);
    font-size: 15px;
    font-weight: 800;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.xp-dashboard-primary-action:hover,
.xp-dashboard-primary-action:focus {
    color: #1e3a8a !important;
    background: #eff6ff !important;
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(15,23,42,.24);
}

.xp-dashboard-primary-action .fa {
    font-size: 16px !important;
    line-height: 1 !important;
}

.xp-dashboard-section {
    margin-bottom: 30px;
}

.xp-dashboard-section__heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 17px;
}

.xp-dashboard-section__kicker {
    color: #2563eb;
}

.xp-dashboard-section__title,
.xp-dashboard-panel__title {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.25;
    color: #172033;
}

.xp-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 18px;
}

.xp-dashboard-stat {
    display: flex;
    align-items: flex-start;
    gap: 17px;
    min-height: 150px;
    padding: 24px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 9px 25px rgba(15,23,42,.055);
    transition: transform .2s ease, box-shadow .2s ease;
}

.xp-dashboard-stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 34px rgba(15,23,42,.09);
}

.xp-dashboard-stat__icon {
    display: grid;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 14px;
}

.xp-dashboard-stat__icon .fa,
.xp-dashboard-empty__icon .fa,
.xp-dashboard-group-card__icon .fa {
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    font-size: 19px !important;
    line-height: 1 !important;
}

.xp-dashboard-stat--blue .xp-dashboard-stat__icon {
    color: #1d4ed8;
    background: #dbeafe;
}

.xp-dashboard-stat--green .xp-dashboard-stat__icon {
    color: #047857;
    background: #d1fae5;
}

.xp-dashboard-stat--violet .xp-dashboard-stat__icon {
    color: #6d28d9;
    background: #ede9fe;
}

.xp-dashboard-stat--orange .xp-dashboard-stat__icon {
    color: #c2410c;
    background: #ffedd5;
}

.xp-dashboard-stat__value {
    margin-bottom: 6px;
    font-size: 34px;
    font-weight: 850;
    line-height: 1;
    color: #0f172a;
}

.xp-dashboard-stat__label {
    margin-bottom: 4px;
    font-size: 15px;
    font-weight: 750;
    color: #1e293b;
}

.xp-dashboard-stat__hint {
    font-size: 13px;
    line-height: 1.45;
    color: #94a3b8;
}

.xp-dashboard-focus-grid {
    display: grid;
    grid-template-columns: minmax(0,1.12fr) minmax(0,.88fr);
    gap: 20px;
    margin-bottom: 30px;
}

.xp-dashboard-panel {
    min-width: 0;
    padding: 26px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 9px 25px rgba(15,23,42,.05);
}

.xp-dashboard-panel--lesson {
    background: linear-gradient(135deg,rgba(239,246,255,.9),rgba(255,255,255,.98));
}

.xp-dashboard-panel--attention {
    background: linear-gradient(135deg,rgba(255,251,235,.85),rgba(255,255,255,.98));
}

.xp-dashboard-panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.xp-dashboard-panel__badge {
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 750;
    color: #1d4ed8;
    background: #dbeafe;
    border-radius: 999px;
}

.xp-next-lesson__time {
    margin-bottom: 10px;
    font-size: 28px;
    font-weight: 850;
    line-height: 1.15;
    color: #1d4ed8;
}

.xp-next-lesson__group {
    margin-bottom: 5px;
    font-size: 22px;
    font-weight: 800;
    color: #172033;
}

.xp-next-lesson__course {
    margin-bottom: 22px;
    color: #64748b;
}

.xp-dashboard-secondary-action,
.xp-dashboard-secondary-action:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 16px;
    color: #1d4ed8 !important;
    text-decoration: none !important;
    background: #fff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 750;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.xp-dashboard-secondary-action:hover,
.xp-dashboard-secondary-action:focus {
    background: #eff6ff;
    border-color: #93c5fd;
    transform: translateY(-1px);
}

.xp-dashboard-secondary-action .fa {
    font-size: 13px !important;
    line-height: 1 !important;
}

.xp-attention-list {
    display: grid;
    gap: 12px;
}

.xp-attention-item,
.xp-dashboard-ready {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 14px 15px;
    background: rgba(255,255,255,.82);
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}

.xp-attention-item__marker {
    flex: 0 0 10px;
    width: 10px;
    height: 10px;
    margin-top: 6px;
    border-radius: 50%;
}

.xp-attention-item__marker--violet { background: #7c3aed; }
.xp-attention-item__marker--orange { background: #ea580c; }
.xp-attention-item__marker--blue { background: #2563eb; }

.xp-attention-item strong,
.xp-dashboard-ready strong {
    display: block;
    margin-bottom: 3px;
    font-size: 14px;
    color: #1e293b;
}

.xp-attention-item span,
.xp-dashboard-ready span {
    display: block;
    font-size: 13px;
    line-height: 1.45;
    color: #64748b;
}

.xp-dashboard-ready__check {
    display: grid !important;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    place-items: center;
    margin-top: 0;
    font-size: 14px !important;
    font-weight: 850;
    color: #047857 !important;
    background: #d1fae5;
    border-radius: 50%;
}

.xp-dashboard-groups {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 20px;
}

.xp-dashboard-group-card {
    position: relative;
    display: flex;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 9px 25px rgba(15,23,42,.055);
    transition: transform .2s ease, box-shadow .2s ease;
}

.xp-dashboard-group-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(15,23,42,.1);
}

.xp-dashboard-group-card__accent {
    height: 5px;
    background: linear-gradient(90deg,#2563eb,#7c3aed);
}

.xp-dashboard-group-card__body {
    flex: 1;
    padding: 22px;
}

.xp-dashboard-group-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.xp-dashboard-group-card__identity {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}

.xp-dashboard-group-card__icon {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #1d4ed8;
    background: #eff6ff;
    border-radius: 13px;
}

.xp-dashboard-group-card__label {
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: #94a3b8;
}

.xp-dashboard-group-card__title {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.3;
    color: #172033;
}

.xp-dashboard-group-card__count {
    display: grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    place-items: center;
    font-weight: 800;
    color: #1d4ed8;
    background: #eff6ff;
    border-radius: 12px;
}

.xp-dashboard-group-card__course {
    margin: 13px 0 18px 54px;
    font-size: 14px;
    line-height: 1.5;
    color: #64748b;
}

.xp-dashboard-group-card__meta {
    display: grid;
    gap: 12px;
    padding-top: 17px;
    border-top: 1px solid #eef2f7;
}

.xp-dashboard-group-card__meta div {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.xp-dashboard-group-card__meta span {
    font-size: 13px;
    color: #94a3b8;
}

.xp-dashboard-group-card__meta strong {
    max-width: 60%;
    font-size: 13px;
    font-weight: 700;
    text-align: right;
    color: #334155;
}

.xp-dashboard-group-card__footer {
    padding: 0 22px 22px;
}

.xp-dashboard-group-card__button,
.xp-dashboard-group-card__button:visited {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    padding: 10px 14px;
    color: #1d4ed8 !important;
    text-decoration: none !important;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
}

.xp-dashboard-group-card__button:hover,
.xp-dashboard-group-card__button:focus {
    color: #1e3a8a !important;
    background: #dbeafe;
}

.xp-dashboard-group-card__button .fa {
    font-size: 13px !important;
    line-height: 1 !important;
}

.xp-dashboard-empty {
    padding: 26px;
    text-align: center;
    background: rgba(255,255,255,.76);
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
}

.xp-dashboard-empty--large {
    padding: 46px 28px;
    background: #fff;
}

.xp-dashboard-empty__icon {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    margin: 0 auto 14px;
    color: #2563eb;
    background: #dbeafe;
    border-radius: 16px;
}

.xp-dashboard-empty h4 {
    margin: 0 0 7px;
    font-size: 19px;
    font-weight: 800;
    color: #172033;
}

.xp-dashboard-empty p {
    max-width: 560px;
    margin: 0 auto 18px;
    line-height: 1.55;
    color: #64748b;
}

.xp-dashboard-primary-inline-action,
.xp-dashboard-primary-inline-action:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    color: #fff !important;
    text-decoration: none !important;
    background: #2563eb;
    border-radius: 12px;
    font-weight: 800;
}

.xp-dashboard-primary-inline-action:hover,
.xp-dashboard-primary-inline-action:focus {
    color: #fff !important;
    background: #1d4ed8;
}

@media (max-width:1199.98px) {
    .xp-dashboard-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .xp-dashboard-groups { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width:991.98px) {
    .xp-dashboard-focus-grid { grid-template-columns: minmax(0,1fr); }

    .xp-dashboard-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .xp-dashboard-hero__actions {
        width: 100%;
    }
}

@media (max-width:767.98px) {
    .xp-dashboard { padding: 18px; }

    .xp-dashboard-hero {
        min-height: 0;
        padding: 28px 24px;
        border-radius: 20px;
    }

    .xp-dashboard-stats,
    .xp-dashboard-groups {
        grid-template-columns: minmax(0,1fr);
    }

    .xp-dashboard-section__heading,
    .xp-dashboard-group-card__meta div {
        align-items: flex-start;
        flex-direction: column;
    }

    .xp-dashboard-group-card__meta strong {
        max-width: 100%;
        text-align: left;
    }

    .xp-dashboard-group-card__course {
        margin-left: 0;
    }

    .xp-dashboard-primary-action,
    .xp-dashboard-secondary-action {
        width: 100%;
    }
}
