/* ============================================================
   MODERN ADMIN SYSTEM — DESIGN SYSTEM
   Aesthetic: Refined Slate / Warm Ivory — Professional & Precise
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Syne:wght@600;700;800&display=swap');

/* ============================================================
   1. CSS DESIGN TOKENS
   ============================================================ */

:root {
    /* Core palette */
    --color-primary: #1E2B4A;
    --color-primary-mid: #2A3D6B;
    --color-primary-light: #3D5A99;
    --color-accent: #5E8BFF;
    --color-accent-warm: #FF7B54;
    --color-accent-teal: #1DBFC1;

    /* Surfaces */
    --color-bg: #F4F3EE;
    --color-surface: #FFFFFF;
    --color-surface-alt: #F8F7F3;
    --color-surface-raised: #FFFFFF;
    --color-border: #E8E6DF;
    --color-border-strong: #D0CEC6;

    /* Sidebar */
    --sidebar-bg: #121826;
    --sidebar-bg-hover: #1C2537;
    --sidebar-text: #A8B2C8;
    --sidebar-text-active: #FFFFFF;
    --sidebar-accent: #5E8BFF;

    /* Header */
    --header-bg: #FFFFFF;
    --header-border: #E8E6DF;
    --header-logo-bg: #1E2B4A;

    /* Text */
    --text-primary: #1A1F2E;
    --text-secondary: #5A6479;
    --text-muted: #9AA0B0;
    --text-inverse: #FFFFFF;

    /* Semantic */
    --color-success: #22C55E;
    --color-success-bg: #F0FDF4;
    --color-success-border: #BBF7D0;
    --color-danger: #EF4444;
    --color-danger-bg: #FEF2F2;
    --color-danger-border: #FECACA;
    --color-warning: #F59E0B;
    --color-warning-bg: #FFFBEB;
    --color-warning-border: #FDE68A;
    --color-info: #3B82F6;
    --color-info-bg: #EFF6FF;
    --color-info-border: #BFDBFE;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(26, 31, 46, 0.05);
    --shadow-sm: 0 1px 3px rgba(26, 31, 46, 0.08), 0 1px 2px rgba(26, 31, 46, 0.04);
    --shadow-md: 0 4px 6px rgba(26, 31, 46, 0.07), 0 2px 4px rgba(26, 31, 46, 0.05);
    --shadow-lg: 0 10px 25px rgba(26, 31, 46, 0.10), 0 4px 10px rgba(26, 31, 46, 0.06);
    --shadow-xl: 0 20px 40px rgba(26, 31, 46, 0.12), 0 8px 16px rgba(26, 31, 46, 0.08);

    /* Radii */
    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    /* Spacing */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;

    /* Typography */
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Syne', 'DM Sans', sans-serif;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Layout */
    --sidebar-width: 230px;
    --header-height: 68px;
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    height: 100%;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--color-bg);
    overflow-x: hidden;
    height: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    line-height: 1.2;
}

h1,
.h1 {
    font-size: 2.25rem;
}

h2,
.h2 {
    font-size: 1.75rem;
}

h3,
.h3 {
    font-size: 1.375rem;
}

h4,
.h4 {
    font-size: 1.125rem;
}

h5,
.h5 {
    font-size: 0.875rem;
}

