/* =========================================================
   LIKESTAR PUBLICATIONS
   REVIEW MANAGEMENT
   BRAND COLORS
   WHITE • BLUE • ORANGE
   ========================================================= */

:root {
    --bg: #f6f9fc;
    --surface: #ffffff;
    --surface-soft: #f8fbff;

    --border: #e3eaf2;
    --border-strong: #cbd7e5;

    --text: #10233f;
    --text-soft: #64748b;
    --text-muted: #94a3b8;

    /* LikeStar Primary Blue */
    --blue: #0b5ed7;
    --blue-dark: #0849a8;
    --blue-deep: #073b88;
    --blue-soft: #eaf3ff;
    --blue-lighter: #f3f8ff;

    /* LikeStar Orange */
    --orange: #f58220;
    --orange-dark: #d96708;
    --orange-soft: #fff4e8;
    --orange-lighter: #fff9f3;

    /* Semantic colors */
    --green: #16803c;
    --green-soft: #ecfdf3;

    --red: #d92d20;
    --red-soft: #fff1f0;

    --sidebar-width: 260px;
    --topbar-height: 76px;

    --radius: 16px;
    --radius-small: 10px;

    --shadow:
        0 8px 30px rgba(7, 59, 136, 0.06);

    --shadow-large:
        0 20px 60px rgba(7, 59, 136, 0.16);

    --transition: 180ms ease;
}

/* =========================================================
   RESET
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: "DM Sans", sans-serif;
    -webkit-font-smoothing: antialiased;
}

body.no-scroll {
    overflow: hidden;
}

/* =========================================================
   AUTH LOADING
   ========================================================= */

body.auth-loading {
    visibility: hidden;
}

body.auth-loading .sidebar,
body.auth-loading .main {
    opacity: 0;
}

body:not(.auth-loading) .sidebar,
body:not(.auth-loading) .main {
    opacity: 1;
    transition: opacity 180ms ease;
}

/* =========================================================
   SIDEBAR
   ========================================================= */

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 100;

    width: var(--sidebar-width);

    display: flex;
    flex-direction: column;

    background: var(--surface);
    border-right: 1px solid var(--border);

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

/* =========================================================
   SIDEBAR BRAND
   ========================================================= */

.sidebar-brand {
    display: flex;
    align-items: center;

    min-height: 76px;
    padding: 18px 22px;

    border-bottom: 1px solid var(--border);
}

.sidebar-brand img {
    display: block;

    width: auto;
    max-width: 170px;
    max-height: 44px;

    object-fit: contain;
}

/* =========================================================
   PORTAL LABEL
   ========================================================= */

.portal-label {
    padding: 20px 22px 10px;

    color: var(--text-muted);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* =========================================================
   SIDEBAR NAVIGATION
   ========================================================= */

.sidebar-nav {
    flex: 1;

    padding: 0 12px 20px;

    overflow-y: auto;
}

.nav-section {
    margin-bottom: 22px;
}

.nav-section-title {
    padding: 0 12px 8px;

    color: var(--text-muted);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.sidebar-link {
    position: relative;

    display: flex;
    align-items: center;

    gap: 11px;

    min-height: 44px;
    margin: 3px 0;
    padding: 0 12px;

    border-radius: 10px;

    color: #52647b;

    font-size: 14px;
    font-weight: 600;

    text-decoration: none;

    transition:
        background var(--transition),
        color var(--transition),
        transform var(--transition);
}

.sidebar-link:hover {
    background: var(--blue-lighter);
    color: var(--blue);
}

.sidebar-link.active {
    background: var(--blue);
    color: #ffffff;

    box-shadow:
        0 5px 14px rgba(11, 94, 215, 0.18);
}

.sidebar-link.active::before {
    content: "";

    position: absolute;
    left: 0;

    width: 3px;
    height: 22px;

    border-radius: 0 4px 4px 0;

    background: var(--orange);
}

.sidebar-icon {
    width: 20px;
    flex: 0 0 20px;

    font-size: 17px;
    line-height: 1;

    text-align: center;
}

/* =========================================================
   SIDEBAR BOTTOM
   ========================================================= */

.sidebar-bottom {
    padding: 16px 12px;

    border-top: 1px solid var(--border);
}

.website-link {
    display: flex;
    align-items: center;

    min-height: 42px;
    padding: 0 12px;

    border-radius: 10px;

    color: var(--text-soft);

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;

    transition:
        background var(--transition),
        color var(--transition);
}

.website-link:hover {
    background: var(--orange-lighter);
    color: var(--orange-dark);
}

/* =========================================================
   SIDEBAR OVERLAY
   ========================================================= */

.sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 90;

    background: rgba(7, 35, 70, 0.5);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity var(--transition),
        visibility var(--transition);
}

.sidebar-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* =========================================================
   MAIN
   ========================================================= */

.main {
    min-height: 100vh;

    margin-left: var(--sidebar-width);

    transition: opacity 180ms ease;
}

/* =========================================================
   TOPBAR
   ========================================================= */

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;

    min-height: var(--topbar-height);

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 14px 34px;

    background: rgba(255, 255, 255, 0.95);

    border-bottom: 1px solid var(--border);

    backdrop-filter: blur(12px);
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
}

