
/* ==================================================
   ACADEMIQDRAFT | CLIENT PORTAL
   Bootstrap 5 compatible
================================================== */

:root {
    --primary: #3157c8;
    --primary-dark: #2445a9;
    --primary-soft: #edf2ff;
    --navy: #172b55;
    --navy-light: #233c70;
    --body-bg: #f4f6fb;
    --white: #ffffff;
    --text: #263247;
    --muted: #7d899e;
    --border: #e5eaf2;
    --green: #21875e;
    --orange: #d98235;
    --purple: #7956c8;
    --red: #c74754;
    --radius: 14px;
    --shadow: 0 5px 20px rgba(23, 43, 85, .045);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    background: var(--body-bg);
    color: var(--text);
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
}

a {
    transition: .2s ease;
}

button,
input,
textarea,
select {
    font: inherit;
}

/* ==================================================
   HEADER
================================================== */

.main-header {
    position: relative;
    z-index: 100;
    flex-shrink: 0;
    padding: 12px 25px;
    background: var(--navy);
    color: #fff;
    box-shadow: 0 3px 14px rgba(23, 43, 85, .13);
}

.main-header .container-fluid {
    gap: 15px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.4px;
    text-decoration: none;
}

.brand:hover {
    color: #fff;
}

.brand img {
    width: 40px;
    height: 40px;
    padding: 3px;
    flex-shrink: 0;
    object-fit: contain;
    border-radius: 9px;
    background: #fff;
}

.header-user {
    max-width: 230px;
    overflow: hidden;
    color: #e0e8ff;
    font-size: 12px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.main-header .btn {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
}

/* ==================================================
   FOOTER
================================================== */

.main-footer {
    margin-top: auto;
    padding: 15px 20px;
    border-top: 1px solid var(--border);
    background: #fff;
    color: #8490a4;
    text-align: center;
}

.main-footer small {
    font-size: 11px;
}

/* ==================================================
   LOGIN AND REGISTER
================================================== */

.login-wrapper {
    width: 100%;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 35px 16px;
}

.login-card {
    width: 100%;
    max-width: 440px;
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(23, 43, 85, .07);
}

.login-card.register-card {
    max-width: 760px;
}

.login-logo {
    display: block;
    width: 74px;
    height: 74px;
    margin: 0 auto 15px;
    object-fit: contain;
}

.login-card h1,
.login-card h2 {
    margin: 0 0 9px;
    color: var(--navy);
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -.5px;
}

.login-card > p {
    color: var(--muted);
    font-size: 13px;
}

.login-card .form-label {
    margin-bottom: 7px;
    color: #39465a;
    font-size: 12px;
    font-weight: 700;
}

.login-card .form-control,
.login-card .form-select {
    min-height: 45px;
    padding: 10px 12px;
    border: 1px solid #dce3ef;
    border-radius: 8px;
    color: var(--text);
    font-size: 13px;
    box-shadow: none;
}

.login-card textarea.form-control {
    min-height: 95px;
    resize: vertical;
}

.login-card .form-control:focus,
.login-card .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(49, 87, 200, .12);
}

.login-card .btn {
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
}

.login-card .btn-primary,
.btn-primary {
    border-color: var(--primary);
    background: var(--primary);
}

.login-card .btn-primary:hover,
.btn-primary:hover {
    border-color: var(--primary-dark);
    background: var(--primary-dark);
}

.login-card a {
    color: var(--primary);
    text-decoration: none;
}

.login-card a:hover {
    text-decoration: underline;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0;
    color: #8994a7;
    font-size: 11px;
}

.login-divider::before,
.login-divider::after {
    height: 1px;
    flex: 1;
    background: var(--border);
    content: "";
}

/* ==================================================
   MAIN APP LAYOUT
================================================== */

.client-app {
    display: flex;
    flex: 1;
    align-items: stretch;
    width: 100%;
    min-width: 0;
}

.client-app > .sidebar {
    position: relative;
    z-index: 10;
    display: flex;
    flex: 0 0 255px;
    flex-direction: column;
    width: 255px;
    min-width: 255px;
    min-height: 100%;
    padding: 23px 14px;
    overflow-y: auto;
    border-right: 1px solid var(--border);
    background: #fff;
}

.client-main {
    flex: 1;
    width: calc(100% - 255px);
    min-width: 0;
    padding: 28px;
    overflow-wrap: anywhere;
}

/* ==================================================
   SIDEBAR NAVIGATION
================================================== */

.sidebar-heading {
    margin: 19px 10px 9px;
    color: #919db1;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.3px;
}

.sidebar-heading:first-child {
    margin-top: 0;
}