h6,
.h6 {
    font-size: 0.75rem;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover,
a:focus {
    color: var(--color-primary-light);
    text-decoration: none;
    outline: none;
}

input,
button,
a {
    transition: all var(--transition-base);
}

input,
button {
    outline: none;
}

::placeholder {
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.875rem;
}

/* ============================================================
   3. FORM CONTROLS
   ============================================================ */

.form-control {
    border-radius: var(--radius-sm);
    box-shadow: none;
    padding: 0.5625rem 0.875rem;
    border: 1.5px solid var(--color-border);
    font-size: 0.875rem;
    font-family: var(--font-body);
    min-height: 42px;
    background: var(--color-surface);
    color: var(--text-primary);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.form-control:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(94, 139, 255, 0.15);
    outline: none;
    background: var(--color-surface);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

input[type="file"] {
    height: auto;
    padding: 8px 0.875rem;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* ============================================================
   4. BUTTONS
   ============================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-sm);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.btn:focus,
.btn.focus {
    box-shadow: none !important;
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.btn-primary {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--color-primary-mid);
    border-color: var(--color-primary-mid);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-primary:active,
.btn-primary.active,
.btn-primary:active:not(:disabled):not(.disabled),
.show>.btn-primary.dropdown-toggle {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
    transform: translateY(0);
}

.btn-outline-primary {
    background: transparent;
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.btn-outline-primary:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-success {
    background: var(--color-success);
    border-color: var(--color-success);
    color: #fff;
}

.btn-success:hover {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
    transform: translateY(-1px);
}

.btn-danger {
    background: var(--color-danger);
    border-color: var(--color-danger);
    color: #fff;
}

.btn-danger:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: #fff;
    transform: translateY(-1px);
}

.btn-warning {
    background: var(--color-warning);
    border-color: var(--color-warning);
    color: #fff;
}

.btn-warning:hover {
    background: #d97706;
    border-color: #d97706;
    color: #fff;
    transform: translateY(-1px);
}

.btn-info {
    background: var(--color-info);
    border-color: var(--color-info);
    color: #fff;
}

.btn-info:hover {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
    transform: translateY(-1px);
}

.btn-white {
    background: var(--color-surface);
    border: 1.5px solid var(--color-border);
    color: var(--text-primary);
}

.btn-white:hover {
    background: var(--color-surface-alt);
    border-color: var(--color-border-strong);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn.btn-rounded,
.btn.rounded {
    border-radius: var(--radius-full);
}

.btn-grey {
    background: #A0AAB8;
    border-color: #A0AAB8;
    color: #fff;
}

.rounded,
.circle {
    border-radius: var(--radius-full);
}

/* Filter row buttons */
.filter-row .btn {
    border-radius: var(--radius-sm);
    min-height: 42px;
    padding: 10px 20px;
    text-transform: uppercase;
    font-size: 0.8125rem;
    letter-spacing: 0.05em;
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.filter-row .btn.active,
.filter-row .btn:active {
    background: var(--color-primary-mid) !important;
    border-color: var(--color-primary-mid) !important;
}

/* ============================================================
   5. CARDS
   ============================================================ */

.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-base), transform var(--transition-base);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-body {
    padding: 20px;
}

.card-title {
    font-family: var(--font-display);
    color: var(--text-primary);
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: -0.01em;
}

.card .card-header {
    background: var(--color-surface-alt) !important;
    border-bottom: 1px solid var(--color-border);
    color: var(--text-primary) !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    padding: 14px 20px !important;
}

.card .card-header .card-title {
    font-size: 0.9375rem;
    font-weight: 700;
    margin: 0;
    padding: 4px 0;
    text-transform: none;
    letter-spacing: -0.01em;
}

.card-box {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    padding: 20px;
    position: relative;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

/* ============================================================
   6. HEADER
   ============================================================ */

.header-menu {
    background: var(--header-bg);
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 1039;
    height: var(--header-height);
    border-bottom: 1px solid var(--header-border);
    box-shadow: var(--shadow-xs);
    display: flex;
    align-items: center;
}

.header-menu .header-left {
    float: left;
    height: var(--header-height);
    padding: 0 20px;
    display: flex;
    align-items: center;
    text-align: center;
    width: var(--sidebar-width);
    background: var(--header-logo-bg);
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
    text-decoration: none;
}

.logo img {
    filter: brightness(0) invert(1);
    max-height: 36px;
}

.logo span {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.125rem;
    color: #fff;
    padding-left: 12px;
    letter-spacing: 0.02em;
    opacity: 0.95;
    vertical-align: middle;
}

.header-menu .dropdown-toggle::after {
    display: none;
}

.header-menu .has-arrow .dropdown-toggle::after {
    display: inline-block;
    color: var(--text-secondary);
}

.user-menu {
    margin: 0;
    position: relative;
    z-index: 99;
    display: flex;
    align-items: center;
}

.user-menu.nav>li>a {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: var(--header-height);
    padding: 0 16px;
    height: var(--header-height);
    font-weight: 600;
    position: relative;
    display: flex;
    align-items: center;
    transition: color var(--transition-fast), background var(--transition-fast);
}

.user-menu.nav>li>a:hover,
.user-menu.nav>li>a:focus {
    background: var(--color-surface-alt);
    color: var(--color-primary);
}

.user-menu.nav>li>a>i {
    font-size: 18px;
    line-height: 1;
}

.user-menu.nav>li:after {
    content: "";
    position: absolute;
    width: 1px;
    height: 24px;
    right: 0;
    background: var(--color-border);
    top: 50%;
    transform: translateY(-50%);
}

.user-menu.nav>.has-arrow:after {
    content: none;
}

.user-img {
    display: inline-flex;
    position: relative;
    align-items: center;
}

.user-img img {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid var(--color-border);
}

.user-img .status {
    border: 2px solid #fff;
    bottom: 0;
    height: 10px;
    position: absolute;
    right: 0;
    width: 10px;
    border-radius: var(--radius-full);
}

.user-menu .user-img .status {
    bottom: 6px;
}

.user-menu .dropdown-menu {
    min-width: 160px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    padding: 6px;
}

.user-menu .bg-primary {
    background-color: var(--color-accent) !important;
}

.header-menu .navbar-nav .badge {
    position: absolute;
    right: 6px;
    top: 8px;
    font-size: 9px;
    width: 8px;
    height: 8px;
    padding: 0;
    border-radius: var(--radius-full);
}

.status {
    background-color: var(--text-muted);
    border-radius: var(--radius-full);
    display: inline-block;
    height: 10px;
    width: 10px;
}

.status.online {
    background: var(--color-success);
}

.status.offline {
    background: var(--color-danger);
}

.status.away {
    background: var(--color-warning);
}

/* Top nav search */
.top-nav-search {
    float: left;
    margin-top: 0;
    display: flex;
    align-items: center;
    height: var(--header-height);
    padding: 0 12px;
}

.top-nav-search .input-group {
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-full);
    background: var(--color-surface-alt);
    overflow: hidden;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.top-nav-search .input-group:focus-within {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(94, 139, 255, 0.12);
}

.top-nav-search .input-group .form-control {
    background: transparent;
    border: none;
    border-radius: var(--radius-full) 0 0 var(--radius-full);
    min-height: 36px;
    padding: 4px 14px;
    font-size: 0.875rem;
    color: var(--text-primary);
    box-shadow: none;
}

.top-nav-search .input-group-text {
    background: transparent;
    border: none;
    border-radius: 0 var(--radius-full) var(--radius-full) 0;
    color: var(--text-muted);
    padding: 4px 14px;
}

/* Toggle button */
#toggle_btn {
    color: var(--text-secondary);
    float: left;
    font-size: 18px;
    line-height: var(--header-height);
    padding: 0 14px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color var(--transition-fast);
    display: flex;
    align-items: center;
    height: var(--header-height);
}

#toggle_btn:hover {
    color: var(--color-primary);
}

/* Page title box */
.page-title-box {
    border-radius: 0;
    height: 48px;
    margin-bottom: 0;
    padding: 12px 20px;
    display: flex;
    align-items: center;
}

.page-title-box h3 {
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0;
}

/* ============================================================
   7. SIDEBAR
   ============================================================ */

.sidebar {
    top: var(--header-height);
    width: var(--sidebar-width);
    z-index: 1038;
    background: var(--sidebar-bg);
    bottom: 0;
    margin-top: 0;
    position: fixed;
    left: 0;
    transition: all var(--transition-slow);
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-accent-teal) 100%);
}

.sidebar-inner {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.sidebar-inner::-webkit-scrollbar {
    width: 4px;
}

.sidebar-inner::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-inner::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.sidebar-menu ul {
    font-size: 0.875rem;
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.sidebar-menu li a {
    color: var(--sidebar-text);
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    height: auto;
    min-height: 42px;
    padding: 0 18px;
    transition: all var(--transition-fast);
    font-weight: 500;
    text-decoration: none;
    position: relative;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 1px 10px 1px 0;
}

.sidebar-menu li a:hover {
    color: var(--sidebar-text-active);
    background: var(--sidebar-bg-hover);
}

.sidebar-menu>ul>li>a {
    padding: 10px 18px;
    align-items: center;
    display: flex;
    justify-content: flex-start;
    position: relative;
}

.sidebar-menu li.active>a {
    color: var(--sidebar-text-active);
    background: linear-gradient(90deg, rgba(94, 139, 255, 0.2) 0%, transparent 100%);
    border-right: 2.5px solid var(--color-accent);
}

.sidebar-menu li a i {
    font-size: 15px;
    margin-right: 10px;
    min-width: 18px;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.sidebar-menu li a:hover i,
.sidebar-menu li.active>a i {
    opacity: 1;
}

.sidebar-menu li a>.badge {
    margin-top: 0;
    margin-left: auto;
    font-size: 0.6875rem;
    font-weight: 700;
    background: var(--color-accent);
    color: #fff;
    border-radius: var(--radius-full);
    padding: 2px 8px;
}

.sidebar .sidebar-menu>ul>li>a span {
    transition: all 0.2s ease-in-out;
    display: inline-block;
    margin-left: 8px;
    white-space: nowrap;
    font-weight: 500;
}

.menu-title {
    color: rgba(168, 178, 200, 0.5);
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1;
    min-height: 32px;
    padding: 18px 18px 6px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    align-items: flex-end;
}

.menu-title>i {
    float: right;
    line-height: 40px;
}

#sidebar-menu ul ul a {
    display: block;
    padding: 8px 18px 8px 54px;
    font-size: 0.8125rem;
    min-height: 36px;
    color: rgba(168, 178, 200, 0.7);
}

#sidebar-menu ul ul a:hover {
    color: #fff;
}

#sidebar-menu ul ul {
    background: rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-xs);
    overflow: hidden;
}

.sidebar-menu>ul>li {
    position: relative;
}

.sidebar-menu .menu-arrow {
    transition: transform 0.15s ease;
    position: absolute;
    right: 16px;
    display: inline-block;
    font-family: 'Font Awesome 5 Free';
    font-weight: 600;
    font-size: 12px;
    line-height: 1;
    color: rgba(168, 178, 200, 0.5);
}

.sidebar-menu .menu-arrow::before {
    content: "\f105";
}

.sidebar-menu li a.subdrop .menu-arrow {
    transform: rotate(90deg);
    color: var(--color-accent);
}

/* Mini sidebar */
.mini-sidebar .logo span {
    display: none;
}