.topbar-left {
    gap: 15px;
}

.topbar-right {
    gap: 20px;
}

/* =========================================================
   PAGE TITLE
   ========================================================= */

.page-title {
    color: var(--blue-deep);

    font-family: "Plus Jakarta Sans", sans-serif;

    font-size: 20px;
    font-weight: 800;

    line-height: 1.2;
}

.page-subtitle {
    margin-top: 4px;

    color: var(--text-soft);

    font-size: 12px;
    font-weight: 500;
}

/* =========================================================
   MOBILE MENU
   ========================================================= */

.mobile-menu-button {
    display: none;

    width: 42px;
    height: 42px;

    padding: 0;

    border: 1px solid var(--border);
    border-radius: 10px;

    background: #ffffff;

    color: var(--blue);

    font-size: 20px;

    cursor: pointer;

    transition:
        background var(--transition),
        border-color var(--transition);
}

.mobile-menu-button:hover {
    background: var(--blue-soft);
    border-color: #b8d2f5;
}

/* =========================================================
   NOTIFICATIONS
   ========================================================= */

.notification-button {
    position: relative;

    width: 40px;
    height: 40px;

    padding: 0;

    border: 1px solid var(--border);
    border-radius: 10px;

    background: #ffffff;

    color: var(--blue);

    font-size: 19px;

    cursor: pointer;

    transition:
        background var(--transition),
        border-color var(--transition);
}

.notification-button:hover {
    background: var(--blue-soft);
    border-color: #b8d2f5;
}

.notification-dot {
    position: absolute;

    top: 8px;
    right: 8px;

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: var(--orange);
}

/* =========================================================
   EMPLOYEE
   ========================================================= */

.employee {
    display: flex;
    align-items: center;

    gap: 10px;
}

.employee-avatar {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: var(--blue);

    color: #ffffff;

    font-size: 12px;
    font-weight: 800;

    box-shadow:
        0 4px 12px rgba(11, 94, 215, 0.2);
}

.employee-name {
    color: var(--text);

    font-size: 13px;
    font-weight: 700;
}

.employee-role {
    margin-top: 2px;

    color: var(--text-soft);

    font-size: 11px;
    font-weight: 500;

    text-transform: capitalize;
}

/* =========================================================
   CONTENT
   ========================================================= */

.content {
    width: min(
        1440px,
        calc(100% - 68px)
    );

    margin: 0 auto;

    padding: 38px 0 60px;
}

.content-heading {
    margin-bottom: 28px;
}

.content-heading h1 {
    margin: 0;

    color: var(--blue-deep);

    font-family: "Plus Jakarta Sans", sans-serif;

    font-size: clamp(
        25px,
        3vw,
        32px
    );

    font-weight: 800;

    letter-spacing: -0.025em;
}

.content-heading p {
    max-width: 720px;

    margin: 9px 0 0;

    color: var(--text-soft);

    font-size: 14px;

    line-height: 1.7;
}

/* =========================================================
   STATISTICS
   ========================================================= */

