/*
 * dashboard.css — Student Analytics Dashboard (Exam Platform Pro)
 * Rebuilt to match modern design specification
 */

.ep-dashboard {
    font-family: var(--ep-font, "Inter", ui-sans-serif, system-ui, sans-serif);
    color: #475569;
    background-color: #f8fafc;
    padding: 1rem;
    box-sizing: border-box;
    /* Ensure no max-width constraints prevent edge-to-edge on mobile */
    min-height: 100vh;
}

@media (min-width: 768px) {
    .ep-dashboard {
        padding: 2rem;
    }
}

.ep-dashboard *,
.ep-dashboard *::before,
.ep-dashboard *::after {
    box-sizing: border-box;
}

/* Header */
.ep-dashboard__header {
    margin-bottom: 2rem;
    max-width: 1152px;
    margin-left: auto;
    margin-right: auto;
}

.ep-dashboard__title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.2;
}

.ep-dashboard__subtitle {
    font-size: 1rem;
    color: #64748b;
    margin: 0.25rem 0 0;
}

.ep-dashboard__content {
    max-width: 1152px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.ep-hidden {
    display: none !important;
}

/* Dashboard States */
.ep-dashboard__loading,
.ep-dashboard__error {
    display: flex;
    gap: 1rem;
    text-align: center;
    padding: 3rem;
    background: #fff;
    border-radius: 1rem;
    color: #64748b;
    max-width: 1152px;
    margin: 0 auto;
    justify-content: center;
    align-items: center;
}

.ep-dashboard__error {
    color: #f43f5e;
    background: #fff1f2;
    border: 1px solid #ffe4e6;
}

.ep-loading-spinner {
    display: block;
    width: 1.5rem;
    height: 1.5rem;
    border: 3px solid #e2e8f0;
    border-top-color: #745fa8;
    border-radius: 50%;
    animation: ep-spin 1s linear infinite;
}

@keyframes ep-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Stats Bar */
.ep-stats-bar__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .ep-stats-bar__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .ep-stats-bar__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.ep-stat-card {
    background: #fff;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.ep-stat-card__icon-wrap {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ep-stat-icon {
    width: 1.5rem;
    height: 1.5rem;
}

#ep-stat-questions .ep-stat-card__icon-wrap {
    background: rgba(116, 95, 168, 0.1);
    color: #745fa8;
}

#ep-stat-score.ep-stat-card--accent {
    border-color: #f1f5f9;
}

#ep-stat-score.ep-stat-card--accent::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(116, 95, 168, 0.05);
}

#ep-stat-score .ep-stat-card__icon-wrap {
    background: #745fa8;
    color: #fff;
    box-shadow: 0 4px 6px -1px rgba(116, 95, 168, 0.2), 0 2px 4px -2px rgba(116, 95, 168, 0.2);
    position: relative;
    z-index: 10;
}

#ep-stat-exams .ep-stat-card__icon-wrap {
    background: rgba(156, 202, 59, 0.2);
    color: #8ab534;
}

#ep-stat-streak .ep-stat-card__icon-wrap {
    background: #ffedd5;
    color: #f97316;
}

.ep-stat-card__text {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10;
}

.ep-stat-card__label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.ep-stat-card__value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1;
}

#ep-stat-score .ep-stat-card__value {
    color: #745fa8;
}

/* Main Grid Layout */
.ep-dashboard__main-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .ep-dashboard__main-grid {
        grid-template-columns: repeat(3, 1fr);
        align-items: start;
    }
}

.ep-dashboard__col-left {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    min-width: 0;
}

@media (min-width: 1024px) {
    .ep-dashboard__col-left {
        grid-column: span 2 / span 2;
    }
}

.ep-dashboard__col-right {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    min-width: 0;
}

/* Common Section Container */
.ep-chart-section,
.ep-activity-section,
.ep-focus-section {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
    padding: 1.5rem;
}

.ep-section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.ep-section-header_alt {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 1rem;
    margin-bottom: 0;
}