.mini-sidebar .header-menu .header-left {
    padding: 0;
    width: 60px;
    justify-content: center;
}

.mini-sidebar .sidebar {
    width: 60px;
}

.mini-sidebar.expand-menu .sidebar {
    width: var(--sidebar-width);
}

.mini-sidebar .menu-title {
    visibility: hidden;
    white-space: nowrap;
}

.mini-sidebar.expand-menu .menu-title {
    visibility: visible;
}

.mini-sidebar .sidebar .sidebar-menu ul>li>a span {
    display: none;
    opacity: 0;
}

.mini-sidebar.expand-menu .sidebar .sidebar-menu ul>li>a span {
    display: inline;
    opacity: 1;
}

.mini-sidebar .page-wrapper {
    margin-left: 60px;
}

/* Sidebar overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    z-index: 90;
    height: 100%;
    left: 0;
    top: 50px;
    width: 100%;
    z-index: 99;
    background: rgba(18, 24, 38, 0.6);
    backdrop-filter: blur(4px);
}

.sidebar-overlay.opened {
    display: block;
}

.sidebar-menu.opened {
    opacity: 1;
    transform: translateX(0);
    margin-left: 0;
}

/* Mobile button */
.mobile_btn {
    display: none;
}

#mobile_btn i {
    color: var(--text-primary);
}

/* ============================================================
   8. PAGE WRAPPER & CONTENT
   ============================================================ */

.page-wrapper {
    left: 0;
    margin-left: var(--sidebar-width);
    padding-top: var(--header-height);
    position: relative;
    transition: all var(--transition-slow);
    min-height: 100vh;
}

.page-wrapper>.content {
    padding: 28px;
}

.page-title {
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.page-sub-title {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 24px;
}

.admin_title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 22px;
    color: var(--text-primary);
}

/* ============================================================
   9. TABLES
   ============================================================ */

.table {
    color: var(--text-primary);
    border: 1px solid var(--color-border);
    font-family: var(--font-body);
    border-radius: var(--radius-md);
    overflow: hidden;
    border-collapse: separate;
    border-spacing: 0;
}

.table.table-white {
    background: var(--color-surface);
}

.table>thead>tr>th,
table th {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: var(--color-surface-alt);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 12px 16px;
    border-bottom: 1.5px solid var(--color-border);
    border-top: none;
    white-space: nowrap;
}

.table>tbody>tr>td,
table td {
    font-weight: 400;
    font-size: 0.875rem;
    color: var(--text-primary);
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
}

.table>tbody>tr:last-child>td {
    border-bottom: none;
}

.table-striped>tbody>tr:nth-of-type(odd) {
    background: rgba(244, 243, 238, 0.5);
}

.table>tbody>tr {
    transition: background var(--transition-fast);
}

.table>tbody>tr:hover {
    background: var(--color-surface-alt);
}

table.table td .avatar {
    margin: 0 6px 0 0;
}

table.table td h2 {
    display: inline-block;
    font-size: inherit;
    font-weight: 500;
    margin: 0;
    padding: 0;
    vertical-align: middle;
}

table.table td h2 a {
    color: var(--text-secondary);
}

table.table td h2 a:hover {
    color: var(--color-accent);
}

table.table td h2 span {
    color: var(--text-muted);
    display: block;
    font-size: 0.75rem;
    margin-top: 2px;
}

.table h5 {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0;
    vertical-align: middle;
}

.table h5+p {
    color: var(--text-muted);
    font-size: 0.8125rem;
    line-height: 1.4;
    margin-bottom: 0;
}

.custom-table tr {
    background: var(--color-surface);
}

.table.custom-table>tbody>tr>td,
.table.custom-table>tbody>tr>th,
.table.custom-table>tfoot>tr>td,
.table.custom-table>tfoot>tr>th,
.table.custom-table>thead>tr>td,
.table.custom-table>thead>tr>th {
    padding: 12px 14px;
    vertical-align: middle;
}

.custom-table tr {
    box-shadow: none;
}

/* Edit / delete actions */
.edit {
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.edit:hover {
    color: var(--color-accent);
}

.del {
    color: var(--color-danger);
    transition: color var(--transition-fast);
}

.del:hover {
    color: #dc2626;
}

/* ============================================================
   10. BADGES & STATUS
   ============================================================ */

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.6875rem;
    letter-spacing: 0.03em;
    padding: 3px 9px;
    border-radius: var(--radius-full);
}

.badge-primary {
    background: var(--color-primary);
    color: #fff;
}

.badge-success {
    background: var(--color-success);
    color: #fff;
}

.badge-danger {
    background: var(--color-danger);
    color: #fff;
}

.badge-warning {
    background: var(--color-warning);
    color: #fff;
}

.badge-info {
    background: var(--color-info);
    color: #fff;
}

.badge.badge-pill {
    border-radius: var(--radius-full);
}

