/* =========================================
   ACADEMICHUB CLIENT DASHBOARD
   ========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f7fb;
    color: #172033;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}


/* =========================================
   DASHBOARD LAYOUT
   ========================================= */

.dashboard {
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    display: flex;
    overflow-x: hidden;
}


/* =========================================
   SIDEBAR
   ========================================= */

.dashboard-sidebar {
    width: 250px;
    min-width: 250px;
    min-height: 100vh;
    background: #0d2b52;
    color: white;
    padding: 28px 18px;
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 10;
}

.dashboard-logo {
    font-size: 24px;
    font-weight: 700;
    padding: 0 14px 35px;
    letter-spacing: -0.5px;
}

.dashboard-logo span {
    color: #4da3ff;
}

.dashboard-nav {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.dashboard-nav a,
.sidebar-bottom a {
    color: #cbd7e8;
    text-decoration: none;
    padding: 13px 14px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    gap: 13px;
    font-size: 15px;
    transition: 0.2s ease;
}

.dashboard-nav a:hover,
.sidebar-bottom a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.dashboard-nav a.active {
    background: #1e6fd9;
    color: white;
    font-weight: 600;
}

.sidebar-bottom {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 7px;
}


/* =========================================
   MAIN CONTENT
   ========================================= */

.dashboard-main {
    margin-left: 250px;
    width: calc(100% - 250px);
    max-width: calc(100% - 250px);
    min-width: 0;
    padding: 35px;
    overflow-x: hidden;
}


/* =========================================
   HEADER
   ========================================= */

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    margin-bottom: 30px;
    min-width: 0;
}

.dashboard-header h1 {
    font-size: 30px;
    margin-bottom: 7px;
    color: #12233d;
}

.dashboard-header p {
    color: #6b778c;
    font-size: 15px;
}

.dashboard-user {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.user-avatar {
    width: 45px;
    min-width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #1e6fd9;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 17px;
}

.dashboard-user strong {
    display: block;
    font-size: 14px;
    color: #172033;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-user small {
    display: block;
    margin-top: 3px;
    color: #7b8798;
}


/* =========================================
   STAT CARDS
   ========================================= */

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 25px;
    min-width: 0;
}

.dashboard-card {
    background: white;
    border: 1px solid #e5eaf1;
    border-radius: 12px;
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    box-shadow: 0 3px 12px rgba(20, 40, 70, 0.04);
}

.card-icon {
    width: 48px;
    min-width: 48px;
    height: 48px;
    border-radius: 10px;
    background: #eaf3ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
}

.dashboard-card p {
    color: #7b8798;
    font-size: 13px;
    margin-bottom: 5px;
}

.dashboard-card h2 {
    font-size: 25px;
    color: #172033;
}


/* =========================================
   DASHBOARD GRID
   ========================================= */

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 22px;
    margin-bottom: 25px;
    min-width: 0;
    width: 100%;
}

.dashboard-panel {
    background: white;
    border: 1px solid #e5eaf1;
    border-radius: 12px;
    padding: 25px;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(20, 40, 70, 0.04);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    min-width: 0;
}

.panel-header h2 {
    font-size: 18px;
    color: #172033;
    margin-bottom: 5px;
}

.panel-header p {
    font-size: 13px;
    color: #7b8798;
}

.panel-button,
.primary-button {
    border: none;
    background: #1e6fd9;
    color: white;
    padding: 10px 15px;
    border-radius: 7px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
    flex-shrink: 0;
}

.panel-button:hover,
.primary-button:hover {
    background: #155db8;
}


/* =========================================
   EMPTY STATE
   ========================================= */

.empty-state {
    text-align: center;
    padding: 45px 25px;
    border: 1px dashed #d7dee8;
    border-radius: 10px;
    min-width: 0;
}

.empty-icon {
    font-size: 38px;
    margin-bottom: 15px;
}

.empty-state h3 {
    font-size: 17px;
    margin-bottom: 8px;
    color: #26354d;
}

.empty-state p {
    color: #7b8798;
    font-size: 13px;
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto 20px;
}


/* =========================================
   ACCOUNT INFORMATION
   ========================================= */

.account-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.account-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 0;
    border-bottom: 1px solid #edf0f5;
    min-width: 0;
}

.account-row:last-child {
    border-bottom: none;
}