.sidebar-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    min-height: 43px;
    padding: 10px 11px;
    margin: 2px 0;
    border-radius: 9px;
    color: #59667c;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.sidebar-link i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 21px;
    flex-shrink: 0;
    color: #8390a6;
    font-size: 14px;
}

.sidebar-link:hover {
    background: #f3f5ff;
    color: var(--primary);
}

.sidebar-link:hover i {
    color: var(--primary);
}

.sidebar-link.active {
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 750;
}

.sidebar-link.active i {
    color: var(--primary);
}

.sidebar-link.active::before {
    position: absolute;
    top: 9px;
    bottom: 9px;
    left: 0;
    width: 3px;
    border-radius: 0 4px 4px 0;
    background: var(--primary);
    content: "";
}

.sidebar-link .menu-count {
    min-width: 21px;
    margin-left: auto;
    padding: 2px 5px;
    border-radius: 5px;
    background: #edf1ff;
    color: var(--primary);
    font-size: 11px;
    text-align: center;
}

.sidebar-link.logout-link {
    margin-top: 5px;
    color: var(--red);
}

.sidebar-link.logout-link i {
    color: var(--red);
}

.sidebar-link.logout-link:hover {
    background: #fff0f1;
}

.sidebar-bottom {
    margin-top: auto;
    padding-top: 22px;
}

.sidebar-help {
    padding: 15px 13px;
    border: 1px solid #e4e9ff;
    border-radius: 12px;
    background: linear-gradient(145deg, #f3f5ff, #fff);
}

.sidebar-help-icon {
    display: grid;
    place-items: center;
    width: 35px;
    height: 35px;
    margin-bottom: 10px;
    border-radius: 10px;
    background: #e5eaff;
    color: var(--primary);
}

.sidebar-help strong {
    display: block;
    color: var(--navy);
    font-size: 12px;
}

.sidebar-help p {
    margin: 5px 0 11px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.sidebar-help a {
    color: var(--primary);
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
}

/* ==================================================
   WELCOME BANNER
================================================== */

.welcome-banner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 235px;
    padding: 30px 34px;
    overflow: hidden;
    border-radius: 17px;
    background: linear-gradient(115deg, #172b55 0%, #284a91 58%, #4167c8 100%);
    color: #fff;
    box-shadow: 0 12px 28px rgba(33, 60, 120, .13);
}

.welcome-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.welcome-eyebrow {
    display: inline-block;
    margin-bottom: 13px;
    color: #c7d6ff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.welcome-banner h1 {
    margin: 0 0 12px;
    color: #fff;
    font-size: clamp(25px, 2.5vw, 34px);
    font-weight: 800;
    letter-spacing: -.8px;
    line-height: 1.3;
}

.welcome-banner p {
    max-width: 500px;
    margin: 0;
    color: #d9e4ff;
    font-size: 12px;
    line-height: 1.8;
}

.welcome-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.btn-welcome-primary,
.btn-welcome-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 14px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 750;
    text-decoration: none;
}

.btn-welcome-primary {
    border: 1px solid #fff;
    background: #fff;
    color: #24458e;
}

.btn-welcome-primary:hover {
    background: #edf2ff;
    color: var(--navy);
}

.btn-welcome-secondary {
    border: 1px solid rgba(255,255,255,.3);
    background: rgba(255,255,255,.08);
    color: #fff;
}

.btn-welcome-secondary:hover {
    background: rgba(255,255,255,.17);
    color: #fff;
}

/* Decorative document illustration */

.welcome-art {
    position: relative;
    width: 190px;
    height: 180px;
    flex: 0 0 190px;
}

.welcome-orbit {
    position: absolute;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 50%;
}

.orbit-one {
    top: 0;
    left: 5px;
    width: 180px;
    height: 180px;
}

.orbit-two {
    top: 21px;
    left: 26px;
    width: 138px;
    height: 138px;
}

.welcome-document {
    position: absolute;
    top: 31px;
    left: 56px;
    width: 82px;
    height: 110px;
    padding: 14px;
    border: 1px solid rgba(255,255,255,.6);
    border-radius: 12px;
    background: linear-gradient(150deg, #fff, #e7edff);
    color: var(--primary);
    box-shadow: 0 12px 30px rgba(0,0,0,.16);
    transform: rotate(-5deg);
}

.welcome-document > i {
    margin-bottom: 12px;
    font-size: 20px;
}

.document-line {
    display: block;
    width: 45px;
    height: 4px;
    margin-top: 7px;
    border-radius: 5px;
    background: #bac8ed;
}

.document-line.line-long {
    width: 52px;
}

.document-line.line-short {
    width: 29px;
}

.document-check {
    position: absolute;
    right: -11px;
    bottom: -8px;
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    border: 3px solid #3456a3;
    border-radius: 50%;
    background: #31b984;
    color: #fff;
    font-size: 11px;
}

.floating-icon {
    position: absolute;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 10px;
    background: rgba(255,255,255,.15);
    color: #fff;
}

.floating-chart {
    top: 13px;
    right: 1px;
}

.floating-cap {
    bottom: 11px;
    left: 12px;
}

/* ==================================================
   SECTION HEADINGS
================================================== */

.dashboard-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    margin: 30px 0 18px;
}

.section-kicker,
.panel-kicker {
    display: block;
    margin-bottom: 6px;
    color: #8a97ad;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.25px;
}

.dashboard-section-heading h2 {
    margin: 0;
    color: #24334e;
    font-size: 20px;
    font-weight: 800;
}

.dashboard-section-heading p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 11px;
}