.stats-grid {
    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap: 16px;

    margin-bottom: 22px;
}

.stat-card {
    min-width: 0;

    padding: 20px;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: var(--radius);

    box-shadow: var(--shadow);

    transition:
        border-color var(--transition),
        transform var(--transition),
        box-shadow var(--transition);
}

.stat-card:hover {
    border-color: #cbdcf1;

    box-shadow:
        0 12px 34px rgba(
            7,
            59,
            136,
            0.08
        );

    transform: translateY(-1px);
}

.stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;
}

.stat-label {
    color: var(--text-soft);

    font-size: 12px;
    font-weight: 700;
}

.stat-icon {
    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    background: var(--blue-soft);

    color: var(--blue);

    font-size: 15px;
    font-weight: 800;
}

.stat-number {
    margin-top: 15px;

    color: var(--blue-deep);

    font-family: "Plus Jakarta Sans", sans-serif;

    font-size: 30px;
    font-weight: 800;

    line-height: 1;
}

.stat-description {
    margin-top: 8px;

    color: var(--text-muted);

    font-size: 11px;
    font-weight: 500;
}

/* Individual LikeStar stat accents */

.stat-card:nth-child(1) .stat-icon {
    background: var(--orange-soft);
    color: var(--orange);
}

.stat-card:nth-child(2) .stat-icon {
    background: var(--blue-soft);
    color: var(--blue);
}

.stat-card:nth-child(3) .stat-icon {
    background: var(--orange-soft);
    color: var(--orange);
}

.stat-card:nth-child(4) .stat-icon {
    background: var(--blue-soft);
    color: var(--blue-dark);
}

/* =========================================================
   TOOLBAR
   ========================================================= */

.toolbar-card {
    margin-bottom: 18px;

    padding: 14px;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: var(--radius);

    box-shadow: var(--shadow);
}

.toolbar {
    display: grid;

    grid-template-columns:
        minmax(240px, 1fr)
        170px
        150px
        auto;

    gap: 10px;
}

.search-box {
    display: flex;
    align-items: center;

    min-height: 44px;

    padding: 0 13px;

    border: 1px solid var(--border);
    border-radius: 10px;

    background: #ffffff;

    color: var(--text-muted);

    transition:
        border-color var(--transition),
        box-shadow var(--transition);
}

.search-box:focus-within {
    border-color: var(--blue);

    box-shadow:
        0 0 0 3px
        rgba(
            11,
            94,
            215,
            0.1
        );
}

.search-box > span {
    margin-right: 9px;

    color: var(--blue);

    font-size: 18px;
}

.search-box input {
    width: 100%;
    min-width: 0;

    border: 0;
    outline: 0;

    background: transparent;

    color: var(--text);

    font: inherit;
    font-size: 13px;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.filter-select {
    min-height: 44px;

    padding: 0 12px;

    border: 1px solid var(--border);
    border-radius: 10px;

    outline: 0;

    background: #ffffff;

    color: var(--text);

    font-family: inherit;

    font-size: 13px;
    font-weight: 600;

    cursor: pointer;

    transition:
        border-color var(--transition),
        box-shadow var(--transition);
}

.filter-select:focus {
    border-color: var(--blue);

    box-shadow:
        0 0 0 3px
        rgba(
            11,
            94,
            215,
            0.1
        );
}

.refresh-button {
    min-height: 44px;

    padding: 0 17px;

    border: 1px solid var(--blue);
    border-radius: 10px;

    background: var(--blue);

    color: #ffffff;

    font-family: inherit;

    font-size: 13px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background var(--transition),
        border-color var(--transition),
        transform var(--transition),
        box-shadow var(--transition);
}

.refresh-button:hover {
    background: var(--blue-dark);
    border-color: var(--blue-dark);

    box-shadow:
        0 5px 14px
        rgba(
            11,
            94,
            215,
            0.18
        );
}

.refresh-button:active {
    transform: translateY(1px);
}

/* =========================================================
   REVIEWS PANEL
   ========================================================= */

.reviews-card {
    overflow: hidden;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: var(--radius);

    box-shadow: var(--shadow);
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 72px;

    padding: 18px 22px;

    border-bottom: 1px solid var(--border);
}

.panel-title {
    color: var(--blue-deep);

    font-family: "Plus Jakarta Sans", sans-serif;

    font-size: 15px;
    font-weight: 800;
}

.panel-count {
    margin-top: 4px;

    color: var(--text-soft);

    font-size: 11px;
    font-weight: 500;
}

.review-list {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 14px;

    padding: 18px;
}

/* =========================================================
   REVIEW ITEM
   ========================================================= */

.review-item {
    min-width: 0;

    padding: 20px;

    border: 1px solid var(--border);

    border-radius: 14px;

    background: #ffffff;

    transition:
        border-color var(--transition),
        box-shadow var(--transition),
        transform var(--transition);
}

.review-item:hover {
    border-color: #bcd2ec;

    box-shadow:
        0 8px 25px
        rgba(
            7,
            59,
            136,
            0.08
        );

    transform: translateY(-1px);
}

.review-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 16px;
}