.ep-section-header--dark h2 {
    color: #fff;
}

.ep-section-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: #745fa8;
    flex-shrink: 0;
}

.ep-icon-danger {
    color: #f43f5e;
}

.ep-icon-success {
    color: #9cca3b;
}

.ep-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
}

/* Resume Section */
.ep-resume-section {
    margin-bottom: 0;
    min-width: 0;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.ep-resume-section>.ep-section-header {
    margin-bottom: 1rem;
}

.ep-resume-cards__list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

/* Single-column override — used when resume cards are in the narrow right column */
.ep-resume-cards__list--single {
    grid-template-columns: 1fr !important;
}

.ep-resume-card {
    background: #fff;
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
    box-sizing: border-box;
    width: 100%;
}

.ep-resume-card:hover {
    border-color: rgba(116, 95, 168, 0.3);
}

.ep-resume-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.ep-resume-card__type {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 0.375rem;
    margin-bottom: 0.5rem;
}

.ep-resume-card__title {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ep-resume-card__date {
    display: block;
    font-size: 0.875rem;
    color: #64748b;
}

.ep-resume-card__play {
    width: 2.5rem !important;
    height: 2.5rem !important;
    min-width: 2.5rem !important;
    min-height: 0 !important;
    max-height: 2.5rem !important;
    box-sizing: border-box !important;
    border-radius: 50% !important;
    background: rgba(116, 95, 168, 0.1) !important;
    color: #745fa8 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    transition: all 0.2s !important;
    overflow: hidden !important;
}

.ep-resume-card:hover .ep-resume-card__play {
    background: #745fa8;
    color: #fff;
}

.ep-icon-play {
    width: 1rem;
    height: 1rem;
    margin-left: 2px;
}

.ep-resume-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ep-resume-card__stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    font-weight: 500;
}

.ep-resume-card__progress {
    color: #334155;
}

.ep-resume-card__time {
    color: #64748b;
}

.ep-resume-card__track {
    width: 100%;
    background: #f1f5f9;
    border-radius: 9999px;
    height: 0.375rem;
    overflow: hidden;
}

.ep-resume-card__fill {
    height: 100%;
    background: #745fa8;
    border-radius: 9999px;
}

/* Charts */
.ep-dashboard__charts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .ep-dashboard__charts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.ep-bar-chart,
.ep-difficulty-bars {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.ep-bar-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ep-bar-row__header {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.ep-bar-row__label {
    font-weight: 500;
    color: #334155;
}

.ep-bar-row__pct {
    color: #64748b;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.ep-bar-row__track {
    width: 100%;
    background: #f1f5f9;
    border-radius: 9999px;
    height: 0.625rem;
    overflow: hidden;
}

.ep-bar-row__fill {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom bar colors */
.ep-bar--good {
    background: #9cca3b;
}

.ep-bar--mid {
    background: #fbbf24;
}

.ep-bar--low {
    background: #fb7185;
}

/* Focus Recommendations */
.ep-focus-section__intro {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0 0 1.5rem;
    line-height: 1.5;
}

.ep-focus-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ep-focus-item {
    background: rgba(254, 242, 242, 0.5);
    border: 1px solid #ffe4e6;
    border-radius: 0.75rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ep-focus-item__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ep-focus-item__name {
    font-weight: 500;
    color: #0f172a;
}

.ep-focus-item__score {
    background: #ffe4e6;
    color: #e11d48;
    font-weight: 700;
    font-size: 0.875rem;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    font-variant-numeric: tabular-nums;
}

.ep-focus-item__btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.625rem 1rem;
    background: #fff;
    border: 1px solid #fecdd3;
    color: #e11d48;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.ep-focus-item__btn:hover {
    background: #fff1f2;
}

/* Activity Table */
.ep-activity-section {
    padding: 0;
    overflow: hidden;
    min-width: 0;
}

.ep-activity-section .ep-section-header_alt {
    padding: 1.5rem;
}

.ep-activity-table-wrapper {
    overflow-x: auto;
    width: 100%;
    -webkit-overflow-scrolling: touch;
}

.ep-activity-table {
    width: 100%;
    text-align: left;
    border-collapse: collapse;
    font-size: 0.875rem;
    white-space: nowrap;
}

.ep-activity-table th {
    padding: 0.875rem 1.5rem;
    font-weight: 500;
    background: rgba(248, 250, 252, 0.5);
    color: #64748b;
}

.ep-activity-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.ep-activity-table tbody {
    border-top: 1px solid #f1f5f9;
}

/* Professional Responsive Mobile Table */
@media (max-width: 767px) {

    .ep-activity-table,
    .ep-activity-table tbody,
    .ep-activity-table tr,
    .ep-activity-table td {
        display: block;
        width: 100%;
    }

    .ep-activity-table thead {
        display: none;
    }

    .ep-activity-tr {
        padding: 1rem;
        background: #ffffff;
        border-bottom: 8px solid #f8fafc;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .ep-activity-tr:last-child {
        border-bottom: none;
    }

    .ep-activity-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0 !important;
        border-bottom: none !important;
        white-space: normal;
        text-align: right;
    }

    .ep-activity-table td::before {
        font-weight: 500;
        color: #64748b;
        font-size: 0.875rem;
        text-align: left;
        padding-right: 1rem;
    }

    .ep-activity-table td:nth-child(1)::before {
        content: "Exam";
    }

    .ep-activity-table td:nth-child(2)::before {
        content: "Score";
    }

    .ep-activity-table td:nth-child(3)::before {
        content: "Result";
    }

    .ep-activity-table td:nth-child(4)::before {
        content: "Date";
    }

    .ep-activity-table td:nth-child(5)::before {
        display: none;
    }

    .ep-activity-exam {
        text-align: right;
        max-width: 60%;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .ep-activity-table td:nth-child(5) {
        margin-top: 0.5rem;
        padding-top: 0.75rem !important;
        border-top: 1px solid #f1f5f9 !important;
        justify-content: center;
    }

    .ep-activity-action {
        width: 100%;
    }

    .ep-activity-action a {
        width: 100%;
        justify-content: center;
        background: rgba(116, 95, 168, 0.05);
        border: 1px solid rgba(116, 95, 168, 0.1);
        padding: 0.75rem;
        border-radius: 0.5rem;
        color: #745fa8;
    }
}

.ep-activity-tr {
    transition: background 0.2s;
    cursor: pointer;
}

.ep-activity-tr:last-child td {
    border-bottom: none;
}

.ep-activity-tr:hover {
    background: rgba(248, 250, 252, 0.8);
}

.ep-activity-exam {
    font-weight: 500;
    color: #0f172a;
}

.ep-activity-score {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    border-radius: 0.375rem;
    font-weight: 500;
}

.ep-score--good {
    background: rgba(156, 202, 59, 0.1);
    color: #8ab534;
}

.ep-score--mid {
    background: #fef3c7;
    color: #b45309;
}

.ep-score--low {
    background: #ffe4e6;
    color: #be123c;
}

.ep-activity-result {
    color: #94a3b8;
}

.ep-badge--pass {
    background: rgba(156, 202, 59, 0.1);
    color: #8ab534;
    padding: 0.25rem 0.625rem;
    border-radius: 0.375rem;
    font-weight: 500;
    font-size: 0.8rem;
}

.ep-badge--fail {
    background: rgba(244, 63, 94, 0.1);
    color: #f43f5e;
    padding: 0.25rem 0.625rem;
    border-radius: 0.375rem;
    font-weight: 500;
    font-size: 0.8rem;
}

.ep-activity-date {
    color: #64748b;
}

.ep-activity-action {
    text-align: right;
}

.ep-activity-action a {
    color: #745fa8;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;
    font-size: 0.875rem;
    transition: color 0.15s;
}

.ep-activity-tr:hover .ep-activity-action a {
    color: #5e4c8a;
}

.ep-align-right {
    text-align: right !important;
}

.ep-icon-chevron {
    width: 1rem;
    height: 1rem;
    margin-top: 2px;
}

/* Start Panel */
.ep-start-panel {
    background: #0f172a;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.ep-start-panel__bg-decor-1 {
    position: absolute;
    top: -6rem;
    right: -6rem;
    width: 12rem;
    height: 12rem;
    background: #745fa8;
    border-radius: 50%;
    filter: blur(48px);
    opacity: 0.2;
    pointer-events: none;
}

.ep-start-panel__bg-decor-2 {
    position: absolute;
    bottom: -6rem;
    left: -6rem;
    width: 12rem;
    height: 12rem;
    background: #9cca3b;
    border-radius: 50%;
    filter: blur(48px);
    opacity: 0.1;
    pointer-events: none;
}

.relative-z {
    position: relative;
    z-index: 10;
}

.ep-mode-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ep-mode-card__btn {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    text-align: left;
    transition: all 0.2s;
    cursor: pointer;
    justify-content: space-between;
    flex-direction: row !important;
}

.ep-mode-card__btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.ep-mode-card__icon-wrap {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s;
}

.ep-mode-card__icon-wrap svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Colors mapping */
.bg-primary-muted {
    background: rgba(116, 95, 168, 0.2);
    color: #ada2cd;
}

.ep-mode-card__btn:hover .bg-primary-muted {
    background: #745fa8;
    color: #fff;
}

.bg-secondary-muted {
    background: rgba(156, 202, 59, 0.2);
    color: #9cca3b;
}

.ep-mode-card__btn:hover .bg-secondary-muted {
    background: #9cca3b;
    color: #fff;
}

.bg-blue-muted {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.ep-mode-card__btn:hover .bg-blue-muted {
    background: #3b82f6;
    color: #fff;
}

.bg-purple-muted {
    background: rgba(168, 85, 247, 0.2);
    color: #c084fc;
}

.ep-mode-card__btn:hover .bg-purple-muted {
    background: #a855f7;
    color: #fff;
}

.ep-mode-card__name {
    font-weight: 500;
    font-size: 1rem;
    color: #fff;
    margin: 0;
    line-height: 1.2;
}

.ep-mode-card__desc {
    font-size: 0.75rem;
    color: #94a3b8;
    margin: 0.125rem 0 0;
}

.ep-mode-card__text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ep-chevron-right {
    width: 1.25rem;
    height: 1.25rem;
    color: #64748b;
    transition: color 0.2s;
    flex-shrink: 0;
    margin-left: 1rem;
}

.ep-mode-card__btn:hover .ep-chevron-right {
    color: #fff;
}

/* Subscription */
.ep-sub-card {
    padding: 1.5rem;
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 1rem;
    margin-bottom: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.ep-sub-card__name {
    font-weight: 600;
    font-size: 1.1rem;
    color: #0f172a;
}

.ep-sub-card__exp {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.ep-sub-card__chapters {
    font-size: 0.875rem;
    color: #475569;
    margin: 0;
}

/* ════════════════════════════════════════════════════════════════════════════
   Mobile Responsiveness Overrides
   ════════════════════════════════════════════════════════════════════════════ */

/* Fix flex wrapping issues by ensuring shrink/min-width constraints */
.ep-mode-card__text {
    min-width: 0;
}

.ep-mode-card__name,
.ep-mode-card__desc {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ep-resume-card__play,
.ep-chevron-right,
.ep-mode-card__icon-wrap {
    flex-shrink: 0;
}

.ep-resume-card__header>div {
    min-width: 0;
    padding-right: 0.5rem;
}

.ep-resume-card__type,
.ep-resume-card__date {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ep-bar-row__label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 0.5rem;
}

@media (max-width: 640px) {

    /* Reduce overarching padding to liberate screen space */
    .ep-dashboard {
        padding: 0.75rem;
    }

    .ep-chart-section,
    .ep-activity-section,
    .ep-focus-section,
    .ep-start-panel,
    .ep-resume-card,
    .ep-sub-card,
    .ep-stat-card {
        padding: 1rem;
    }

    .ep-activity-section .ep-section-header_alt {
        padding: 1rem;
    }

    /* Compress layout of mode cards */
    .ep-mode-card__btn {
        padding: 0.875rem;
    }

    .ep-mode-card__icon-wrap {
        width: 2.25rem;
        height: 2.25rem;
        margin-right: 0.75rem;
    }

    .ep-mode-card__icon-wrap svg {
        width: 1.15rem;
        height: 1.15rem;
    }

    .ep-chevron-right {
        width: 1.15rem;
        height: 1.15rem;
        margin-left: 0.5rem;
    }

    /* Compress table margins inside the horizonally scrolling wrapper */
    .ep-activity-table th,
    .ep-activity-table td {
        padding: 0.75rem 1rem;
    }

    /* Shrink section titles */
    .ep-section-title {
        font-size: 1.05rem;
    }

    .ep-dashboard__title {
        font-size: 1.5rem;
    }
}

/* ── Collapsible section toggle — purple circle ─────────────────────────── */

.ep-coll-btn {
    flex-shrink: 0 !important;
    margin-left: auto !important;
    width: 2.5rem !important;
    height: 2.5rem !important;
    min-width: 2.5rem !important;
    min-height: 0 !important;
    max-height: 2.5rem !important;
    box-sizing: border-box !important;
    border-radius: 50% !important;
    background: rgba(116, 95, 168, 0.1) !important;
    border: none !important;
    cursor: pointer !important;
    padding: 0 !important;
    color: #745fa8 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background 0.2s ease, color 0.2s ease,
                transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    line-height: 1 !important;
    overflow: hidden !important;
}
.ep-coll-btn:hover {
    background: #745fa8 !important;
    border-color: #745fa8 !important;
    color: #fff !important;
    transform: scale(1.1) !important;
}
.ep-coll-btn:active {
    transform: scale(0.93) !important;
}
.ep-start-panel .ep-coll-btn {
    background: rgba(255,255,255,0.15) !important;
    border-color: rgba(255,255,255,0.25) !important;
    color: #fff !important;
}
.ep-start-panel .ep-coll-btn:hover {
    background: rgba(255,255,255,0.28) !important;
    border-color: rgba(255,255,255,0.4) !important;
}

/* ── My Reports (student dashboard section) ─────────────────────────────── */

.ep-my-reports {
    margin: 0 0 2rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: 1rem;
    border: 1px solid #f1f5f9;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}


/* Summary pill row — sits above the intro text */
#ep-my-reports-summary.ep-rpt-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
}

.ep-my-reports__intro {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0 0 1.25rem;
}

.ep-my-reports__state {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem;
    color: #94a3b8;
    font-size: 0.875rem;
}

.ep-my-reports__list {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.ep-my-report-card {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 0.875rem;
    padding: 1rem 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: box-shadow 0.2s;
}

.ep-my-report-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
}

.ep-my-report-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.ep-my-report-type {
    font-size: 0.75rem;
    font-weight: 700;
    color: #7c3aed;
    background: #f5f3ff;
    padding: 3px 8px;
    border-radius: 6px;
}

.ep-my-report-status {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 3px 8px;
    border-radius: 99px;
}

.ep-my-rpt--pending {
    background: #fef3c7;
    color: #d97706;
}

.ep-my-rpt--reviewed {
    background: #dbeafe;
    color: #1d4ed8;
}

.ep-my-rpt--resolved {
    background: #d1fae5;
    color: #059669;
}

.ep-my-report-preview {
    font-size: 0.8125rem;
    color: #374151;
    margin: 0;
    line-height: 1.5;
}

.ep-my-report-date {
    font-size: 0.75rem;
    color: #94a3b8;
}