.dashboard-date {
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    color: #59677e;
    font-size: 12px;
    font-weight: 650;
}

/* ==================================================
   SUMMARY STAT CARDS
================================================== */

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.stat-card {
    position: relative;
    min-width: 0;
    padding: 18px;
    border: 1px solid #e7ebf3;
    border-radius: 13px;
    background: #fff;
    box-shadow: var(--shadow);
    transition: transform .2s ease, box-shadow .2s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(23, 43, 85, .08);
}

.stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.stat-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 11px;
    font-size: 15px;
}

.stat-label {
    color: #8995a9;
    font-size: 8px;
    font-weight: 850;
    letter-spacing: .6px;
}

.stat-number {
    margin: 18px 0 12px;
    color: #263650;
    font-size: 29px;
    font-weight: 800;
    line-height: 1.1;
}

.stat-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    color: #8490a3;
    font-size: 11px;
}

.stat-bottom i {
    color: #9ba6b9;
}

.stat-blue .stat-icon {
    background: #edf2ff;
    color: #4267d5;
}

.stat-purple .stat-icon {
    background: #f2edff;
    color: #7956c8;
}

.stat-orange .stat-icon {
    background: #fff1e5;
    color: #d98235;
}

.stat-green .stat-icon {
    background: #e7f8f0;
    color: #21875e;
}

.stat-card-link {
    position: absolute;
    z-index: 1;
    inset: 0;
    border-radius: inherit;
}

.stat-card:focus-within {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ==================================================
   DASHBOARD CONTENT GRID
================================================== */

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 1fr);
    gap: 16px;
    margin-top: 19px;
}

.dashboard-panel {
    min-width: 0;
    padding: 22px;
    border: 1px solid #e6eaf2;
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow);
}

.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.panel-heading h3 {
    margin: 0;
    color: #27354e;
    font-size: 15px;
    font-weight: 800;
}

.panel-link {
    color: var(--primary);
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
}

.panel-link:hover {
    color: var(--primary-dark);
}

.workflow-badge {
    padding: 5px 9px;
    border-radius: 6px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 11px;
    font-weight: 750;
}

/* ==================================================
   PROJECT EMPTY STATE
================================================== */

.empty-project-state {
    padding: 17px 12px 13px;
    text-align: center;
}

.empty-project-icon {
    display: grid;
    place-items: center;
    width: 65px;
    height: 65px;
    margin: 0 auto 16px;
    border-radius: 19px;
    background: linear-gradient(145deg, #edf2ff, #f4f0ff);
    color: #4b63c7;
    font-size: 24px;
}

.empty-project-state h4 {
    margin: 0 0 9px;
    color: #293751;
    font-size: 14px;
    font-weight: 800;
}

.empty-project-state p {
    max-width: 380px;
    margin: 0 auto 18px;
    color: #8994a7;
    font-size: 11px;
    line-height: 1.8;
}

.empty-project-state .btn {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 750;
}

/* ==================================================
   PROJECT WORKFLOW
================================================== */

.workflow-list {
    position: relative;
    padding-left: 3px;
}

.workflow-list::before {
    position: absolute;
    top: 21px;
    bottom: 31px;
    left: 18px;
    width: 1px;
    background: #e2e7f1;
    content: "";
}

.workflow-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 19px;
}

.workflow-item:last-child {
    margin-bottom: 7px;
}

.workflow-number {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border: 1px solid #e1e6f0;
    border-radius: 50%;
    background: #fff;
    color: #8290a7;
    font-size: 12px;
    font-weight: 800;
}

.workflow-complete {
    border-color: #d8f2e6;
    background: #e5f8ef;
    color: #229a6a;
}