.badge-success-border {
    border: 1.5px solid var(--color-success);
    color: var(--color-success);
    background: var(--color-success-bg);
    display: inline-block;
    min-width: 80px;
    text-align: center;
    padding: 3px 9px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-danger-border {
    border: 1.5px solid var(--color-danger);
    color: var(--color-danger);
    background: var(--color-danger-bg);
    display: inline-block;
    min-width: 80px;
    text-align: center;
    padding: 3px 9px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-warning-border {
    border: 1.5px solid var(--color-warning);
    color: var(--color-warning);
    background: var(--color-warning-bg);
    display: inline-block;
    min-width: 80px;
    text-align: center;
    padding: 3px 9px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-info-border {
    border: 1.5px solid var(--color-info);
    color: var(--color-info);
    background: var(--color-info-bg);
    display: inline-block;
    min-width: 80px;
    text-align: center;
    padding: 3px 9px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

/* Custom status badges */
.custom-badge {
    border-radius: var(--radius-full);
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 90px;
    padding: 3px 12px;
    text-align: center;
}

.status-red,
a.status-red {
    background: var(--color-danger-bg);
    border: 1.5px solid var(--color-danger);
    color: var(--color-danger);
    border-radius: var(--radius-full);
}

.status-green,
a.status-green {
    background: var(--color-success-bg);
    border: 1.5px solid var(--color-success);
    color: var(--color-success);
    border-radius: var(--radius-full);
}

.status-orange,
a.status-orange {
    background: #FFFBEB;
    border: 1.5px solid #F59E0B;
    color: #D97706;
    border-radius: var(--radius-full);
}

.status-blue,
a.status-blue {
    background: var(--color-info-bg);
    border: 1.5px solid var(--color-info);
    color: var(--color-info);
    border-radius: var(--radius-full);
}

.status-purple,
a.status-purple {
    background: #F5F3FF;
    border: 1.5px solid #7C3AED;
    color: #7C3AED;
    border-radius: var(--radius-full);
}

.status-pink,
a.status-pink {
    background: #FDF2F8;
    border: 1.5px solid #EC4899;
    color: #EC4899;
    border-radius: var(--radius-full);
}

.status-grey,
a.status-grey {
    background: #F9FAFB;
    border: 1.5px solid #9CA3AF;
    color: #6B7280;
    border-radius: var(--radius-full);
}

/* ============================================================
   11. DROPDOWNS
   ============================================================ */

.dropdown-menu {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    background: var(--color-surface);
    padding: 6px;
    font-size: 0.875rem;
    min-width: 160px;
    animation: dropdownFadeIn 0.15s ease;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-menu .dropdown-item,
.dropdown-menu>li>a {
    display: block;
    padding: 8px 12px;
    color: var(--text-primary);
    border-radius: var(--radius-xs);
    font-size: 0.875rem;
    transition: background var(--transition-fast), color var(--transition-fast);
    cursor: pointer;
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu>li>a:hover {
    background: var(--color-surface-alt);
    color: var(--color-primary);
}

.dropdown-action .dropdown-toggle::after {
    display: none;
}

.profile-action .dropdown-toggle::after {
    display: none;
}

.table .dropdown-menu {
    font-size: 0.8125rem;
}

/* ============================================================
   12. AVATARS
   ============================================================ */

.avatar {
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
    border-radius: var(--radius-full);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    height: 38px;
    width: 38px;
    overflow: hidden;
    text-transform: uppercase;
    vertical-align: middle;
    font-size: 0.875rem;
    flex-shrink: 0;
    text-decoration: none;
}

.avatar:hover {
    color: #fff;
}

.avatar>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ============================================================
   13. DASHBOARD WIDGETS
   ============================================================ */

.dash-widget {
    padding: 18px 0;
    display: inline-block;
}

.dash-widget-bg1 {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, #FF6B9D 0%, #EF2A82 100%);
    color: #fff;
    font-size: 22px;
    flex-shrink: 0;
    float: left;
    box-shadow: 0 8px 20px rgba(239, 42, 130, 0.3);
}

.dash-widget-bg2 {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, #FFD970 0%, #FFCC41 100%);
    color: #fff;
    font-size: 22px;
    flex-shrink: 0;
    float: left;
    box-shadow: 0 8px 20px rgba(255, 204, 65, 0.3);
}

.dash-widget-bg3 {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, #5EA5FF 0%, #209DFF 100%);
    color: #fff;
    font-size: 22px;
    flex-shrink: 0;
    float: left;
    box-shadow: 0 8px 20px rgba(32, 157, 255, 0.3);
}

.dash-widget-bg4 {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, #36D5D7 0%, #1DBFC1 100%);
    color: #fff;
    font-size: 22px;
    flex-shrink: 0;
    float: left;
    box-shadow: 0 8px 20px rgba(29, 191, 193, 0.3);
}

.dash-widget-info {
    padding-left: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dash-widget-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dash-widget-info h4 {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0;
    letter-spacing: -0.02em;
}

.dash-widget-info>h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: -0.03em;
}

.dash-widget-icon {
    border-radius: var(--radius-full);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    float: left;
    font-size: 26px;
    height: 60px;
    line-height: 1;
    margin-right: 14px;
    width: 60px;
}

/* Surgeon / specialist card elements */
.surgeon h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.surgeon span {
    font-weight: 500;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.surgeon h6 {
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--text-primary);
    padding-top: 14px;
    margin: 0;
}

.surgeon img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    padding: 8px;
    object-fit: cover;
}

.surgeon .heart img {
    background: #FFEEF3;
}

.surgeon .pediatrician img {
    background: #EFF6FF;
}

.surgeon .neurologist img {
    background: #FFFBEB;
}

/* Chart-related */
.chart-title {
    margin-bottom: 22px;
}

.chart-title h4 {
    display: inline-block;
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}

.chart-title span {
    color: var(--color-accent);
}

.income_det h1 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent-teal);
}

.expense_det h1 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: #8EE2E3;
}

.income_det p,
.expense_det p {
    color: var(--text-muted);
    font-size: 0.8125rem;
}

/* ============================================================
   14. LOGIN / ACCOUNT PAGES
   ============================================================ */

.account-page {
    padding: 40px 0;
    background: var(--color-bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.account-wrapper {
    display: table;
    table-layout: fixed;
    height: 100%;
    width: 100%;
}

.account-center {
    display: table-cell;
    vertical-align: middle;
}

.account-box {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    margin: 0 auto;
    padding: 36px 32px;
    width: 420px;
    box-shadow: var(--shadow-xl);
}

.account-box .form-control {
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    box-shadow: none;
    font-size: 0.875rem;
    height: 44px;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.account-box .form-control:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(94, 139, 255, 0.15);
}

.account-box textarea.form-control {
    height: auto;
}

.account-box label {
    color: var(--text-secondary);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.account-box .form-group {
    margin-bottom: 20px;
}

.account-box .account-btn {
    border-radius: var(--radius-full);
    font-size: 0.9375rem;
    font-weight: 700;
    min-width: 160px;
    padding: 12px 32px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.account-box a {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.account-box a:hover {
    color: var(--color-accent);
}

.account-logo {
    margin-bottom: 24px;
    text-align: center;
}

.account-logo img {
    max-height: 56px;
    width: auto;
}

.account-title h3 {
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 28px;
    text-align: center;
    letter-spacing: -0.02em;
}

.account-content {
    background: var(--color-bg);
}

.forgot-link {
    margin-bottom: 20px;
}

/* ============================================================
   15. PROFILE
   ============================================================ */

.profile-widget {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    padding: 24px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: box-shadow var(--transition-base);
}

.profile-widget:hover {
    box-shadow: var(--shadow-md);
}

.profile-widget .user-name>a {
    color: var(--text-primary);
    font-weight: 600;
}

.dropdown.profile-action {
    position: absolute;
    right: 10px;
    top: 12px;
}

.profile-img {
    cursor: pointer;
    height: 80px;
    margin: 0 auto 12px;
    position: relative;
    width: 80px;
}

.profile-img .avatar {
    font-size: 1.5rem;
    height: 80px;
    line-height: 80px;
    margin: 0;
    width: 80px;
}

.profile-img-wrap {
    height: 120px;
    position: absolute;
    width: 120px;
    background: var(--color-surface);
    overflow: hidden;
    border-radius: var(--radius-full);
}

.profile-basic {
    margin-left: 148px;
}

.profile-img-wrap img {
    width: 120px;
    height: 120px;
    object-fit: cover;
}

.personal-info {
    list-style: none;
    margin-bottom: 0;
    padding: 0;
}

.personal-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 12px;
}

.personal-info li .title {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.8125rem;
    min-width: 120px;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.personal-info li .text {
    color: var(--text-primary);
    font-size: 0.875rem;
}

.personal-info .text>a {
    color: var(--color-accent);
}

.profile-info-left {
    border-right: 2px dashed var(--color-border);
}

/* ============================================================
   16. NOTIFICATIONS
   ============================================================ */

.notifications {
    padding: 0;
}

.notifications .drop-scroll {
    height: 300px;
    width: 360px;
}

.notifications .notification-heading {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

.notifications .notification-time {
    font-size: 0.75rem;
    line-height: 1.3;
    color: var(--text-muted);
}

.notification-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.notifications ul.notification-list>li {
    margin-top: 0;
    border-bottom: 1px solid var(--color-border);
}

.notifications ul.notification-list>li:last-child {
    border-bottom: none;
}

.notifications ul.notification-list>li a {
    display: block;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.notifications ul.notification-list>li a:hover {
    background: var(--color-surface-alt);
}

.topnav-dropdown-header,
.topnav-dropdown-footer {
    font-size: 0.8125rem;
    height: 36px;
    line-height: 36px;
    padding: 0 14px;
    font-weight: 600;
}

.topnav-dropdown-header {
    border-bottom: 1px solid var(--color-border);
}

.topnav-dropdown-footer {
    border-top: 1px solid var(--color-border);

    a {
        display: block;
        text-align: center;
        color: var(--color-accent);
    }
}

.topnav-dropdown-footer a {
    display: block;
    text-align: center;
    color: var(--color-accent);
    font-size: 0.8125rem;
}

.user-menu.nav>li>a .badge {
    color: var(--color-danger);
    font-size: 0;
    position: absolute;
    right: 10px;
    top: 14px;
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--color-danger);
}

.noti-details {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.8125rem;
}

.noti-time {
    margin: 0;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.noti-title {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.875rem;
}

.drop-scroll {
    overflow-y: scroll;
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: var(--color-border) transparent;
}

/* ============================================================
   17. MODALS
   ============================================================ */

.modal-backdrop {
    background: var(--color-primary);
}

.modal-backdrop.show {
    opacity: 0.55;
}

.modal-content {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.modal-header {
    border-bottom: 1px solid var(--color-border);
    padding: 18px 22px;
}

.modal-header .modal-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.0625rem;
    letter-spacing: -0.01em;
}

.modal-body {
    padding: 22px;
}

.modal-footer {
    border-top: 1px solid var(--color-border);
    padding: 14px 22px;
    gap: 8px;
}

.modal-footer.text-left {
    text-align: left;
}

.modal-footer.text-center {
    text-align: center;
}

.modal-header.bg-danger .modal-title {
    color: #fff;
}

.delete-modal .modal-body .btn {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    min-width: 90px;
    letter-spacing: 0.04em;
}

.delete-modal .modal-body>h3 {
    font-size: 0.9375rem;
    font-weight: 700;
    margin: 14px 0 0;
}

/* ============================================================
   18. NAVIGATION TABS
   ============================================================ */

.nav-tabs>li>a {
    margin-right: 0;
    color: var(--text-secondary);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    font-weight: 500;
    font-size: 0.875rem;
    transition: color var(--transition-fast), background var(--transition-fast);
    padding: 10px 18px;
}

.nav-tabs>li>a:hover,
.nav-tabs>li>a:focus {
    background: var(--color-surface-alt);
    border-color: transparent;
    color: var(--text-primary);
}

.nav-tabs .nav-link:focus,
.nav-tabs .nav-link:hover {
    background: var(--color-surface-alt);
    border-color: transparent;
}

.nav-tabs.nav-tabs-solid {
    background: var(--color-surface-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 4px;
}

.nav-tabs.nav-tabs-solid>li>a {
    color: var(--text-secondary);
    border-radius: var(--radius-xs);
}

.nav-tabs.nav-tabs-solid>li>a.active,
.nav-tabs.nav-tabs-solid>li>a.active:hover,
.nav-tabs.nav-tabs-solid>li>a.active:focus {
    background: var(--color-surface);
    border-color: transparent;
    color: var(--text-primary);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.nav-tabs.nav-tabs-solid.nav-tabs-rounded {
    border-radius: var(--radius-full);
}

.nav-tabs.nav-tabs-solid.nav-tabs-rounded>li>a {
    border-radius: var(--radius-full);
}

.tab-content {
    padding-top: 20px;
}

/* ============================================================
   19. PAGINATION
   ============================================================ */

.pagination>li>a,
.pagination>li>span {
    color: var(--text-secondary);
    border-color: var(--color-border);
    padding: 6px 12px !important;
    border-radius: var(--radius-sm) !important;
    margin: 0 2px;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all var(--transition-fast);
}

.pagination>li>a:hover {
    background: var(--color-surface-alt);
    border-color: var(--color-border-strong);
    color: var(--text-primary);
}

.pagination>.active>a,
.pagination>.active>a:focus,
.pagination>.active>a:hover,
.page-item.active .page-link {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

/* ============================================================
   20. LIST GROUP
   ============================================================ */

.list-group-item {
    border: 1px solid var(--color-border);
    padding: 12px 16px;
    transition: background var(--transition-fast);
}

.list-group-item:first-child {
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.list-group-item:last-child {
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.list-group-item:hover {
    background: var(--color-surface-alt);
}

/* ============================================================
   21. SELECT2
   ============================================================ */

.select2-container .select2-selection--single {
    border: 1.5px solid var(--color-border);
    height: 42px;
    border-radius: var(--radius-sm);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 40px;
    right: 8px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 40px;
    padding-left: 14px;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: var(--color-accent);
}

.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default .select2-selection--multiple {
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
}

.select2-container .select2-selection--multiple {
    min-height: 42px;
}

/* ============================================================
   22. PROGRESS
   ============================================================ */

.progress-xs {
    height: 4px;
}

.progress-sm {
    height: 6px;
}

.progress.progress-md {
    height: 8px;
}

.progress.progress-lg {
    height: 18px;
}

.progress {
    border-radius: var(--radius-full);
    background: var(--color-surface-alt);
    overflow: hidden;
}

.progress-bar {
    border-radius: var(--radius-full);
    transition: width 0.6s ease;
    background: linear-gradient(90deg, var(--color-primary-light), var(--color-accent));
}

/* ============================================================
   23. CHAT
   ============================================================ */

.chat-main-row {
    bottom: 0;
    left: 0;
    overflow: auto;
    padding-bottom: inherit;
    padding-top: inherit;
    position: absolute;
    right: 0;
    top: 0;
}

.chat-main-wrapper {
    display: table;
    height: 100%;
    table-layout: fixed;
    width: 100%;
}

.message-view {
    display: table-cell;
    height: 100%;
    float: none;
    padding: 0;
    position: static;
    vertical-align: top;
    width: 75%;
}

.chat-window {
    display: table;
    height: 100%;
    table-layout: fixed;
    width: 100%;
    background: var(--color-bg);
}

.fixed-header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 12px 18px;
}

.chat-right .chat-content {
    background: var(--color-primary);
    color: #fff;
    border-radius: 18px 4px 4px 18px;
    padding: 10px 16px;
    max-width: 60%;
    float: right;
}

.chat-left .chat-content {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--text-primary);
    border-radius: 4px 18px 18px 4px;
    padding: 10px 16px;
    max-width: 60%;
    float: left;
}

.chat-time {
    color: rgba(255, 255, 255, 0.6);
    display: block;
    font-size: 0.6875rem;
    margin-top: 4px;
}

.chat-left .chat-time {
    color: var(--text-muted);
}

.chat-line {
    border-bottom: 1px solid var(--color-border);
    height: 12px;
    margin: 7px 0 20px;
    position: relative;
    text-align: center;
}

.chat-date {
    background: var(--color-bg);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0 12px;
    display: inline-block;
}

.chat-footer {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: 14px;
}

.message-area .input-group .form-control {
    background: var(--color-surface);
    border: 1.5px solid var(--color-border);
    color: var(--text-primary);
    height: 44px;
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
}

.message-bar {
    display: table;
    height: 44px;
    position: relative;
    width: 100%;
}

.message-bar .message-inner {
    display: table-row;
    height: 100%;
    padding: 0 8px;
    width: 100%;
}

.message-bar .link {
    color: var(--text-muted);
    display: table-cell;
    font-size: 18px;
    padding: 0 10px;
    vertical-align: middle;
    width: 30px;
}

.message-bar .message-area {
    display: table-cell;
}

.message-area .btn {
    height: 44px;
    width: 50px;
}

/* ============================================================
   24. FOCUS LABEL
   ============================================================ */

.form-focus {
    display: flex;
    height: 52px;
    position: relative;
}

.form-focus .focus-label {
    font-size: 0.9375rem;
    font-weight: 400;
    opacity: 0.5;
    position: absolute;
    transform: translate3d(0, 22px, 0) scale(1);
    transform-origin: left top;
    transition: 240ms cubic-bezier(0.4, 0, 0.2, 1);
    left: 14px;
    top: -8px;
    z-index: 1;
    color: var(--text-muted);
    pointer-events: none;
}

.form-focus.focused .focus-label {
    opacity: 1;
    font-weight: 600;
    font-size: 0.75rem;
    top: -16px;
    left: 14px;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form-focus .form-control {
    height: 52px;
    padding: 22px 14px 8px;
}

.form-focus .form-control::-webkit-input-placeholder {
    color: transparent;
    transition: 240ms;
}

.form-focus .form-control:focus::-webkit-input-placeholder {
    transition: none;
}

.form-focus.focused .form-control::-webkit-input-placeholder {
    color: var(--text-muted);
}

/* ============================================================
   25. ACTIVITY
   ============================================================ */

.activity-box {
    position: relative;
}

.activity-list {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.activity-list::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-border);
}

.activity-list>li {
    background: var(--color-surface);
    margin-bottom: 10px;
    padding: 12px 14px;
    position: relative;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: box-shadow var(--transition-fast);
}

.activity-list>li:hover {
    box-shadow: var(--shadow-sm);
}

.activity-list>li .activity-content {
    background: var(--color-surface);
    margin: 0 0 0 42px;
    padding: 0;
}

.activity-list>li .activity-user {
    background: var(--color-surface);
    height: 32px;
    left: -7px;
    position: absolute;
    top: 3px;
    width: 32px;
}

.activity-list>li .activity-content .timeline-content {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.activity-list>li .activity-content .timeline-content a.name {
    color: var(--text-primary);
    font-weight: 600;
}

.activity-list>li .time {
    color: var(--text-muted);
    display: block;
    font-size: 0.75rem;
}

/* ============================================================
   26. EXPERIENCE / TIMELINE VERTICAL
   ============================================================ */

.experience-list {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.experience-list::before {
    background: var(--color-border);
    bottom: 0;
    content: "";
    left: 8px;
    position: absolute;
    top: 8px;
    width: 2px;
}

.experience-list>li {
    position: relative;
}

.experience-list>li .experience-user {
    background: var(--color-surface);
    height: 10px;
    left: 4px;
    position: absolute;
    top: 4px;
    width: 10px;
}

.experience-list>li .experience-content {
    background: var(--color-surface);
    margin: 0 0 20px 40px;
    padding: 0;
}

.before-circle {
    background: var(--color-border);
    border-radius: var(--radius-full);
    height: 10px;
    width: 10px;
}

/* ============================================================
   27. INVOICE
   ============================================================ */

.invoice-details,
.invoice-payment-details>li span {
    float: right;
    text-align: right;
}

.inv-logo {
    height: auto;
    margin-bottom: 20px;
    max-height: 80px;
    width: auto;
}

/* ============================================================
   28. CALENDAR
   ============================================================ */

.calendar {
    float: left;
    margin-bottom: 0;
}

.fc-view {
    margin-top: 24px;
}

.fc-toolbar h2 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-primary);
}

.fc th.fc-widget-header {
    background: var(--color-surface-alt);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 10px;
    color: var(--text-secondary);
}

.fc-button {
    background: var(--color-surface-alt);
    border: 1px solid var(--color-border) !important;
    color: var(--text-secondary);
    text-transform: capitalize;
    box-shadow: none !important;
    border-radius: var(--radius-sm) !important;
    margin: 0 3px !important;
    padding: 6px 14px !important;
    height: auto !important;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all var(--transition-fast);
}

.fc-button:hover {
    background: var(--color-border);
    color: var(--text-primary);
}

.fc-state-down,
.fc-state-active,
.fc-state-disabled {
    background: var(--color-primary) !important;
    color: #fff !important;
    text-shadow: none;
}

.fc-event {
    border-radius: var(--radius-xs);
    border: none;
    font-size: 0.8125rem;
    margin: 2px 6px;
    padding: 4px 8px;
    cursor: pointer;
    font-weight: 500;
}

.fc-unthemed .fc-today {
    background: rgba(94, 139, 255, 0.06);
}

/* ============================================================
   29. ERROR PAGES
   ============================================================ */

.error-wrapper {
    background: var(--color-bg);
    margin: 0;
    align-items: center;
    display: flex;
    justify-content: center;
    height: 100%;
}

.error-box {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-xl);
    line-height: 1;
    margin: 0 auto;
    max-width: 480px;
    padding: 52px 32px;
    text-align: center;
    width: 100%;
}

.error-box h1 {
    font-family: var(--font-display);
    font-size: 7rem;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: -0.05em;
    line-height: 1;
}

.error-title {
    color: var(--text-secondary);
    font-size: 1.25rem;
    font-weight: 500;
    margin: 0 0 1.5rem;
}

.error-box p {
    margin-bottom: 28px;
    color: var(--text-muted);
}

.error-box .btn {
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================================
   30. BLOG
   ============================================================ */

.blog {
    position: relative;
    margin: 0 0 28px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.blog:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.blog-image {
    overflow: hidden;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.blog-image img {
    transition: transform 0.5s ease;
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}

.blog-image a:hover img {
    transform: scale(1.05);
}

.blog-title {
    color: var(--text-primary);
    font-weight: 700;
    margin: 0 0 14px;
    font-size: 1.0625rem;
}

.blog-content p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0 0 18px;
}

.read-more {
    color: var(--color-accent);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 14px;
    transition: gap var(--transition-fast), color var(--transition-fast);
}

.read-more:hover {
    gap: 8px;
    color: var(--color-primary-light);
}

.read-more i {
    font-size: 1rem;
}

.blog-info {
    border-top: 1px solid var(--color-border);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 12px 0 0;
}

.blog-info i {
    color: var(--color-accent);
}

/* ============================================================
   31. WIDGETS / MISC
   ============================================================ */

.card-box.profile-header {
    margin: 0;
}

.see-all {
    margin-top: 24px;
    text-align: center;
}

.see-all .see-all-btn {
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    color: #fff;
    display: inline-block;
    padding: 10px 24px;
    background: var(--color-primary);
    font-weight: 600;
    transition: all var(--transition-fast);
}

.see-all .see-all-btn:hover {
    background: var(--color-primary-mid);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.submit-btn {
    border-radius: var(--radius-full);
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 700;
    min-width: 200px;
    padding: 12px 24px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.searchbar .search-input {
    border-radius: var(--radius-md);
    width: 100%;
    color: var(--text-secondary);
    font-size: 0.875rem;
    border: 1.5px solid var(--color-border);
    padding: 8px 14px;
}

.profile-upload {
    display: flex;
    align-items: center;
    gap: 14px;
}

.upload-img img {
    border-radius: var(--radius-md);
    height: 44px;
    width: 44px;
    object-fit: cover;
}

.upload-input {
    width: 100%;
}

/* Doctor widget */
.doctor-img {
    cursor: pointer;
    height: 80px;
    margin: 0 auto 14px;
    position: relative;
    width: 80px;
}

.doctor-img .avatar {
    font-size: 1.5rem;
    height: 80px;
    line-height: 80px;
    margin: 0;
    width: 80px;
}

.doc-prof {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-bottom: 8px;
}

.doctor-name {
    margin: 0;
    font-weight: 600;
}

.doctor-name a {
    color: var(--text-primary);
}

/* Dollar icon */
.dollar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--text-muted);
    width: 30px;
    height: 30px;
    border-radius: var(--radius-full);
    color: #fff;
    font-size: 0.75rem;
}

/* Cate table */
.table.cate td {
    padding: 1.5rem 8px;
}

.cate {
    border: 0;
}

.cate span {
    background: var(--color-surface-alt);
    border: 1.5px solid var(--color-border);
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
}

.cate p {
    color: var(--text-primary);
    font-weight: 600;
    padding-top: 6px;
    font-size: 1.125rem;
}

.cate h6 {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ============================================================
   32. ANIMATIONS
   ============================================================ */

@keyframes pulse {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    25% {
        transform: scale(0);
        opacity: 0.1;
    }

    50% {
        transform: scale(0.1);
        opacity: 0.3;
    }

    75% {
        transform: scale(0.5);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 0;
    }
}

@keyframes taskHighlighter {
    0% {
        background: #FEEB99;
    }

    100% {
        background: var(--color-surface);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   33. HELPER CLASSES
   ============================================================ */

.p-t-0 {
    padding-top: 0 !important;
}

.m-r-5 {
    margin-right: 5px !important;
}

.m-r-10 {
    margin-right: 10px !important;
}

.m-r-15 {
    margin-right: 15px !important;
}

.m-l-5 {
    margin-left: 5px !important;
}

.m-l-15 {
    margin-left: 15px !important;
}

.m-t-0 {
    margin-top: 0 !important;
}

.m-t-5 {
    margin-top: 5px !important;
}

.m-t-10 {
    margin-top: 10px !important;
}

.m-t-15 {
    margin-top: 15px !important;
}

.m-t-20 {
    margin-top: 20px !important;
}

.m-t-30 {
    margin-top: 30px !important;
}

.m-t-50 {
    margin-top: 50px !important;
}

.m-b-0 {
    margin-bottom: 0 !important;
}

.m-b-5 {
    margin-bottom: 5px !important;
}

.m-b-10 {
    margin-bottom: 10px !important;
}

.m-b-15 {
    margin-bottom: 15px !important;
}

.m-b-20 {
    margin-bottom: 20px !important;
}

.m-b-30 {
    margin-bottom: 30px !important;
}

.w-md {
    min-width: 110px;
}

.w-40 {
    width: 40px;
}

.block {
    display: block !important;
}

.text-ellipsis {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.text-muted-light {
    color: var(--text-muted);
}

.font-18 {
    font-size: 1.125rem;
}

.padding_16 {
    padding: 16px;
}

.display-block {
    display: block;
}

.text-primary {
    color: var(--color-accent) !important;
}

.text-success {
    color: var(--color-success) !important;
}

.text-danger {
    color: var(--color-danger) !important;
}

.text-info {
    color: var(--color-info) !important;
}

.text-warning {
    color: var(--color-warning) !important;
}

.text-purple {
    color: #7C3AED !important;
}

.bg-primary {
    background: var(--color-primary) !important;
}

.bg-success {
    background: var(--color-success) !important;
}

.bg-info {
    background: var(--color-info) !important;
}

.bg-warning {
    background: var(--color-warning) !important;
}

.bg-danger {
    background: var(--color-danger) !important;
}

.bg-white {
    background: var(--color-surface);
}

.blur {
    filter: blur(3px);
}

/* Action icon */
.action-icon {
    color: var(--text-muted);
    font-size: 1.125rem;
    padding: 0 8px;
    display: inline-block;
    transition: color var(--transition-fast);
}

.action-icon:hover {
    color: var(--color-accent);
}

/* Material switch */
.material-switch>input[type="checkbox"] {
    display: none;
}

.material-switch>label {
    cursor: pointer;
    height: 0;
    position: relative;
    width: 44px;
}

.material-switch>label::before {
    background: var(--color-border-strong);
    border-radius: 12px;
    content: '';
    height: 20px;
    margin-top: -10px;
    position: absolute;
    opacity: 0.6;
    transition: all 0.3s ease;
    width: 44px;
}

.material-switch>label::after {
    background: #fff;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
    content: '';
    height: 26px;
    left: -4px;
    margin-top: -10px;
    position: absolute;
    top: -4px;
    transition: all 0.3s ease;
    width: 26px;
}

.material-switch>input[type="checkbox"]:checked+label::before {
    background: var(--color-accent);
    opacity: 0.5;
}

.material-switch>input[type="checkbox"]:checked+label::after {
    background: var(--color-accent);
    left: 20px;
}

/* ============================================================
   34. NOTIFICATION DOT
   ============================================================ */

.noti-dot::before {
    content: '';
    width: 5px;
    height: 5px;
    border: 5px solid var(--color-accent);
    border-radius: var(--radius-full);
    background: var(--color-accent);
    z-index: 10;
    position: absolute;
    right: 37px;
    top: 17px;
}

.noti-dot::after {
    content: '';
    border: 4px solid var(--color-accent);
    background: transparent;
    border-radius: var(--radius-full);
    height: 24px;
    width: 24px;
    animation: pulse 3s ease-out infinite;
    position: absolute;
    top: 10px;
    right: 30px;
    z-index: 1;
    opacity: 0;
}

/* ============================================================
   35. TASK
   ============================================================ */

.task-wrapper {
    padding: 20px;
    width: 100%;
    margin: 0 auto;
}

.task-wrapper #task-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid var(--color-border);
}

.task-wrapper #task-list li .task-container {
    display: table;
    background: var(--color-surface);
    padding: 10px 16px;
    width: 100%;
    border: 1px solid var(--color-border);
    border-bottom: none;
    border-radius: 0;
    transition: background var(--transition-fast);
}

.task-wrapper #task-list li:first-child .task-container {
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.task-wrapper #task-list li:last-child .task-container {
    border-bottom: 1px solid var(--color-border);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.task-wrapper #task-list li .task-container:hover {
    background: var(--color-surface-alt);
}

.task-wrapper #task-list li .task-container .task-label {
    display: table-cell;
    font-weight: 500;
    vertical-align: middle;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.task-wrapper #task-list li .task-container .task-action-btn {
    display: table-cell;
    vertical-align: middle;
    text-align: right;
}

.task-wrapper #task-list li.completed .task-container {
    background: var(--color-surface-alt);
}

.task-wrapper #task-list li.completed .task-container .task-label {
    color: var(--text-muted);
    text-decoration: line-through;
}

.action-circle {
    background: transparent;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-full);
    height: 22px;
    width: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.action-circle .material-icons {
    color: var(--color-border-strong);
    font-size: 16px;
}

.action-circle:hover {
    border-color: var(--color-accent);
    background: rgba(94, 139, 255, 0.08);
}

.action-circle:hover .material-icons {
    color: var(--color-accent);
}

.action-circle.completed {
    background: var(--color-success);
    border-color: var(--color-success);
}

.action-circle.completed .material-icons {
    color: #fff;
}

/* ============================================================
   36. ROLES / PERMISSIONS
   ============================================================ */

.roles-menu {
    margin-top: 20px;
}

.roles-menu>ul {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    list-style: none;
    margin: 0;
    padding: 6px;
}

.roles-menu>ul>li {
    display: block;
    position: relative;
}

.roles-menu>ul>li>a {
    border-left: 3px solid transparent;
    color: var(--text-secondary);
    display: block;
    padding: 10px 14px;
    border-radius: var(--radius-xs);
    font-weight: 500;
    font-size: 0.875rem;
    transition: all var(--transition-fast);
}

.roles-menu>ul>li.active>a {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: rgba(94, 139, 255, 0.06);
    font-weight: 600;
}

.roles-menu>ul>li>a:hover {
    border-color: var(--color-accent);
    background: var(--color-surface-alt);
    color: var(--text-primary);
}

/* ============================================================
   37. COMING SOON / COUNTDOWN
   ============================================================ */

.coming-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--color-bg);
}

.coming-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 0;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.sub-title {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin: 0;
}

.title-section {
    margin-bottom: 60px;
    text-align: center;
}

.countdown {
    margin-bottom: 60px;
}

.countdown ul {
    display: flex;
    list-style: none;
    margin: 0 auto;
    padding: 0;
    gap: 16px;
    width: auto;
    justify-content: center;
}

.countdown ul li.timer {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    padding: 24px 20px;
    text-align: center;
    min-width: 100px;
    box-shadow: var(--shadow-sm);
}

.countdown ul li span {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    display: block;
    color: var(--color-primary);
    letter-spacing: -0.04em;
}

.countdown ul li p {
    color: var(--text-muted);
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 4px 0 0;
    font-weight: 600;
}

.countdown ul li.seperator {
    font-family: var(--font-display);
    font-size: 2rem;
    line-height: 1;
    padding: 28px 4px 0;
    text-align: center;
    color: var(--text-muted);
    font-weight: 700;
    width: 24px;
}

/* ============================================================
   38. INVOICE
   ============================================================ */

.invoices-view {
    width: 70%;
    float: right;
}

/* ============================================================
   39. PROFILE UPLOAD
   ============================================================ */

.fileupload.btn {
    position: absolute;
    right: 0;
    bottom: 0;
    background: rgba(26, 31, 46, 0.65);
    border-radius: 0;
    padding: 4px 10px;
    border: none;
    color: #fff;
}

.btn-text {
    color: #fff;
}

/* ============================================================
   40. CHAT SIDEBAR / NOTIFICATION BOX
   ============================================================ */

.notification-box {
    bottom: 0;
    margin-right: -300px;
    position: fixed;
    right: 0;
    top: var(--header-height);
    transition: all var(--transition-slow);
    width: 300px;
    z-index: 101;
    border-left: 1px solid var(--color-border);
    background: var(--color-surface);
}

.open-msg-box .notification-box {
    margin-right: 0;
}

.list-box {
    list-style: none;
    padding-left: 0;
}

.list-item {
    border-bottom: 1px solid var(--color-border);
    padding: 12px;
    position: relative;
}

.list-left {
    height: 48px;
    position: absolute;
    width: 48px;
}

.list-body {
    padding: 0 0 0 54px;
}

.message-author {
    color: var(--text-primary);
    float: left;
    font-weight: 700;
    font-size: 0.875rem;
    width: 175px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.message-time {
    color: var(--text-muted);
    float: right;
    font-size: 0.6875rem;
}

.message-content {
    color: var(--text-secondary);
    font-size: 0.8125rem;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============================================================
   41. RESPONSIVE
   ============================================================ */

@media only screen and (min-width: 991px) {
    #toggle_btn {
        color: var(--text-secondary);
        float: left;
        font-size: 18px;
        line-height: var(--header-height);
        padding: 0 14px;
        background: transparent;
        border: none;
        cursor: pointer;
        margin-right: 8px;
        display: flex;
        align-items: center;
        height: var(--header-height);
    }

    .mini-sidebar .header-menu .header-left {
        padding: 0;
        width: 60px;
        justify-content: center;
    }

    .mini-sidebar .sidebar {
        width: 60px;
    }

    .mini-sidebar.expand-menu .sidebar {
        width: var(--sidebar-width);
    }

    .mini-sidebar .menu-title {
        visibility: hidden;
        white-space: nowrap;
    }

    .mini-sidebar.expand-menu .menu-title {
        visibility: visible;
    }

    .mini-sidebar .sidebar .sidebar-menu ul>li>a span {
        display: none;
        opacity: 0;
    }

    .mini-sidebar.expand-menu .sidebar .sidebar-menu ul>li>a span {
        display: inline;
        opacity: 1;
    }

    .mini-sidebar .page-wrapper {
        margin-left: 60px;
    }
}

@media only screen and (max-width: 991.98px) {
    .sidebar {
        margin-left: calc(-1 * var(--sidebar-width));
        width: var(--sidebar-width);
    }

    .page-wrapper {
        margin-left: 0;
        padding-left: 0;
        padding-right: 0;
    }

    .slide-nav .sidebar {
        margin-left: 0;
    }

    .slide-nav .page-wrapper {
        left: var(--sidebar-width);
        margin-left: 0;
    }

    .mobile_btn {
        display: block;
    }

    .page-title-box {
        display: none;
    }

    a.mobile_btn {
        color: var(--text-primary);
        font-size: 22px;
        height: 48px;
        left: 0;
        line-height: var(--header-height);
        padding: 0 18px;
        position: absolute;
        top: 0;
        width: 56px;
        z-index: 10;
        display: flex;
        align-items: center;
    }

    .user-menu.nav>li>a {
        top: -18px;
        padding: 6px 10px;
    }

    .user-menu.nav>li:after {
        content: none;
    }

    .logo span {
        font-size: 1rem;
    }

    .invoices-view {
        width: 100%;
        float: none;
    }
}

@media only screen and (max-width: 767.98px) {
    .page-wrapper>.content {
        padding: 16px;
    }

    .profile-info-left {
        border-right: none;
        border-bottom: 2px dashed var(--color-border);
        margin-bottom: 20px;
        padding-bottom: 20px;
    }

    .blog-view .blog-title {
        font-size: 1.5rem;
    }

    .coming-title {
        font-size: 1.75rem;
    }

    .countdown ul {
        flex-wrap: wrap;
    }

    .countdown ul li.timer {
        min-width: 80px;
        padding: 16px 12px;
    }

    .countdown ul li span {
        font-size: 1.75rem;
    }

    .table-responsive {
        display: block;
        width: 100%;
        overflow-x: auto;
        -ms-overflow-style: -ms-autohiding-scrollbar;
    }
}

@media only screen and (max-width: 575.98px) {
    .account-box {
        width: 100%;
        margin-bottom: 20px;
        padding: 24px 20px;
    }

    .page-wrapper>.content {
        padding: 14px;
    }

    .submit-btn {
        min-width: 140px;
    }

    .user-menu {
        display: none;
    }

    .mobile-user-menu {
        display: block;
    }

    .search-box {
        display: none;
    }

    .filter-row {
        margin-bottom: 14px;
    }

    .profile-view .profile-basic {
        margin-left: 0;
    }

    .profile-img-wrap {
        position: relative;
        margin: 0 auto;
        height: 90px;
        width: 90px;
    }

    .profile-view .profile-img {
        height: 90px;
        width: 90px;
    }

    .profile-info-left {
        text-align: center;
    }

    .profile-basic {
        margin-left: 0;
        margin-top: 14px;
    }
}