.review-customer {
    display: flex;
    align-items: center;

    min-width: 0;

    gap: 11px;
}

.review-avatar {
    width: 42px;
    height: 42px;

    flex: 0 0 42px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: var(--blue-soft);

    color: var(--blue);

    font-size: 12px;
    font-weight: 800;
}

.review-name {
    overflow: hidden;

    color: var(--text);

    font-size: 13px;
    font-weight: 800;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.review-service {
    margin-top: 3px;

    overflow: hidden;

    color: var(--text-soft);

    font-size: 11px;
    font-weight: 500;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.review-rating {
    flex: 0 0 auto;

    color: var(--orange);

    font-size: 13px;

    letter-spacing: 1px;

    white-space: nowrap;
}

.review-rating-number {
    margin-left: 5px;

    color: var(--text-soft);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 0;
}

.review-text {
    margin-top: 18px;

    color: #334155;

    font-size: 13px;

    line-height: 1.75;

    overflow-wrap: anywhere;
}

.review-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    margin-top: 18px;
    padding-top: 14px;

    border-top: 1px solid #edf2f7;
}

.review-date {
    color: var(--text-muted);

    font-size: 11px;
    font-weight: 500;
}

/* =========================================================
   STATUS
========================================================= */

.status {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 25px;

    padding: 0 9px;

    border-radius: 999px;

    font-size: 10px;
    font-weight: 800;

    line-height: 1;

    white-space: nowrap;
}

.status-pending {
    background: var(--orange-soft);
    color: var(--orange-dark);
}

.status-published {
    background: var(--blue-soft);
    color: var(--blue);
}

.status-rejected {
    background: var(--red-soft);
    color: var(--red);
}

.status-hidden {
    background: #eef2f7;
    color: #64748b;
}

/* =========================================================
   REVIEW ACTIONS
   ========================================================= */

.review-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 7px;

    margin-top: 16px;
}

.review-action {
    min-height: 34px;

    padding: 0 11px;

    border: 1px solid var(--border);

    border-radius: 8px;

    background: #ffffff;

    color: #475569;

    font-family: inherit;

    font-size: 11px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background var(--transition),
        border-color var(--transition),
        color var(--transition),
        box-shadow var(--transition);
}

.review-action:hover {
    background: var(--blue-lighter);

    border-color: #bfd3ec;

    color: var(--blue);
}

.review-action.view {
    color: var(--blue);
    border-color: #c8daf1;
}

.review-action.view:hover {
    background: var(--blue-soft);
}

.review-action.approve {
    border-color: #b8d3f4;

    background: var(--blue-soft);

    color: var(--blue);
}

.review-action.approve:hover {
    background: #dcecff;

    border-color: #a9c9ef;
}

.review-action.reject {
    border-color: #f4c9c4;

    background: var(--orange-soft);

    color: var(--orange-dark);
}

.review-action.reject:hover {
    background: #ffe8d1;

    border-color: #efb99e;
}

/* =========================================================
   EMPTY STATE
   ========================================================= */

.empty-state {
    min-height: 260px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 45px 24px;

    text-align: center;
}