.workflow-item strong {
    display: block;
    padding-top: 3px;
    color: #36435a;
    font-size: 11px;
    font-weight: 750;
}

.workflow-item p {
    margin: 4px 0 0;
    color: #919bae;
    font-size: 12px;
    line-height: 1.6;
}

.workflow-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 17px;
    padding-top: 15px;
    border-top: 1px solid #edf0f5;
    color: var(--primary);
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
}

/* ==================================================
   QUICK ACTIONS
================================================== */

.quick-action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.quick-action {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 13px 10px;
    border: 1px solid #edf0f5;
    border-radius: 10px;
    text-decoration: none;
}

.quick-action:hover {
    border-color: #ccd7ff;
    background: #fafbff;
}

.quick-action > span:nth-child(2) {
    flex: 1;
    min-width: 0;
}

.quick-action strong,
.quick-action small {
    display: block;
}

.quick-action strong {
    color: #39465d;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.5;
}

.quick-action small {
    margin-top: 4px;
    color: #939db0;
    font-size: 11px;
    line-height: 1.5;
}

.quick-action-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 10px;
    font-size: 14px;
}

.quick-blue {
    background: #edf2ff;
    color: #4267d5;
}

.quick-purple {
    background: #f2edff;
    color: #7956c8;
}

.quick-green {
    background: #e7f8f0;
    color: #21875e;
}

.quick-orange {
    background: #fff1e5;
    color: #d98235;
}

.quick-chevron {
    color: #a2acbd;
    font-size: 11px;
}

/* ==================================================
   ACCOUNT / PROFILE PANEL
================================================== */

.profile-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    border-radius: 6px;
    background: #eaf8f1;
    color: #27845f;
    font-size: 11px;
    font-weight: 750;
}

.profile-status span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #27a976;
}

.profile-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 19px;
}

.profile-avatar {
    display: grid;
    place-items: center;
    width: 47px;
    height: 47px;
    flex-shrink: 0;
    border-radius: 14px;
    background: linear-gradient(140deg, #3157c8, #7965d8);
    color: #fff;
    font-size: 19px;
    font-weight: 800;
}

.profile-summary h4 {
    margin: 0;
    color: #2d3a52;
    font-size: 13px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.profile-summary p {
    margin: 4px 0 0;
    color: #909bad;
    font-size: 12px;
}

.profile-detail {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 0;
    border-top: 1px solid #edf0f5;
}

.profile-detail > span {
    color: #929caf;
    font-size: 12px;
}

.profile-detail > span i {
    width: 16px;
    margin-right: 4px;
}

.profile-detail strong {
    color: #48566d;
    font-size: 11px;
    overflow-wrap: anywhere;
}

.verified-label {
    color: var(--green) !important;
}

.account-support-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
    padding-top: 13px;
    border-top: 1px solid #edf0f5;
    color: var(--primary);
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
}

/* ==================================================
   DASHBOARD NOTE
================================================== */

.dashboard-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 18px;
    padding: 13px 15px;
    border: 1px solid #e2e9fa;
    border-radius: 9px;
    background: #f8faff;
    color: #71809b;
    font-size: 12px;
    line-height: 1.7;
}

.dashboard-note i {
    margin-top: 2px;
    color: #5470cc;
}

/* ==================================================
   OTHER CLIENT PAGES
================================================== */

.page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 24px;
}

.page-heading h1 {
    margin: 0 0 5px;
    color: var(--navy);
    font-size: 26px;
    font-weight: 800;
}

.page-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.content-card,
.dashboard-card {
    height: 100%;
    padding: 23px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: #fff;
    box-shadow: var(--shadow);
    overflow-wrap: anywhere;
}

.content-card h3,
.content-card h4,
.dashboard-card h5 {
    color: #27354e;
    font-weight: 750;
}

.content-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 19px;
    padding-bottom: 15px;
    border-bottom: 1px solid #edf0f5;
}

.content-card-header h3 {
    margin: 0;
    font-size: 16px;
}

/* ==================================================
   FORM ELEMENTS
================================================== */

.form-label {
    margin-bottom: 7px;
    color: #39465a;
    font-size: 12px;
    font-weight: 700;
}