.account-row span {
    color: #7b8798;
    font-size: 13px;
    flex-shrink: 0;
}

.account-row strong {
    color: #26354d;
    font-size: 13px;
    text-align: right;
    word-break: break-word;
    overflow-wrap: anywhere;
    min-width: 0;
}


/* =========================================
   QUICK ACTIONS
   ========================================= */

.quick-actions {
    min-width: 0;
}

.quick-actions h2 {
    font-size: 19px;
    margin-bottom: 17px;
    color: #172033;
}

.quick-action-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    min-width: 0;
}

.quick-action {
    background: white;
    border: 1px solid #e5eaf1;
    border-radius: 12px;
    padding: 20px;
    text-align: left;
    cursor: pointer;
    transition: 0.2s ease;
    min-width: 0;
}

.quick-action:hover {
    border-color: #1e6fd9;
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(20, 40, 70, 0.08);
}

.quick-action span {
    display: block;
    font-size: 24px;
    margin-bottom: 13px;
}

.quick-action strong {
    display: block;
    color: #26354d;
    font-size: 14px;
    margin-bottom: 6px;
}

.quick-action small {
    display: block;
    color: #7b8798;
    font-size: 12px;
    line-height: 1.5;
}


/* =========================================
   RESPONSIVE DESIGN
   ========================================= */

@media (max-width: 1100px) {

    .dashboard-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .quick-action-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


@media (max-width: 850px) {

    .dashboard-sidebar {
        width: 210px;
        min-width: 210px;
    }

    .dashboard-main {
        margin-left: 210px;
        width: calc(100% - 210px);
        max-width: calc(100% - 210px);
        padding: 25px;
    }

    .dashboard-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}


@media (max-width: 650px) {

    .dashboard-sidebar {
        width: 70px;
        min-width: 70px;
        padding: 20px 10px;
    }

    .dashboard-logo {
        font-size: 0;
        text-align: center;
        padding: 0 0 30px;
    }

    .dashboard-logo span {
        font-size: 24px;
    }

    .dashboard-logo span::first-letter {
        font-size: 24px;
    }

    .dashboard-nav a,
    .sidebar-bottom a {
        justify-content: center;
        padding: 13px 8px;
    }

    .dashboard-nav a span,
    .sidebar-bottom a span {
        display: none;
    }

    .dashboard-main {
        margin-left: 70px;
        width: calc(100% - 70px);
        max-width: calc(100% - 70px);
        padding: 20px 15px;
    }

    .dashboard-header {
        align-items: flex-start;
    }

    .dashboard-header h1 {
        font-size: 23px;
    }

    .dashboard-user {
        display: none;
    }

    .dashboard-stats {
        grid-template-columns: minmax(0, 1fr);
    }

    .quick-action-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .panel-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .panel-button {
        width: 100%;
    }
}


/* =========================================================
   RECENT REQUESTS
========================================================= */

.recent-request {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    width: 100%;
    min-width: 0;
    padding: 20px 0;
    border-bottom: 1px solid #edf0f4;
}


.recent-request:last-child {
    border-bottom: none;
}


/* =========================================================
   REQUEST MAIN INFORMATION
========================================================= */

.recent-request-main {
    min-width: 0;
    flex: 1;
    overflow: hidden;
}


.recent-request-id {
    display: inline-block;
    margin-bottom: 7px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: #2563eb;
    text-transform: uppercase;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.recent-request-main h3 {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    color: #1e293b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.recent-request-main p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #64748b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =========================================================
   REQUEST META
========================================================= */

.recent-request-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}


.recent-request-meta small {
    font-size: 11px;
    color: #94a3b8;
    white-space: nowrap;
}


/* =========================================================
   REQUEST STATUS
========================================================= */

.request-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 82px;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
}


/* =========================================================
   PENDING
========================================================= */

.request-status.pending {
    background: #fff7e6;
    color: #b7791f;
}


/* =========================================================
   IN PROGRESS
========================================================= */

.request-status.in-progress {
    background: #eaf2ff;
    color: #2563eb;
}


/* =========================================================
   COMPLETED
========================================================= */

.request-status.completed {
    background: #eaf8ef;
    color: #187a43;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {

    .recent-request {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
        padding: 18px 0;
    }


    .recent-request-main {
        width: 100%;
    }


    .recent-request-main h3 {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }


    .recent-request-main p {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }


    .recent-request-meta {
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

}