.empty-icon {
    width: 52px;
    height: 52px;

    display: grid;
    place-items: center;

    margin-bottom: 15px;

    border-radius: 14px;

    background: var(--orange-soft);

    color: var(--orange);

    font-size: 22px;
}

.empty-state h3 {
    margin: 0;

    color: var(--blue-deep);

    font-family: "Plus Jakarta Sans", sans-serif;

    font-size: 16px;
    font-weight: 800;
}

.empty-state p {
    max-width: 480px;

    margin: 8px 0 0;

    color: var(--text-soft);

    font-size: 12px;

    line-height: 1.7;
}

/* =========================================================
   MODAL
   ========================================================= */

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 200;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;

    background:
        rgba(
            7,
            35,
            70,
            0.58
        );

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity var(--transition),
        visibility var(--transition);
}

.modal-backdrop.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal {
    width: min(
        580px,
        100%
    );

    max-height:
        calc(100vh - 48px);

    overflow: auto;

    background: #ffffff;

    border: 1px solid
        rgba(
            255,
            255,
            255,
            0.4
        );

    border-radius: 18px;

    box-shadow: var(--shadow-large);

    transform:
        translateY(10px)
        scale(0.98);

    transition:
        transform var(--transition);
}

.modal-backdrop.open .modal {
    transform:
        translateY(0)
        scale(1);
}

/* =========================================================
   MODAL HEADER
   ========================================================= */

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 18px;

    padding: 22px;

    border-bottom: 1px solid var(--border);
}

.modal-title {
    color: var(--blue-deep);

    font-family: "Plus Jakarta Sans", sans-serif;

    font-size: 18px;
    font-weight: 800;
}

.modal-subtitle {
    margin-top: 4px;

    color: var(--text-soft);

    font-size: 12px;
}

.modal-close {
    width: 36px;
    height: 36px;

    flex: 0 0 36px;

    display: grid;
    place-items: center;

    padding: 0;

    border: 1px solid var(--border);

    border-radius: 9px;

    background: #ffffff;

    color: var(--text-soft);

    font-size: 21px;

    line-height: 1;

    cursor: pointer;

    transition:
        background var(--transition),
        color var(--transition),
        border-color var(--transition);
}

.modal-close:hover {
    background: var(--blue-soft);

    border-color: #c5d9f1;

    color: var(--blue);
}

/* =========================================================
   MODAL BODY
   ========================================================= */

.modal-body {
    padding: 22px;
}

.modal-review {
    padding: 18px;

    border: 1px solid var(--border);

    border-radius: 14px;

    background: var(--surface-soft);
}

.modal-review-top {
    display: flex;
    align-items: center;

    gap: 12px;
}

.modal-review-avatar {
    width: 44px;
    height: 44px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: var(--blue-soft);

    color: var(--blue);

    font-size: 12px;
    font-weight: 800;
}

.modal-review-name {
    color: var(--text);

    font-size: 14px;
    font-weight: 800;
}

.modal-review-service {
    margin-top: 3px;

    color: var(--text-soft);

    font-size: 11px;
}

.modal-stars {
    margin-top: 18px;

    color: var(--orange);

    font-size: 17px;

    letter-spacing: 2px;
}

.modal-review-text {
    margin-top: 15px;

    color: #334155;

    font-size: 13px;

    line-height: 1.8;

    overflow-wrap: anywhere;
}

.moderation-note {
    margin-top: 16px;

    padding: 13px 14px;

    border: 1px solid #dbe7f5;

    border-radius: 10px;

    background: var(--blue-lighter);

    color: var(--text-soft);

    font-size: 11px;

    line-height: 1.65;
}

/* =========================================================
   MODAL FOOTER
   ========================================================= */

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 18px;

    padding: 18px 22px;

    border-top: 1px solid var(--border);
}

.modal-status {
    display: flex;
    align-items: center;

    gap: 9px;
}

.modal-status-label {
    color: var(--text-muted);

    font-size: 10px;
    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.05em;
}

.modal-actions {
    display: flex;
    align-items: center;

    gap: 8px;
}

.modal-action {
    min-height: 38px;

    padding: 0 14px;

    border-radius: 9px;

    font-family: inherit;

    font-size: 12px;
    font-weight: 800;

    cursor: pointer;

    transition:
        background var(--transition),
        border-color var(--transition),
        transform var(--transition);
}