.form-control,
.form-select {
    min-height: 43px;
    border-color: #dce3ef;
    border-radius: 8px;
    color: var(--text);
    font-size: 12px;
    box-shadow: none;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(49, 87, 200, .11);
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

.form-text {
    color: var(--muted);
    font-size: 12px;
}

.input-group-text {
    border-color: #dce3ef;
    background: #f8faff;
    color: #75839a;
    font-size: 12px;
}

/* ==================================================
   TABLES
================================================== */

.table-responsive {
    border: 1px solid #e8ecf3;
    border-radius: 10px;
}

.table {
    margin-bottom: 0;
    vertical-align: middle;
}

.table thead th {
    padding: 13px;
    border-bottom: 1px solid #e6eaf2;
    background: #f8faff;
    color: #69778e;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.table tbody td {
    padding: 13px;
    border-color: #edf0f5;
    color: #48566d;
    font-size: 11px;
}

.table tbody tr:last-child td {
    border-bottom: 0;
}

.table tbody tr:hover td {
    background: #fafbff;
}

/* ==================================================
   STATUS LABELS
================================================== */

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 750;
    white-space: nowrap;
}

.status-active,
.status-completed,
.status-paid {
    background: #e7f8f0;
    color: #21875e;
}

.status-pending,
.status-review {
    background: #fff3e3;
    color: #b57425;
}

.status-inactive,
.status-cancelled {
    background: #fff0f1;
    color: #c74754;
}

.status-progress,
.status-approved {
    background: #edf2ff;
    color: #3157c8;
}

/* ==================================================
   FILE UPLOAD & DOCUMENTS
================================================== */

.file-upload-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 160px;
    padding: 22px;
    border: 2px dashed #cdd7ee;
    border-radius: 12px;
    background: #fafbff;
    text-align: center;
}

.file-upload-box:hover {
    border-color: var(--primary);
    background: #f4f6ff;
}

.file-upload-box > i {
    color: var(--primary);
    font-size: 28px;
}

.file-upload-box strong {
    color: #39465a;
    font-size: 12px;
}

.file-upload-box small {
    color: var(--muted);
    font-size: 12px;
}

.file-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid #edf0f5;
}

.file-list-item:last-child {
    border-bottom: 0;
}

.file-list-icon {
    display: grid;
    place-items: center;
    width: 39px;
    height: 39px;
    flex-shrink: 0;
    border-radius: 9px;
    background: #edf2ff;
    color: var(--primary);
}

.file-list-details {
    flex: 1;
    min-width: 0;
}

.file-list-details strong {
    display: block;
    color: #39465a;
    font-size: 11px;
    overflow-wrap: anywhere;
}

.file-list-details small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

/* ==================================================
   ALERTS, PAGINATION & MODALS
================================================== */

.alert {
    border-radius: 9px;
    font-size: 12px;
}

.alert-success {
    background: #e7f8f0;
    color: #197650;
}

.alert-danger {
    background: #fff0f0;
    color: #a8323d;
}

.alert-warning {
    background: #fff5e8;
    color: #9c651b;
}

.alert-info {
    background: #edf3ff;
    color: #3157a9;
}

.pagination {
    gap: 4px;
}

.pagination .page-link {
    border-color: var(--border);
    border-radius: 6px;
    color: var(--primary);
    font-size: 11px;
}

