/* Report Dashboard Styles */
/* Migrated from legacy student-profile/dashboard-style.css */

.wrapper {
    width: 100%;
    display: flex;
    position: relative;
}

/* Sidebar */
.sidebar {
    width: 20%;
    height: 100vh;
    background: #626CAC;
    z-index: 999;
    position: fixed;
}

.sidebar-wrapper {
    padding: 0;
}

.sidebar .logo {
    background-color: white;
    padding: 15px;
    text-align: center;
}

.sidebar .logo img {
    max-width: 100%;
    height: auto;
}

/* User Card */
.user-card {
    background: #fff;
    margin: 10px auto;
    width: 90%;
    border-radius: 10px;
    padding: 15px;
}

.user-info {
    display: flex;
    gap: 15px;
    align-items: center;
}

.user-info .profile-img {
    width: 65px;
    height: 65px;
    border-radius: 50%;
}

.user-details {
    flex: 1;
}

.user-name {
    color: #333;
    font-size: 18px;
    font-weight: 500;
    margin: 0;
}

.user-contact,
.user-email {
    font-size: 12px;
    color: #707070;
    margin: 2px 0;
}

/* Navigation */
.sidebar .nav {
    list-style: none;
    padding: 0 15px;
    margin: 20px 0;
    font-family: 'Poppins', sans-serif;
}

.sidebar .nav li {
    margin-bottom: 5px;
}

.sidebar .nav li a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.8);
    padding: 10px 15px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.sidebar .nav li a:hover,
.sidebar .nav li.active a {
    background-color: rgba(255, 255, 255, 0.13);
    color: white;
}

.sidebar .nav li a i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.sidebar .nav li a p {
    margin: 0;
    font-size: 13px;
    font-weight: 400;
}

/* Main Panel */
.main-panel {
    width: 80%;
    position: absolute;
    left: 20%;
    min-height: 100vh;
    background: #f0f2f5;
}

/* Top Bar */
.top-bar {
    background: #eee;
    padding: 10px 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-bar-left .search-input {
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 8px 15px;
    width: 250px;
    outline: none;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.upgrade-btn {
    background: #626cad;
    color: #fff;
    padding: 8px 20px;
    border-radius: 26px;
    font-size: 14px;
    text-decoration: none;
    transition: 0.2s ease all;
}

.upgrade-btn:hover {
    background: #3c468a;
    color: white;
}

.upgrade-btn i {
    margin-right: 5px;
    font-size: 8px;
}

.phone-link {
    color: #626cad;
    text-decoration: none;
    font-size: 14px;
}

.phone-link i {
    margin-right: 5px;
}

.logout-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #4e59ad;
    font-size: 12px;
}

.logout-link img {
    margin-bottom: 2px;
}

/* Content */
.content {
    padding: 30px;
}

/* Reports Section */
.reports-section {
    text-align: center;
}

.section-heading {
    font-size: 32px;
    font-weight: 700;
    color: #41464b;
    line-height: 1.3;
    margin-bottom: 15px;
}

.heading-line {
    margin-bottom: 30px;
}

.heading-line img {
    width: 160px;
}

.loading-spinner {
    color: #626cad;
    font-size: 18px;
    padding: 50px;
}

.loading-spinner i {
    margin-right: 10px;
}

/* No Reports */
.no-reports {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.no-reports p {
    color: #666;
    font-size: 16px;
    margin-bottom: 15px;
}

.start-test-btn {
    display: inline-block;
    background: #4E59AD;
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    margin-top: 15px;
    transition: 0.2s ease all;
}

.start-test-btn:hover {
    background: #3c468a;
    color: white;
}

/* Reports Grid */
.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.report-card {
    background: #ebe9ff;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    border: 1px solid #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.report-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.report-icon img {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
}

.report-title {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin-bottom: 10px;
}

.report-date,
.report-duration {
    font-size: 14px;
    color: #666;
    margin: 5px 0;
}

.view-report-btn {
    display: inline-block;
    background: #4E59AD;
    color: #fff;
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    margin-top: 15px;
    transition: 0.2s ease all;
}

.view-report-btn:hover {
    background: #3c468a;
    color: white;
}

/* Footer */
.footer {
    background: #626CAC;
    color: white;
    padding: 20px 30px;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-nav {
    width: 20%;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-right: 20px;
    font-size: 14px;
}

.footer-nav a:hover {
    color: white;
}

.copyright {
    font-size: 14px;
    margin: 0;
}

.copyright a {
    color: white;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 992px) {
    .sidebar {
        display: none;
    }

    .main-panel {
        width: 100%;
        left: 0;
    }

    .top-bar {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .top-bar-right {
        flex-wrap: wrap;
        justify-content: center;
    }

    .section-heading {
        font-size: 24px;
    }

    .reports-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .content {
        padding: 15px;
    }

    .report-card {
        padding: 20px;
    }
}