.modal-action:active {
    transform: translateY(1px);
}

.modal-action.reject {
    border: 1px solid #f4c9c4;

    background: var(--orange-soft);

    color: var(--orange-dark);
}

.modal-action.reject:hover {
    background: #ffe8d1;

    border-color: #efb99e;
}

.modal-action.approve {
    border: 1px solid var(--blue);

    background: var(--blue);

    color: #ffffff;

    box-shadow:
        0 5px 14px
        rgba(
            11,
            94,
            215,
            0.16
        );
}

.modal-action.approve:hover {
    background: var(--blue-dark);

    border-color: var(--blue-dark);
}

/* =========================================================
   FOCUS
   ========================================================= */

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid
        rgba(
            11,
            94,
            215,
            0.2
        );

    outline-offset: 2px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1150px) {

    .toolbar {
        grid-template-columns:
            minmax(220px, 1fr)
            150px
            140px;
    }

    .refresh-button {
        grid-column: 1 / -1;

        justify-self: flex-start;
    }

    .review-list {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    :root {
        --sidebar-width: 260px;
    }

    .sidebar {
        transform:
            translateX(-100%);

        box-shadow: none;
    }

    .sidebar.open {
        transform:
            translateX(0);

        box-shadow:
            12px 0 40px
            rgba(
                7,
                59,
                136,
                0.14
            );
    }

    .main {
        margin-left: 0;
    }

    .mobile-menu-button {
        display: grid;
        place-items: center;
    }

    .topbar {
        padding: 13px 20px;
    }

    .content {
        width:
            min(
                calc(100% - 40px),
                760px
            );

        padding-top: 28px;
    }

    .stats-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

    .toolbar {
        grid-template-columns:
            1fr 1fr;
    }

    .search-box {
        grid-column: 1 / -1;
    }

    .refresh-button {
        grid-column: auto;

        width: 100%;
    }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 620px) {

    .topbar {
        min-height: 68px;

        padding: 11px 15px;
    }

    .topbar-right {
        gap: 8px;
    }

    .notification-button {
        display: none;
    }

    .employee > div:last-child {
        display: none;
    }

    .employee-avatar {
        width: 36px;
        height: 36px;
    }

    .page-title {
        font-size: 17px;
    }

    .page-subtitle {
        display: none;
    }

    .content {
        width:
            calc(100% - 28px);

        padding: 24px 0 40px;
    }

    .content-heading {
        margin-bottom: 20px;
    }

    .content-heading h1 {
        font-size: 24px;
    }

    .content-heading p {
        font-size: 12px;
    }

    .stats-grid {
        gap: 10px;
    }

    .stat-card {
        padding: 15px;
    }

    .stat-number {
        font-size: 24px;
    }

    .stat-description {
        font-size: 10px;
    }

    .toolbar-card {
        padding: 10px;
    }

    .toolbar {
        grid-template-columns: 1fr;
    }

    .search-box {
        grid-column: auto;
    }

    .refresh-button {
        grid-column: auto;
    }

    .panel-header {
        padding: 16px;
    }

    .review-list {
        padding: 10px;
    }

    .review-item {
        padding: 16px;
    }

    .review-header {
        flex-direction: column;

        gap: 12px;
    }

    .review-rating {
        align-self: flex-start;
    }

    .review-meta {
        align-items: flex-start;

        flex-direction: column;
    }

    .review-actions {
        justify-content: flex-start;

        flex-wrap: wrap;
    }

    .modal-backdrop {
        padding: 12px;
    }

    .modal {
        max-height:
            calc(100vh - 24px);

        border-radius: 15px;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 16px;
    }

    .modal-footer {
        align-items: stretch;

        flex-direction: column;
    }

    .modal-actions {
        width: 100%;
    }

    .modal-action {
        flex: 1;
    }
}

/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 420px) {

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        min-height: 120px;
    }

    .sidebar {
        width:
            min(
                88vw,
                300px
            );
    }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;

        transition-duration:
            0.01ms !important;

        animation-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;
    }
}