.pagination .active .page-link {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.modal-content {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 12px 35px rgba(23, 43, 85, .12);
}

.modal-header,
.modal-footer {
    border-color: var(--border);
}

.modal-title {
    color: var(--navy);
    font-size: 16px;
    font-weight: 800;
}

.dropdown-menu {
    padding: 7px;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(23, 43, 85, .1);
}

.dropdown-item {
    padding: 9px 11px;
    border-radius: 6px;
    font-size: 12px;
}

/* ==================================================
   TABLET
================================================== */

@media (max-width: 1200px) {
    .client-app > .sidebar {
        flex-basis: 225px;
        width: 225px;
        min-width: 225px;
    }

    .client-main {
        width: calc(100% - 225px);
        padding: 22px;
    }

    .dashboard-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .welcome-art {
        transform: scale(.85);
        transform-origin: center right;
        margin-left: -15px;
    }
}

/* ==================================================
   MOBILE SIDEBAR
================================================== */

@media (max-width: 900px) {
    .client-app {
        flex-direction: column;
    }

    .client-app > .sidebar {
        display: block;
        width: 100%;
        min-width: 0;
        padding: 12px;
        overflow: visible;
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .sidebar-heading {
        margin: 10px 6px 7px;
    }

    .sidebar-link {
        display: inline-flex;
        width: auto;
        min-height: 38px;
        margin: 2px;
        padding: 8px 10px;
        font-size: 11px;
    }

    .sidebar-link.active::before {
        top: auto;
        right: 10px;
        bottom: 0;
        left: 10px;
        width: auto;
        height: 2px;
    }

    .sidebar-bottom {
        display: none;
    }

    .client-main {
        width: 100%;
        padding: 20px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================================================
   SMALL MOBILE
================================================== */

@media (max-width: 600px) {
    .main-header {
        padding: 10px 12px;
    }

    .brand {
        gap: 7px;
        font-size: 15px;
    }

    .brand img {
        width: 34px;
        height: 34px;
    }

    .header-user {
        display: none;
    }

    .main-header .btn {
        padding: 7px 9px;
        font-size: 12px;
    }

    .login-wrapper {
        align-items: flex-start;
        padding: 22px 12px;
    }

    .login-card {
        padding: 24px 17px;
    }

    .login-card h1,
    .login-card h2 {
        font-size: 22px;
    }

    .client-main {
        padding: 15px 12px;
    }

    .welcome-banner {
        min-height: auto;
        padding: 24px 19px;
        border-radius: 14px;
    }

    .welcome-banner h1 {
        font-size: 25px;
    }

    .welcome-banner p {
        font-size: 11px;
    }

    .welcome-art {
        display: none;
    }

    .welcome-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .welcome-actions a {
        width: 100%;
        text-align: center;
    }

    .dashboard-section-heading {
        align-items: flex-start;
        flex-direction: column;
        margin-top: 24px;
    }

    .dashboard-section-heading h2 {
        font-size: 18px;
    }

    .dashboard-stats {
        gap: 9px;
    }

    .stat-card {
        padding: 13px;
    }

    .stat-label {
        font-size: 7px;
    }

    .stat-number {
        font-size: 24px;
    }

    .stat-bottom {
        font-size: 11px;
    }

    .dashboard-panel,
    .content-card,
    .dashboard-card {
        padding: 16px 13px;
    }

    .quick-action-grid {
        grid-template-columns: 1fr;
    }

    .page-heading h1 {
        font-size: 22px;
    }

    .content-card-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .table thead th,
    .table tbody td {
        padding: 10px;
    }

    .main-footer {
        padding: 13px 10px;
    }
}

@media (max-width: 380px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .welcome-banner h1 {
        font-size: 22px;
    }

    .sidebar-link {
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}



/* ==================================================
   RESEARCH QUERY PAGE
   Append to user/css/style.css
================================================== */

.research-page {
    background: var(--body-bg);
}

.research-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 23px;
}

.research-kicker {
    display: block;
    margin-bottom: 6px;
    color: var(--primary);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 1.5px;
}

.research-topbar h1 {
    margin: 0 0 7px;
    color: var(--navy);
    font-size: 27px;
    font-weight: 850;
    letter-spacing: -.6px;
}

.research-topbar p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}

.research-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 13px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    color: #52617a;
    font-size: 11px;
    font-weight: 750;
    text-decoration: none;
}

.research-back-btn:hover {
    border-color: #cbd6ff;
    background: var(--primary-soft);
    color: var(--primary);
}

/* Hero banner */

.research-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 225px;
    margin-bottom: 23px;
    padding: 30px 34px;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(115deg, #172b55, #294b91 65%, #4267c7);
    box-shadow: 0 12px 28px rgba(23, 43, 85, .12);
    color: #fff;
}

.research-hero-content {
    position: relative;
    z-index: 2;
    max-width: 580px;
}

.research-hero-label {
    display: inline-block;
    margin-bottom: 12px;
    color: #c9d7ff;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 1.3px;
}

.research-hero h2 {
    margin: 0 0 11px;
    color: #fff;
    font-size: clamp(23px, 2.4vw, 31px);
    font-weight: 850;
    line-height: 1.35;
    letter-spacing: -.6px;
}

.research-hero p {
    max-width: 490px;
    margin: 0;
    color: #dce5ff;
    font-size: 11px;
    line-height: 1.9;
}

.research-hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 17px;
    margin-top: 18px;
}

.research-hero-points span {
    color: #f0f4ff;
    font-size: 11px;
    font-weight: 600;
}

.research-hero-points i {
    margin-right: 5px;
    color: #80e0b8;
}

/* Hero illustration */

.research-hero-art {
    position: relative;
    width: 165px;
    height: 165px;
    flex: 0 0 165px;
    margin-right: 12px;
}

.research-art-circle {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 50%;
    box-shadow: inset 0 0 0 19px rgba(255,255,255,.035),
                inset 0 0 0 39px rgba(255,255,255,.025);
}

.research-art-card {
    position: absolute;
    top: 24px;
    left: 44px;
    width: 82px;
    height: 111px;
    padding: 13px;
    border: 1px solid #e2e9ff;
    border-radius: 11px;
    background: linear-gradient(145deg, #fff, #e7edff);
    color: var(--primary);
    box-shadow: 0 13px 30px rgba(0,0,0,.17);
    transform: rotate(-5deg);
}

.research-art-card > i {
    display: block;
    margin-bottom: 12px;
    font-size: 21px;
}

.art-line {
    display: block;
    width: 43px;
    height: 4px;
    margin-top: 7px;
    border-radius: 4px;
    background: #c6d1ef;
}

.art-line-wide {
    width: 53px;
}

.art-line-short {
    width: 27px;
}

.art-check {
    position: absolute;
    right: -10px;
    bottom: -9px;
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    border: 3px solid #34569e;
    border-radius: 50%;
    background: #2cb981;
    color: #fff;
    font-size: 12px;
}

.research-art-badge {
    position: absolute;
    right: 0;
    bottom: 13px;
    display: grid;
    place-items: center;
    width: 39px;
    height: 39px;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 11px;
    background: rgba(255,255,255,.16);
    color: #fff;
    font-size: 17px;
}

/* Main form and information columns */

.research-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(250px, .8fr);
    align-items: start;
    gap: 20px;
}

.research-form-card,
.research-info-card,
.research-tip-card,
.research-support-card {
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow);
}

.research-form-card {
    padding: 27px;
}

.research-form-heading {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 26px;
    padding-bottom: 21px;
    border-bottom: 1px solid #edf0f5;
}

.research-heading-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 12px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 18px;
}

.research-form-heading h2 {
    margin: 0 0 5px;
    color: #263650;
    font-size: 17px;
    font-weight: 850;
}

.research-form-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.research-form-section {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 25px 0 18px;
}

.research-section-number {
    display: grid;
    place-items: center;
    width: 33px;
    height: 33px;
    flex-shrink: 0;
    border-radius: 9px;
    background: #edf2ff;
    color: var(--primary);
    font-size: 12px;
    font-weight: 850;
}

.research-form-section h3 {
    margin: 1px 0 5px;
    color: #2d3a52;
    font-size: 13px;
    font-weight: 800;
}

.research-form-section p {
    margin: 0;
    color: #8994a7;
    font-size: 12px;
    line-height: 1.7;
}

.research-form .form-label {
    display: block;
    margin-bottom: 8px;
    color: #39465c;
    font-size: 11px;
    font-weight: 750;
}

.research-form .form-control,
.research-form .form-select {
    width: 100%;
    min-height: 45px;
    padding: 11px 12px;
    border: 1px solid #dce3ef;
    border-radius: 8px;
    background-color: #fff;
    color: #344159;
    font-size: 11px;
    box-shadow: none;
    transition: border-color .2s, box-shadow .2s;
}

.research-form .form-control::placeholder {
    color: #a1aabb;
}

.research-form .form-control:focus,
.research-form .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(49, 87, 200, .1);
}

.research-form .research-description {
    min-height: 145px;
    resize: vertical;
    line-height: 1.8;
}

.research-field-note {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 7px;
    color: #929caf;
    font-size: 11px;
    line-height: 1.6;
}

.research-field-note i {
    margin-top: 2px;
    color: #7c8dc4;
}

.research-submit-area {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 27px;
    padding-top: 21px;
    border-top: 1px solid #edf0f5;
}

.research-privacy-note {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    max-width: 250px;
    color: #8a96a9;
    font-size: 11px;
    line-height: 1.7;
}

.research-privacy-note i {
    margin-top: 2px;
    color: var(--green);
}

.research-submit-btn {
    min-height: 44px;
    padding: 11px 17px;
    border: 1px solid var(--primary);
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    box-shadow: 0 5px 12px rgba(49, 87, 200, .15);
    transition: .2s ease;
}

.research-submit-btn:hover {
    border-color: var(--primary-dark);
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-1px);
}

.research-alert {
    margin-bottom: 20px;
    padding: 13px 16px;
    border-radius: 9px;
    font-size: 11px;
}

/* Right column */

.research-side-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.research-info-card {
    padding: 22px 20px;
}

.research-info-icon,
.research-tip-icon {
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    margin-bottom: 15px;
    border-radius: 12px;
    background: #edf2ff;
    color: var(--primary);
    font-size: 17px;
}

.research-info-card h3,
.research-tip-card h3 {
    margin: 0 0 8px;
    color: #2c3a53;
    font-size: 14px;
    font-weight: 850;
}

.research-info-card > p,
.research-tip-card > p {
    margin: 0;
    color: #8490a4;
    font-size: 12px;
    line-height: 1.8;
}

.research-step {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-top: 22px;
}

.research-step > span {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border: 1px solid #dfe6ff;
    border-radius: 9px;
    background: #f0f3ff;
    color: var(--primary);
    font-size: 12px;
    font-weight: 850;
}

.research-step strong {
    display: block;
    margin: 1px 0 4px;
    color: #3b4860;
    font-size: 12px;
    font-weight: 800;
}

.research-step small {
    display: block;
    color: #8d98aa;
    font-size: 11px;
    line-height: 1.7;
}

.research-tip-card {
    padding: 21px;
    border-color: #e3e9ff;
    background: linear-gradient(145deg, #f6f8ff, #fff);
}

.research-tip-icon {
    background: #fff0d9;
    color: #bf812d;
}

.research-support-card {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 19px;
}

.research-support-card > i {
    display: grid;
    place-items: center;
    width: 39px;
    height: 39px;
    flex-shrink: 0;
    border-radius: 10px;
    background: #e8f8f0;
    color: #23875e;
    font-size: 16px;
}

.research-support-card strong {
    display: block;
    margin: 0 0 6px;
    color: #35435a;
    font-size: 11px;
    font-weight: 850;
}

.research-support-card p {
    margin: 0 0 9px;
    color: #8490a4;
    font-size: 11px;
    line-height: 1.8;
}

.research-support-card a {
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.research-support-card a:hover {
    color: var(--primary-dark);
}

/* Responsive research page */

@media (max-width: 1100px) {
    .research-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .research-side-column {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }

    .research-info-card {
        grid-row: span 2;
    }
}

@media (max-width: 700px) {
    .research-topbar h1 {
        font-size: 23px;
    }

    .research-hero {
        min-height: auto;
        padding: 24px 20px;
    }

    .research-hero-art {
        display: none;
    }

    .research-hero h2 {
        font-size: 25px;
    }

    .research-form-card {
        padding: 20px 16px;
    }

    .research-form-heading h2 {
        font-size: 15px;
    }

    .research-side-column {
        grid-template-columns: minmax(0, 1fr);
    }

    .research-info-card {
        grid-row: auto;
    }

    .research-submit-area {
        align-items: stretch;
        flex-direction: column;
    }

    .research-privacy-note {
        max-width: none;
    }

    .research-submit-btn {
        width: 100%;
    }
}

@media (max-width: 400px) {
    .research-topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .research-back-btn {
        align-self: flex-start;
    }

    .research-hero-points {
        flex-direction: column;
        gap: 8px;
    }

    .research-form-card {
        padding: 17px 13px;
    }
}



/* My Projects */
.projects-page {
    padding: 24px;
    font-size: 13px;
    color: #263248;
}

.projects-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.projects-heading h2 {
    font-size: 23px;
    font-weight: 700;
    margin: 0 0 5px;
}

.projects-heading p {
    font-size: 13px;
    color: #778196;
    margin: 0;
}

.projects-count {
    background: #eef2ff;
    color: #344db3;
    padding: 8px 12px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.projects-card {
    background: #fff;
    border: 1px solid #e8ebf1;
    border-radius: 10px;
    overflow: hidden;
}

.projects-table {
    font-size: 13px;
    min-width: 650px;
}

.projects-table thead th {
    background: #f7f8fc;
    color: #657087;
    font-size: 12px;
    font-weight: 700;
    padding: 14px 16px;
    border-bottom: 1px solid #e8ebf1;
    white-space: nowrap;
}

.projects-table tbody td {
    padding: 15px 16px;
    border-bottom: 1px solid #f0f1f5;
    color: #424d60;
}

.projects-table tbody tr:last-child td {
    border-bottom: 0;
}

.projects-table td strong {
    display: block;
    font-size: 13px;
    color: #202b40;
}

.projects-table td small {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #8992a3;
}

.project-status {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 5px;
    background: #f0f2f6;
    color: #586174;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.status-completed {
    background: #e6f7ed;
    color: #16834a;
}

.status-in-progress,
.status-under-review {
    background: #e8f1ff;
    color: #2459bd;
}

.status-pending,
.status-submitted {
    background: #fff4dc;
    color: #986500;
}

.status-cancelled {
    background: #ffebeb;
    color: #c03939;
}

.project-view-btn {
    border: 1px solid #d9e1f5;
    background: #f4f6ff;
    color: #344db3;
    padding: 6px 13px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.project-view-btn:hover {
    background: #344db3;
    color: #fff;
}

.project-modal {
    border: 0;
    border-radius: 12px;
    font-size: 13px;
}

.project-modal .modal-title {
    font-size: 17px;
    font-weight: 700;
}

.project-modal .modal-body p {
    margin-bottom: 13px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

@media (max-width: 768px) {
    .projects-page {
        padding: 16px;
    }

    .projects-heading h2 {
        font-size: 21px;
    }

    .projects-table {
        font-size: 12px;
    }
}

