/**
 * =======================================================
 * Template Name: ModernAdmin - Bootstrap Admin Template
 * Template URL:  https://bootstrapmade.com/modern-admin-bootstrap-html-admin-template/
 * Updated: Jan 28, 2026 with Bootstrap v5.3.8
 * Author: BootstrapMade.com
 * License: https://bootstrapmade.com/license/
 * =======================================================
 */
@charset "UTF-8";

/*--------------------------------------------------------------
# Starter Template - Main Stylesheet
# Self-contained - all imports are local to this template
# Uses modern Dart Sass @use syntax (no deprecated @import)
--------------------------------------------------------------*/
/*--------------------------------------------------------------
# CSS Custom Properties - Color System
# Single accent color theming with comprehensive palette
--------------------------------------------------------------*/
/* Fonts */
:root {
    --default-font:
        "Poppins", system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial,
        "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji",
        "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --heading-font: "Poppins", sans-serif;
    --nav-font: "Poppins", sans-serif;
    --mono-font:
        "Poppins Mono", "Fira Code", "SF Mono", Monaco, "Cascadia Code",
        Consolas, "Courier New", monospace;
}

/* Spacing Scale */
:root {
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
}

/* Border Radius - Minimal */
:root {
    --radius-sm: 0.125rem;
    --radius-md: 0.25rem;
    --radius-lg: 0.375rem;
    --radius-xl: 0.5rem;
    --radius-2xl: 0.625rem;
    --radius-full: 9999px;
}

/* Shadows */
:root {
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md:
        0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg:
        0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl:
        0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Transitions */
:root {
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
}

/* Layout Dimensions */
:root {
    --header-height: 60px;
    --sidebar-width: 280px;
    --sidebar-collapsed-width: 70px;
    --footer-height: 60px;
}

/*--------------------------------------------------------------
# Global Colors - Light Mode
--------------------------------------------------------------*/
:root {
    /* Core palette - ModernAdmin color system */
    --background-color: #f0f4f9;
    --default-color: #1e293b;
    --heading-color: #0f172a;
    --accent-color: #1a66c4;
    --surface-color: #ffffff;
    --contrast-color: #ffffff;
    /* Extended text colors */
    --muted-color: #64748b;
    --light-color: #94a3b8;
    /* Borders */
    --border-color: #e2e8f0;
    --border-color-light: #f1f5f9;
    --border-color-dark: #cbd5e1;
    /* Status colors */
    --success-color: #22c55e;
    --success-color-light: #dcfce7;
    --warning-color: #f59e0b;
    --warning-color-light: #fef3c7;
    --danger-color: #ef4444;
    --danger-color-light: #fee2e2;
    --info-color: #06b6d4;
    --info-color-light: #cffafe;
    /* Navigation colors */
    --nav-color: var(--default-color);
    --nav-hover-color: var(--accent-color);
    --nav-mobile-background-color: var(--surface-color);
    --nav-dropdown-background-color: var(--surface-color);
    --nav-dropdown-color: var(--default-color);
    --nav-dropdown-hover-color: var(--accent-color);
    /* Header */
    --header-bg: #ffffff;
    --header-shadow: none;
    --header-border: var(--border-color);
    /* Sidebar - Dark sidebar for light mode */
    --sidebar-bg: #051831;
    --sidebar-border: rgba(255, 255, 255, 0.08);
    --sidebar-text: rgba(255, 255, 255, 0.85);
    --sidebar-text-muted: rgba(255, 255, 255, 0.6);
    --sidebar-hover-bg: rgba(255, 255, 255, 0.08);
    --sidebar-active-bg: rgba(26, 102, 196, 0.25);
    --sidebar-active-text: #ffffff;
    --sidebar-heading-color: rgba(255, 255, 255, 0.4);
    --sidebar-icon-color: rgba(255, 255, 255, 0.7);
    /* Cards */
    --card-bg: #ffffff;
    --card-shadow: var(--shadow-sm);
    --card-border: var(--border-color);
    /* Tables */
    --table-header-bg: #f8fafc;
    --table-hover-bg: #e2e8f0;
    --table-stripe-bg: #f0f0f0;
    /* Forms */
    --input-bg: #ffffff;
    --input-border: var(--border-color);
    --input-focus-border: var(--accent-color);
    --input-focus-ring: rgb(26 102 196 / 0.25);
}

/*--------------------------------------------------------------
# Dark Mode Palette
--------------------------------------------------------------*/
[data-theme="dark"] {
    /* Core palette */
    --background-color: #0f172a;
    --default-color: #e2e8f0;
    --heading-color: #f8fafc;
    --accent-color: #60a5fa;
    --surface-color: #1e293b;
    --contrast-color: #ffffff;
    /* Extended text colors */
    --muted-color: #94a3b8;
    --light-color: #64748b;
    /* Borders */
    --border-color: #334155;
    --border-color-light: #1e293b;
    --border-color-dark: #475569;
    /* Status colors (adjusted for dark mode) */
    --success-color: #4ade80;
    --success-color-light: rgba(74, 222, 128, 0.15);
    --warning-color: #fbbf24;
    --warning-color-light: rgba(251, 191, 36, 0.15);
    --danger-color: #f87171;
    --danger-color-light: rgba(248, 113, 113, 0.15);
    --info-color: #22d3ee;
    --info-color-light: rgba(34, 211, 238, 0.15);
    /* Navigation colors */
    --nav-color: var(--default-color);
    --nav-hover-color: var(--accent-color);
    --nav-mobile-background-color: var(--surface-color);
    --nav-dropdown-background-color: var(--surface-color);
    --nav-dropdown-color: var(--default-color);
    --nav-dropdown-hover-color: var(--accent-color);
    /* Header */
    --header-bg: #1e293b;
    --header-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.3);
    --header-border: var(--border-color);
    /* Sidebar */
    --sidebar-bg: #1e293b;
    --sidebar-border: var(--border-color);
    --sidebar-text: var(--default-color);
    --sidebar-text-muted: var(--muted-color);
    --sidebar-hover-bg: #334155;
    --sidebar-active-bg: rgba(96, 165, 250, 0.15);
    --sidebar-active-text: var(--accent-color);
    --sidebar-heading-color: var(--muted-color);
    --sidebar-icon-color: var(--muted-color);
    /* Cards */
    --card-bg: #1e293b;
    --card-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.3);
    --card-border: var(--border-color);
    /* Tables */
    --table-header-bg: #0f172a;
    --table-hover-bg: #334155;
    --table-stripe-bg: #1a2332;
    /* Forms */
    --input-bg: #0f172a;
    --input-border: var(--border-color);
    --input-focus-border: var(--accent-color);
    --input-focus-ring: rgb(96 165 250 / 0.25);
    /* Bootstrap overrides */
    --bs-body-color: var(--default-color);
    --bs-body-bg: var(--background-color);
}

/*--------------------------------------------------------------
# Color Utility Classes
# Override Bootstrap's color utilities with CSS custom properties
# for proper dark mode support
--------------------------------------------------------------*/
/* Text Colors */
.text-primary {
    color: var(--accent-color) !important;
}

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

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

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

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

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

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

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

/* Background Colors */
.bg-primary {
    background-color: var(--accent-color) !important;
}

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

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

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

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

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

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

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

/* Soft/Light Background Colors */
.bg-primary-light {
    background-color: color-mix(
        in srgb,
        var(--accent-color),
        transparent 90%
    ) !important;
}

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

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

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

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

/* Border Colors */
.border-primary {
    border-color: var(--accent-color) !important;
}

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

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

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

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

/* Gradient Backgrounds */
.bg-gradient-primary {
    background: linear-gradient(
        135deg,
        var(--accent-color),
        color-mix(in srgb, var(--accent-color), black 15%)
    ) !important;
}

.bg-gradient-success {
    background: linear-gradient(
        135deg,
        var(--success-color),
        #16a34a
    ) !important;
}

.bg-gradient-warning {
    background: linear-gradient(
        135deg,
        var(--warning-color),
        #d97706
    ) !important;
}

.bg-gradient-danger {
    background: linear-gradient(
        135deg,
        var(--danger-color),
        #dc2626
    ) !important;
}

.bg-gradient-info {
    background: linear-gradient(135deg, var(--info-color), #0891b2) !important;
}

/* Icon Colors */
.icon-primary {
    color: var(--accent-color);
}

.icon-success {
    color: var(--success-color);
}

.icon-warning {
    color: var(--warning-color);
}

.icon-danger {
    color: var(--danger-color);
}

.icon-info {
    color: var(--info-color);
}

.icon-muted {
    color: var(--muted-color);
}

/*--------------------------------------------------------------
# Base - Reset, Typography, and Global Styles
--------------------------------------------------------------*/
/*--------------------------------------------------------------
# Box Sizing & Scroll
--------------------------------------------------------------*/
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

/*--------------------------------------------------------------
# Body
--------------------------------------------------------------*/
body {
    margin: 0;
    font-family: var(--default-font);
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--default-color);
    background-color: var(--background-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/*--------------------------------------------------------------
# Headings
--------------------------------------------------------------*/
h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    font-family: var(--heading-font);
    font-weight: 600;
    line-height: 1.3;
    color: var(--heading-color);
    margin-top: 0;
    margin-bottom: 0.5rem;
}

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

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

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

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

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

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

/*--------------------------------------------------------------
# Paragraph & Text
--------------------------------------------------------------*/
p {
    margin-top: 0;
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--muted-color);
}

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

strong {
    font-weight: 600;
}

/* Custom text size - Bootstrap doesn't have .text-xs */
.text-xs {
    font-size: 0.75rem !important;
}

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

a:hover {
    color: color-mix(in srgb, var(--accent-color), black 10%);
}

/*--------------------------------------------------------------
# Lists
--------------------------------------------------------------*/
ul,
ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

/*--------------------------------------------------------------
# Code
--------------------------------------------------------------*/
code {
    font-family: var(--mono-font);
    font-size: 0.875em;
    color: var(--danger-color);
    background-color: var(--danger-color-light);
    padding: 0.125rem 0.375rem;
    border-radius: var(--radius-sm);
}

pre {
    font-family: var(--mono-font);
    font-size: 0.875rem;
    margin: 0;
    padding: var(--spacing-md);
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow-x: auto;
}

pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/*--------------------------------------------------------------
# Blockquote
--------------------------------------------------------------*/
blockquote {
    margin: 0 0 1rem;
    padding: var(--spacing-md) var(--spacing-lg);
    border-left: 4px solid var(--accent-color);
    background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

blockquote p:last-child {
    margin-bottom: 0;
}

/*--------------------------------------------------------------
# Horizontal Rule
--------------------------------------------------------------*/
hr {
    margin: var(--spacing-lg) 0;
    border: 0;
    border-top: 1px solid var(--border-color);
}

/*--------------------------------------------------------------
# Mark/Highlight
--------------------------------------------------------------*/
mark,
.mark {
    padding: 0.125rem 0.25rem;
    background-color: var(--warning-color-light);
    border-radius: var(--radius-sm);
}

/*--------------------------------------------------------------
# Abbreviation
--------------------------------------------------------------*/
abbr[title] {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
    cursor: help;
}

/*--------------------------------------------------------------
# Images
--------------------------------------------------------------*/
img,
svg {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

/*--------------------------------------------------------------
# Tables
--------------------------------------------------------------*/
table {
    border-collapse: collapse;
    width: 100%;
}

/*--------------------------------------------------------------
# Forms Reset
--------------------------------------------------------------*/
button,
input,
optgroup,
select,
textarea {
    font-family: inherit;
    font-size: 100%;
    line-height: 1.15;
    margin: 0;
}

button {
    cursor: pointer;
    border: none;
    background: transparent;
}

/*--------------------------------------------------------------
# Focus Styles
--------------------------------------------------------------*/
:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/*--------------------------------------------------------------
# Selection
--------------------------------------------------------------*/
::-moz-selection {
    background-color: var(--accent-color);
    color: white;
}

::selection {
    background-color: var(--accent-color);
    color: white;
}

/*--------------------------------------------------------------
# Scrollbar (WebKit)
--------------------------------------------------------------*/
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-color);
}

::-webkit-scrollbar-thumb {
    background: var(--light-color);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--muted-color);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--light-color) var(--background-color);
}

/*--------------------------------------------------------------
# Animations & Transitions
--------------------------------------------------------------*/
/* Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes bounce {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes shake {
    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* Animation utility classes */
.animate-fade-in {
    animation: fadeIn var(--transition-base) ease-out;
}

.animate-fade-in-up {
    animation: fadeInUp var(--transition-slow) ease-out;
}

.animate-fade-in-down {
    animation: fadeInDown var(--transition-slow) ease-out;
}

.animate-slide-in-left {
    animation: slideInLeft var(--transition-slow) ease-out;
}

.animate-slide-in-right {
    animation: slideInRight var(--transition-slow) ease-out;
}

.animate-scale-in {
    animation: scaleIn var(--transition-base) ease-out;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

.animate-bounce {
    animation: bounce 1s ease-in-out infinite;
}

/* Transition utilities */
.transition-none {
    transition: none !important;
}

.transition-all {
    transition: all var(--transition-base);
}

.transition-colors {
    transition:
        color var(--transition-base),
        background-color var(--transition-base),
        border-color var(--transition-base);
}

.transition-opacity {
    transition: opacity var(--transition-base);
}

.transition-transform {
    transition: transform var(--transition-base);
}

/* Hover transform utilities */
.hover-lift {
    transition:
        transform var(--transition-base),
        box-shadow var(--transition-base);
}

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

.hover-scale {
    transition: transform var(--transition-fast);
}

.hover-scale:hover {
    transform: scale(1.02);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/*--------------------------------------------------------------
# Bootstrap Overrides
--------------------------------------------------------------*/
/* Container widths */
.container,
.container-fluid,
.container-sm,
.container-md,
.container-lg,
.container-xl,
.container-xxl {
    padding-left: var(--spacing-lg);
    padding-right: var(--spacing-lg);
}

/* Row gutter */
.row {
    --bs-gutter-x: var(--spacing-lg);
    --bs-gutter-y: var(--spacing-lg);
}

/* Grid - ensure all columns use CSS custom properties */
.row > * {
    padding-left: calc(var(--bs-gutter-x) * 0.5);
    padding-right: calc(var(--bs-gutter-x) * 0.5);
}

/* Button overrides */
.btn {
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.btn-primary {
    --bs-btn-bg: var(--accent-color);
    --bs-btn-border-color: var(--accent-color);
    --bs-btn-hover-bg: color-mix(in srgb, var(--accent-color), black 10%);
    --bs-btn-hover-border-color: color-mix(
        in srgb,
        var(--accent-color),
        black 10%
    );
    --bs-btn-active-bg: color-mix(in srgb, var(--accent-color), black 15%);
    --bs-btn-active-border-color: color-mix(
        in srgb,
        var(--accent-color),
        black 15%
    );
}

/* Form controls */
.form-control,
.form-select {
    border-radius: var(--radius-md);
    border-color: var(--input-border);
    padding: var(--spacing-sm) var(--spacing-md);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--input-focus-border);
    box-shadow: none;
    outline: 0;
}

/* Cards */
.card {
    border-radius: var(--radius-lg);
    border-color: var(--card-border);
    box-shadow: var(--card-shadow);
    margin-bottom: var(--spacing-lg);
}

.card:last-child {
    margin-bottom: 0;
}

/* Modals */
.modal-content {
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
}

/* Dropdowns */
.dropdown-menu {
    border-radius: var(--radius-lg);
    border-color: var(--border-color);
    box-shadow: var(--shadow-lg);
    padding: var(--spacing-sm) 0;
}

.dropdown-item {
    padding: var(--spacing-sm) var(--spacing-md);
    transition: background-color var(--transition-fast);
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--background-color);
}

/* Alerts */
.alert {
    border-radius: var(--radius-md);
}

/* Badges */
.badge {
    font-weight: 600;
    border-radius: var(--radius-sm);
}

/* List Group */
.list-group-item {
    border-color: var(--border-color);
    padding: var(--spacing-md) var(--spacing-lg);
}

.list-group-item.active {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

/* Navs & Tabs */
.nav-link {
    color: var(--muted-color);
    transition: color var(--transition-fast);
}

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

.nav-tabs .nav-link.active {
    color: var(--heading-color);
    border-color: var(--border-color) var(--border-color) var(--surface-color);
}

.nav-pills .nav-link.active {
    background-color: var(--accent-color);
}

/* Tables */
.table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--default-color);
    --bs-table-border-color: var(--border-color);
    --bs-table-striped-bg: var(--table-stripe-bg);
    --bs-table-hover-bg: var(--table-hover-bg);
}

.table > thead {
    background-color: var(--table-header-bg);
}

/* Pagination */
.page-link {
    color: var(--default-color);
    border-color: var(--border-color);
}

.page-link:hover {
    color: var(--accent-color);
    background-color: var(--background-color);
}

.page-item.active .page-link {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

/* Progress */
.progress {
    background-color: var(--background-color);
    border-radius: var(--radius-full);
}

.progress-bar {
    background-color: var(--accent-color);
}

/* Accordion */
.accordion-button {
    padding: var(--spacing-md) var(--spacing-lg);
    background-color: var(--surface-color);
    color: var(--heading-color);
}

.accordion-button:not(.collapsed) {
    background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
    color: var(--accent-color);
}

.accordion-button:focus {
    box-shadow: none;
    outline: 0;
}

.accordion-body {
    padding: var(--spacing-lg);
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 0;
    padding: 0;
    background-color: transparent;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--light-color);
}

/* Close button */
.btn-close {
    opacity: 0.5;
    transition: opacity var(--transition-fast);
}

.btn-close:hover {
    opacity: 1;
}

/* Tooltips */
.tooltip {
    font-size: 0.8125rem;
}

.tooltip-inner {
    background-color: var(--heading-color);
    border-radius: var(--radius-sm);
    padding: var(--spacing-xs) var(--spacing-sm);
}

/* Popovers */
.popover {
    border-color: var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.popover-header {
    background-color: var(--background-color);
    border-bottom-color: var(--border-color);
}

/* Spinners */
.spinner-border {
    color: var(--accent-color);
}

/* Offcanvas */
.offcanvas {
    background-color: var(--surface-color);
    border-color: var(--border-color);
}

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

/* Input group */
.input-group-text {
    background-color: var(--background-color);
    border-color: var(--input-border);
}

/*--------------------------------------------------------------
# DataTables Overrides (simple-datatables)
--------------------------------------------------------------*/
.datatable-wrapper {
    overflow-x: auto;
}

.datatable-wrapper .datatable-top,
.datatable-wrapper .datatable-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    padding: var(--spacing-md) 0;
}

.datatable-wrapper .datatable-search {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.datatable-wrapper .datatable-search input {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.875rem;
    font-family: inherit;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--input-bg);
    color: var(--default-color);
    transition: border-color var(--transition-fast);
}

.datatable-wrapper .datatable-search input:focus {
    outline: 0;
    border-color: var(--input-focus-border);
}

.datatable-wrapper .datatable-dropdown {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 0.875rem;
    color: var(--muted-color);
}

.datatable-wrapper .datatable-dropdown select {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.875rem;
    font-family: inherit;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--input-bg);
    color: var(--default-color);
    cursor: pointer;
}

.datatable-wrapper .datatable-table {
    width: 100%;
    border-collapse: collapse;
}

.datatable-wrapper .datatable-table thead th {
    padding: var(--spacing-md);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted-color);
    background-color: var(--table-header-bg);
    border-bottom: 1px solid var(--border-color);
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

.datatable-wrapper .datatable-table thead th:hover {
    background-color: var(--table-hover-bg);
}

.datatable-wrapper .datatable-table thead th.datatable-ascending::after,
.datatable-wrapper .datatable-table thead th.datatable-descending::after {
    content: "";
    display: inline-block;
    margin-left: var(--spacing-xs);
    border: 4px solid transparent;
}

.datatable-wrapper .datatable-table thead th.datatable-ascending::after {
    border-bottom-color: var(--accent-color);
    transform: translateY(-2px);
}

.datatable-wrapper .datatable-table thead th.datatable-descending::after {
    border-top-color: var(--accent-color);
    transform: translateY(2px);
}

.datatable-wrapper .datatable-table tbody td {
    padding: var(--spacing-md);
    font-size: 0.875rem;
    color: var(--default-color);
    border-bottom: 1px solid var(--border-color-light);
    vertical-align: middle;
}

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

.datatable-wrapper .datatable-table tbody tr:hover td {
    background-color: var(--table-hover-bg);
}

.datatable-wrapper .datatable-info {
    font-size: 0.8125rem;
    color: var(--muted-color);
}

.datatable-wrapper .datatable-pagination {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.datatable-wrapper .datatable-pagination button,
.datatable-wrapper .datatable-pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 var(--spacing-sm);
    font-size: 0.8125rem;
    font-family: inherit;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: var(--surface-color);
    color: var(--default-color);
    cursor: pointer;
    text-decoration: none;
    transition:
        background-color var(--transition-fast),
        border-color var(--transition-fast),
        color var(--transition-fast);
}

.datatable-wrapper .datatable-pagination button:hover:not(:disabled),
.datatable-wrapper .datatable-pagination a:hover {
    background-color: var(--background-color);
    border-color: var(--border-color-dark);
}

.datatable-wrapper .datatable-pagination .active button,
.datatable-wrapper .datatable-pagination .active a {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

.datatable-wrapper .datatable-pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Empty state */
.datatable-wrapper .datatable-empty {
    text-align: center;
    padding: var(--spacing-2xl);
    color: var(--muted-color);
}

/*--------------------------------------------------------------
# Chart Library Overrides
--------------------------------------------------------------*/
/* ApexCharts */
.apexcharts-canvas {
    font-family: var(--font-default) !important;
}

.apexcharts-title-text {
    fill: var(--heading-color) !important;
}

.apexcharts-subtitle-text {
    fill: var(--muted-color) !important;
}

.apexcharts-legend-text {
    color: var(--default-color) !important;
}

.apexcharts-datalabel-label {
    fill: var(--muted-color) !important;
}

.apexcharts-datalabel-value {
    fill: var(--heading-color) !important;
}

.apexcharts-xaxis-label,
.apexcharts-yaxis-label {
    fill: var(--muted-color) !important;
}

.apexcharts-gridline {
    stroke: var(--border-color) !important;
}

.apexcharts-tooltip {
    background-color: var(--surface-color) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-lg) !important;
}

.apexcharts-tooltip-title {
    background-color: var(--background-color) !important;
    border-bottom: 1px solid var(--border-color) !important;
    padding: var(--spacing-sm) var(--spacing-md) !important;
    font-weight: 600 !important;
}

.apexcharts-tooltip-text {
    padding: var(--spacing-sm) var(--spacing-md) !important;
}

.apexcharts-menu {
    background-color: var(--surface-color) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-lg) !important;
}

.apexcharts-menu-item {
    color: var(--default-color) !important;
}

.apexcharts-menu-item:hover {
    background-color: var(--background-color) !important;
}

/* Chart.js */
.chartjs-tooltip {
    background-color: var(--surface-color) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-lg) !important;
    padding: var(--spacing-sm) var(--spacing-md) !important;
    font-family: var(--font-default) !important;
}

/* ECharts */
.echarts-tooltip {
    font-family: var(--font-default) !important;
}

/* Chart Containers */
.chart-container {
    position: relative;
    width: 100%;
    min-height: 300px;
}

.chart-container-sm {
    min-height: 200px;
}

.chart-container-lg {
    min-height: 400px;
}

/* Chart Loading State */
.chart-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--surface-color);
}

/* Chart Legend Custom */
.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    justify-content: center;
    padding-top: var(--spacing-md);
}

.chart-legend-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 0.8125rem;
    color: var(--muted-color);
}

.chart-legend-color {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-sm);
}

/* Sparkline Charts */
.sparkline-container {
    height: 40px;
    width: 100%;
}

/* Mini Chart Stat */
.mini-chart {
    display: flex;
    align-items: flex-end;
    gap: var(--spacing-md);
}

.mini-chart-info {
    flex: 1;
}

.mini-chart-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--heading-color);
    line-height: 1.2;
}

.mini-chart-label {
    font-size: 0.8125rem;
    color: var(--muted-color);
}

.mini-chart-canvas {
    width: 100px;
    height: 50px;
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--header-bg);
    border-bottom: 1px solid var(--header-border);
    display: flex;
    align-items: center;
    padding: 0 var(--spacing-md);
    z-index: 1000;
    transition: left var(--transition-base);
}

@media (min-width: 576px) {
    .header {
        padding: 0 var(--spacing-lg);
    }
}

/* Shift header when sidebar is visible */
@media (min-width: 1200px) {
    .header {
        left: var(--sidebar-width);
    }

    .sidebar-collapsed .header {
        left: var(--sidebar-collapsed-width);
    }
}

/* Header Left - Logo & Toggle */
.header-left {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--heading-color);
}

.header-logo img {
    height: 32px;
    width: auto;
}

.header-logo span {
    display: none;
}

@media (min-width: 576px) {
    .header-logo span {
        display: inline;
    }
}

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

/* Hide logo on desktop (shown in sidebar) */
@media (min-width: 1200px) {
    .header-logo {
        display: none;
    }
}

/* Sidebar Toggle Button */
.sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    color: var(--default-color);
    transition:
        background-color var(--transition-fast),
        color var(--transition-fast);
}

.sidebar-toggle:hover {
    background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
    color: var(--accent-color);
}

.sidebar-toggle i {
    font-size: 1.5rem;
}

/*--------------------------------------------------------------
# Header Search
--------------------------------------------------------------*/
.header-search {
    flex: 1;
    max-width: 400px;
    margin: 0 var(--spacing-lg);
    display: none;
}

@media (min-width: 768px) {
    .header-search {
        display: block;
    }
}

.search-form {
    position: relative;
    display: flex;
    align-items: center;
}

.search-form input {
    width: 100%;
    height: 40px;
    padding: 0 80px 0 40px;
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    color: var(--default-color);
    transition:
        border-color var(--transition-fast),
        box-shadow var(--transition-fast);
}

.search-form input::-moz-placeholder {
    color: var(--muted-color);
}

.search-form input::placeholder {
    color: var(--muted-color);
}

.search-form input:focus {
    outline: 0;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px
        color-mix(in srgb, var(--accent-color), transparent 85%);
}

.search-form .search-icon {
    position: absolute;
    left: 14px;
    font-size: 1.1rem;
    color: var(--muted-color);
    pointer-events: none;
}

.search-shortcut {
    position: absolute;
    right: 12px;
    padding: 3px 8px;
    font-family: inherit;
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--muted-color);
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

/*--------------------------------------------------------------
# Header Right - Actions
--------------------------------------------------------------*/
.header-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin-left: auto;
}

@media (min-width: 576px) {
    .header-right {
        gap: var(--spacing-sm);
    }
}

/* Header Action Button */
.header-action {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.header-action > button,
.header-action > a,
button.header-action,
a.header-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    color: var(--muted-color);
    background: transparent;
    border: none;
    cursor: pointer;
    transition:
        background-color var(--transition-fast),
        color var(--transition-fast);
}

.header-action > button:hover,
.header-action > a:hover,
button.header-action:hover,
a.header-action:hover {
    background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
    color: var(--accent-color);
}

.header-action i {
    font-size: 1.35rem;
}

/* Notification Badge */
.header-action .badge {
    position: absolute;
    top: 2px;
    right: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 0.625rem;
    font-weight: 600;
    background: var(--danger-color);
    color: white;
    border-radius: var(--radius-full);
}

/* Theme Toggle */
.theme-toggle .theme-icon-light {
    display: none;
}

[data-theme="dark"] .theme-toggle .theme-icon-dark {
    display: none;
}

[data-theme="dark"] .theme-toggle .theme-icon-light {
    display: block;
}

/*--------------------------------------------------------------
# Apps Dropdown
--------------------------------------------------------------*/
.apps-dropdown .dropdown-toggle {
    background: transparent;
    border: none;
}

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

.apps-menu {
    width: 320px;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

@media (max-width: 575.98px) {
    .apps-menu {
        width: calc(100vw - 2rem);
        max-width: 320px;
    }
}

.apps-menu-header {
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--background-color);
    border-bottom: 1px solid var(--border-color);
}

.apps-menu-header h6 {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--heading-color);
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: var(--spacing-md);
    gap: var(--spacing-xs);
}

.apps-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-md) var(--spacing-sm);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: background-color var(--transition-fast);
}

.apps-item:hover {
    background-color: var(--background-color);
}

.apps-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-lg);
    font-size: 1.25rem;
}

.apps-item-icon.primary {
    background: color-mix(in srgb, var(--accent-color), transparent 85%);
    color: var(--accent-color);
}

.apps-item-icon.success {
    background: var(--success-color-light);
    color: var(--success-color);
}

.apps-item-icon.warning {
    background: var(--warning-color-light);
    color: var(--warning-color);
}

.apps-item-icon.danger {
    background: var(--danger-color-light);
    color: var(--danger-color);
}

.apps-item-icon.info {
    background: var(--info-color-light);
    color: var(--info-color);
}

.apps-item-icon.secondary {
    background: color-mix(in srgb, var(--muted-color), transparent 85%);
    color: var(--muted-color);
}

.apps-item-icon.muted {
    background: var(--background-color);
    color: var(--muted-color);
}

.apps-item-title {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--default-color);
    text-align: center;
}

.apps-item:hover .apps-item-title {
    color: var(--accent-color);
}

/*--------------------------------------------------------------
# Language Dropdown
--------------------------------------------------------------*/
.language-dropdown .dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    transition: background-color var(--transition-fast);
}

.language-dropdown .dropdown-toggle:hover {
    background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
}

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

.language-dropdown .lang-flag {
    font-size: 1.4rem;
    line-height: 1;
}

.language-dropdown .dropdown-menu {
    min-width: 180px;
    padding: var(--spacing-xs);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.language-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    color: var(--default-color);
}

.language-dropdown .dropdown-item:hover {
    background-color: var(--background-color);
}

.language-dropdown .dropdown-item .lang-flag {
    font-size: 1.25rem;
}

.language-dropdown .dropdown-item.active {
    background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
    color: var(--accent-color);
}

/*--------------------------------------------------------------
# Notification Dropdown
--------------------------------------------------------------*/
.notification-dropdown .dropdown-toggle {
    background: transparent;
    border: none;
}

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

.notification-dropdown .dropdown-menu {
    width: 380px;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

@media (max-width: 575.98px) {
    .notification-dropdown .dropdown-menu {
        width: calc(100vw - 2rem);
        max-width: 360px;
    }
}

.notification-dropdown .notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--background-color);
    border-bottom: 1px solid var(--border-color);
}

.notification-dropdown .notification-header h6 {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--heading-color);
}

.notification-dropdown .notification-count {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent-color);
    background: color-mix(in srgb, var(--accent-color), transparent 90%);
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.notification-dropdown .notification-list {
    max-height: 380px;
    overflow-y: auto;
    padding: 0;
}

.notification-dropdown .notification-item {
    display: flex;
    gap: 14px;
    padding: 14px 20px;
    text-decoration: none;
    border-bottom: 1px solid var(--border-color-light);
    transition: background-color var(--transition-fast);
}

.notification-dropdown .notification-item:hover {
    background-color: var(--background-color);
}

.notification-dropdown .notification-item:last-child {
    border-bottom: none;
}

.notification-dropdown .notification-item.unread {
    background-color: color-mix(in srgb, var(--accent-color), transparent 95%);
}

.notification-dropdown .notification-item.unread:hover {
    background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
}

.notification-dropdown .notification-avatar {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-lg);
    font-size: 1.25rem;
}

.notification-dropdown .notification-avatar.primary {
    background: color-mix(in srgb, var(--accent-color), transparent 85%);
    color: var(--accent-color);
}

.notification-dropdown .notification-avatar.success {
    background: var(--success-color-light);
    color: var(--success-color);
}

.notification-dropdown .notification-avatar.warning {
    background: var(--warning-color-light);
    color: var(--warning-color);
}

.notification-dropdown .notification-avatar.danger {
    background: var(--danger-color-light);
    color: var(--danger-color);
}

.notification-dropdown .notification-avatar.info {
    background: var(--info-color-light);
    color: var(--info-color);
}

.notification-dropdown .notification-content {
    flex: 1;
    min-width: 0;
}

.notification-dropdown .notification-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 2px;
}

.notification-dropdown .notification-text {
    font-size: 0.8125rem;
    color: var(--muted-color);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notification-dropdown .notification-time {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--light-color);
    margin-top: 6px;
}

.notification-dropdown .notification-time i {
    font-size: 0.875rem;
}

.notification-dropdown .notification-footer {
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--background-color);
    border-top: 1px solid var(--border-color);
}

.notification-dropdown .notification-footer a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--accent-color);
}

.notification-dropdown .notification-footer a:hover {
    text-decoration: underline;
}

.notification-dropdown .notification-footer i {
    font-size: 1rem;
}

/*--------------------------------------------------------------
# User Dropdown
--------------------------------------------------------------*/
.user-dropdown {
    margin-left: var(--spacing-xs);
}

.user-dropdown .dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius-full);
    background: transparent;
    border: 2px solid transparent;
    overflow: hidden;
    transition: border-color var(--transition-fast);
}

.user-dropdown .dropdown-toggle:hover {
    border-color: var(--accent-color);
}

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

.user-dropdown .avatar {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-full);
    -o-object-fit: cover;
    object-fit: cover;
    display: block;
}

.user-dropdown .dropdown-menu {
    width: 240px;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.user-dropdown-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: linear-gradient(
        135deg,
        var(--accent-color),
        color-mix(in srgb, var(--accent-color), black 20%)
    );
}

.user-dropdown-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    -o-object-fit: cover;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.user-dropdown-info {
    flex: 1;
    min-width: 0;
}

.user-dropdown-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-dropdown-role {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

.user-dropdown-body {
    padding: var(--spacing-sm);
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    color: var(--default-color);
    text-decoration: none;
    transition:
        background-color var(--transition-fast),
        color var(--transition-fast);
}

.user-dropdown-item:hover {
    background-color: var(--background-color);
    color: var(--accent-color);
}

.user-dropdown-item i {
    font-size: 1.25rem;
    width: 24px;
    color: var(--muted-color);
    transition: color var(--transition-fast);
}

.user-dropdown-item:hover i {
    color: var(--accent-color);
}

.user-dropdown-footer {
    padding: var(--spacing-sm);
    border-top: 1px solid var(--border-color);
}

.user-dropdown-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--danger-color);
    text-decoration: none;
    transition: background-color var(--transition-fast);
}

.user-dropdown-logout:hover {
    background-color: var(--danger-color-light);
}

.user-dropdown-logout i {
    font-size: 1.25rem;
}

/*--------------------------------------------------------------
# Mobile Header Actions
--------------------------------------------------------------*/
/* Desktop actions - visible on larger screens */
.header-actions-desktop {
    display: none;
    align-items: center;
    gap: var(--spacing-xs);
}

@media (min-width: 576px) {
    .header-actions-desktop {
        gap: var(--spacing-sm);
    }
}

@media (min-width: 768px) {
    .header-actions-desktop {
        display: flex;
    }
}

/* Mobile actions - visible only on mobile */
.header-actions-mobile {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

@media (min-width: 768px) {
    .header-actions-mobile {
        display: none;
    }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: flex;
}

/*--------------------------------------------------------------
# Mobile Search Overlay
--------------------------------------------------------------*/
.mobile-search {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    padding: var(--spacing-md);
    background: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    z-index: 998;
    animation: slideDown var(--transition-fast) ease-out;
}

.mobile-search.active {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

.mobile-search .search-form input {
    padding-left: var(--spacing-md);
    padding-right: 50px;
}

.mobile-search .search-form button {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-color);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.mobile-search .search-form button:hover {
    color: var(--accent-color);
}

/*--------------------------------------------------------------
# Mobile Header Menu (Three Dots Menu)
--------------------------------------------------------------*/
.mobile-header-menu {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    z-index: 997;
    animation: slideDown var(--transition-fast) ease-out;
}

.mobile-header-menu.active {
    display: block;
}

@media (min-width: 768px) {
    .mobile-header-menu {
        display: none !important;
    }
}

.mobile-header-menu-content {
    display: flex;
    flex-wrap: wrap;
    padding: var(--spacing-sm);
    gap: var(--spacing-xs);
}

.mobile-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 1;
    min-width: calc(33.333% - var(--spacing-xs));
    max-width: calc(33.333% - var(--spacing-xs));
    padding: var(--spacing-md) var(--spacing-sm);
    border-radius: var(--radius-md);
    background: transparent;
    border: none;
    color: var(--default-color);
    text-decoration: none;
    cursor: pointer;
    transition:
        background-color var(--transition-fast),
        color var(--transition-fast);
    position: relative;
}

.mobile-menu-item:hover {
    background-color: var(--background-color);
    color: var(--accent-color);
}

.mobile-menu-item i {
    font-size: 1.35rem;
}

.mobile-menu-item .badge {
    position: absolute;
    top: 8px;
    right: calc(50% - 20px);
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 0.625rem;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
    background: var(--danger-color);
    color: white;
    border-radius: var(--radius-full);
}

.mobile-menu-label {
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--muted-color);
}

.mobile-menu-item:hover .mobile-menu-label {
    color: var(--accent-color);
}

/* Danger variant for sign out */
.mobile-menu-item-danger:hover {
    background-color: var(--danger-color-light);
    color: var(--danger-color);
}

.mobile-menu-item-danger:hover .mobile-menu-label {
    color: var(--danger-color);
}

/* Theme toggle in mobile menu */
.mobile-menu-item.theme-toggle .theme-icon-light {
    display: none;
}

[data-theme="dark"] .mobile-menu-item.theme-toggle .theme-icon-dark {
    display: none;
}

[data-theme="dark"] .mobile-menu-item.theme-toggle .theme-icon-light {
    display: block;
}

/*--------------------------------------------------------------
# Sidebar
--------------------------------------------------------------*/
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    border-right: 1px solid var(--sidebar-border);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transition:
        width var(--transition-base),
        transform var(--transition-base);
    overflow: hidden;
}

/* Mobile: Hidden by default */
@media (max-width: 1199px) {
    .sidebar {
        transform: translateX(-100%);
        /* On mobile, always use full width regardless of collapsed state */
        width: var(--sidebar-width);
    }

    .sidebar-open .sidebar {
        transform: translateX(0);
    }

    /* Ensure sidebar-collapsed has no effect on mobile */
    .sidebar-collapsed .sidebar {
        width: var(--sidebar-width);
        overflow: hidden;
    }

    .sidebar-collapsed .sidebar-nav {
        overflow-y: auto;
        overflow-x: hidden;
    }
}

/* Sidebar Collapsed State (Desktop) */
@media (min-width: 1200px) {
    .sidebar-collapsed .sidebar {
        width: var(--sidebar-collapsed-width);
        overflow: visible;
    }

    .sidebar-collapsed .sidebar-nav {
        overflow: visible;
    }
}

/*--------------------------------------------------------------
# Sidebar Header
--------------------------------------------------------------*/
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 50px;
    padding: 0 var(--spacing-md);
    border-bottom: 1px solid var(--sidebar-border);
    flex-shrink: 0;
}

.sidebar-collapsed .sidebar-header {
    justify-content: center;
    padding: 0 var(--spacing-sm);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1.2rem;
    color: #ffffff;
    white-space: nowrap;
    text-decoration: none;
}

.sidebar-logo:hover {
    color: #ffffff;
}

.sidebar-logo img {
    height: 22px;
    width: auto;
    flex-shrink: 0;
    filter: brightness(0) invert(1);
}

.sidebar-logo span {
    opacity: 0.85;
    transition:
        opacity var(--transition-fast),
        width var(--transition-fast);
}

.sidebar-logo:hover span {
    opacity: 1;
}

.sidebar-collapsed .sidebar-logo {
    gap: 0;
    justify-content: center;
}

.sidebar-collapsed .sidebar-logo span {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.sidebar-close {
    display: none;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    color: var(--sidebar-text-muted);
    background: none;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}

.sidebar-close:hover {
    background-color: var(--sidebar-hover-bg);
    color: #ffffff;
}

/* Mobile sidebar styles when open - ensure expanded appearance */
@media (max-width: 1199px) {
    /* Show close button when sidebar is open */
    .sidebar-open .sidebar-close {
        display: flex;
    }

    /* Ensure sidebar header uses expanded layout on mobile */
    .sidebar-open .sidebar-header,
    .sidebar-collapsed .sidebar-header {
        justify-content: space-between;
        padding: 0 var(--spacing-md);
    }

    /* Ensure logo text is visible on mobile */
    .sidebar-open .sidebar-logo,
    .sidebar-collapsed .sidebar-logo {
        gap: 0.5rem;
        justify-content: flex-start;
    }

    .sidebar-open .sidebar-logo span,
    .sidebar-collapsed .sidebar-logo span {
        opacity: 0.85;
        width: auto;
        overflow: visible;
    }

    /* Override collapsed nav heading styles on mobile */
    .sidebar-collapsed .nav-heading {
        text-align: left;
        padding: var(--spacing-xl) var(--spacing-md) var(--spacing-sm);
    }

    .sidebar-collapsed .nav-heading span {
        display: inline;
    }

    .sidebar-collapsed .nav-heading::before {
        content: none;
    }

    /* Override collapsed nav item styles on mobile */
    .sidebar-collapsed .nav-item > .nav-link {
        justify-content: flex-start;
        padding: 10px 12px;
    }

    .sidebar-collapsed .nav-item > .nav-link > i:first-child {
        margin-right: 12px;
        font-size: 1.35rem;
    }

    .sidebar-collapsed .nav-item > .nav-link > span,
    .sidebar-collapsed .nav-arrow,
    .sidebar-collapsed .nav-badge {
        display: flex;
    }

    .sidebar-collapsed .nav-badge {
        display: inline-flex;
    }

    /* Ensure submenus work normally on mobile (not flyout) */
    .sidebar-collapsed .nav-submenu {
        display: block !important;
        position: static !important;
        left: auto !important;
        min-width: auto !important;
        padding: 0 !important;
        margin-left: 20px !important;
        border: none !important;
        border-left: 1px solid rgba(255, 255, 255, 0.3) !important;
        background: transparent !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .sidebar-collapsed .nav-submenu > li > .nav-link {
        padding-left: 17px;
    }

    .sidebar-collapsed .nav-submenu > li > .nav-link::before {
        display: block;
    }
}

/*--------------------------------------------------------------
# Sidebar Navigation
--------------------------------------------------------------*/
.sidebar-nav {
    flex: 1;
    padding: var(--spacing-md) var(--spacing-sm);
    overflow-y: auto;
    overflow-x: hidden;
}

/* Scrollbar styling */
.sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

.sidebar-nav::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

/* Firefox scrollbar */
.sidebar-nav {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) rgba(255, 255, 255, 0.05);
}

/* Nav Menu - Reset list styles */
.nav-menu,
.nav-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/*--------------------------------------------------------------
# Nav Heading (Section Title)
--------------------------------------------------------------*/
.nav-heading {
    padding: var(--spacing-xl) var(--spacing-md) var(--spacing-sm);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--sidebar-heading-color);
    white-space: nowrap;
    overflow: hidden;
}

.nav-heading:first-child {
    padding-top: var(--spacing-sm);
}

.sidebar-collapsed .nav-heading {
    text-align: center;
    padding: var(--spacing-lg) var(--spacing-xs) var(--spacing-xs);
}

.sidebar-collapsed .nav-heading span {
    display: none;
}

.sidebar-collapsed .nav-heading::before {
    content: "•";
    font-size: 1rem;
}

/*--------------------------------------------------------------
# Nav Item & Nav Link
--------------------------------------------------------------*/
.nav-item {
    position: relative;
}

/* Main nav link style */
.nav-item > .nav-link {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--sidebar-text);
    text-decoration: none;
    transition:
        background-color var(--transition-fast),
        color var(--transition-fast);
}

.nav-item > .nav-link:hover {
    background-color: var(--sidebar-hover-bg);
    color: #ffffff;
}

/* Icon in nav link */
.nav-item > .nav-link > i:first-child {
    width: 22px;
    margin-right: 12px;
    font-size: 1.35rem;
    text-align: center;
    flex-shrink: 0;
    color: var(--sidebar-icon-color);
    transition: color var(--transition-fast);
}

.nav-item > .nav-link:hover > i:first-child {
    color: #ffffff;
}

/* Text in nav link */
.nav-item > .nav-link > span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Arrow icon for submenus - positioned at the right */
.nav-arrow {
    font-size: 0.625rem;
    margin-left: auto;
    transition: transform var(--transition-fast);
    color: rgba(255, 255, 255, 0.5);
}

.nav-item > .nav-link:hover > .nav-arrow {
    color: rgba(255, 255, 255, 0.8);
}

.nav-link[aria-expanded="true"] > .nav-arrow,
.has-submenu.open > .nav-link > .nav-arrow {
    transform: rotate(180deg);
}

/* Active State */
.nav-item > .nav-link.active {
    background-color: var(--sidebar-hover-bg);
    color: var(--sidebar-active-text);
}

.nav-item > .nav-link.active > i:first-child {
    color: var(--sidebar-active-text);
}

.nav-item.has-submenu.open > .nav-link {
    background-color: var(--sidebar-hover-bg);
    color: #ffffff;
}

.nav-item.has-submenu.open > .nav-link > i:first-child {
    color: #ffffff;
}

/* Badge in nav */
.nav-badge {
    padding: 2px 8px;
    font-size: 0.625rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    background: var(--accent-color);
    color: white;
    flex-shrink: 0;
    margin-left: auto;
}

/* New badge */
.nav-badge-new {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

/*--------------------------------------------------------------
# Collapsed Sidebar State
--------------------------------------------------------------*/
@media (min-width: 1200px) {
    .sidebar-collapsed .nav-item > .nav-link {
        justify-content: center;
        padding: 10px;
    }

    .sidebar-collapsed .nav-item > .nav-link > i:first-child {
        margin-right: 0;
        font-size: 1.25rem;
    }

    .sidebar-collapsed .nav-item > .nav-link > span,
    .sidebar-collapsed .nav-arrow,
    .sidebar-collapsed .nav-badge {
        display: none;
    }
}

/*--------------------------------------------------------------
# Submenu (2nd Level)
--------------------------------------------------------------*/
.nav-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
}

/* Open state - via JS (.open on parent) or Jinja (.show on submenu) */
.has-submenu.open > .nav-submenu,
.nav-submenu.show {
    max-height: none;
    margin-top: 4px;
}

/* Submenu container with vertical line */
.nav-submenu {
    position: relative;
    margin-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
}

/* Submenu items */
.nav-submenu > li > .nav-link {
    display: flex;
    align-items: center;
    padding: 8px 12px 8px 17px;
    margin-left: 0;
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--sidebar-text-muted);
    text-decoration: none;
    border-radius: 0;
    position: relative;
    transition: color var(--transition-fast);
}

/* Horizontal line indicator */
.nav-submenu > li > .nav-link::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 10px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.3);
    transition: background-color var(--transition-fast);
}

.nav-submenu > li > .nav-link:hover {
    color: var(--sidebar-active-text);
}

.nav-submenu > li > .nav-link.active {
    color: #ffffff;
}

.nav-submenu > li > .nav-link.active::before {
    background-color: #ffffff;
}

/*--------------------------------------------------------------
# Nested Submenu (3rd Level)
--------------------------------------------------------------*/
/* 3rd level container inside 2nd level submenu */
.nav-submenu .has-submenu {
    position: relative;
}

.nav-submenu .has-submenu > .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 12px;
}

.nav-submenu .has-submenu > .nav-link > .nav-arrow {
    font-size: 0.625rem;
    transition: transform var(--transition-fast);
    color: rgba(255, 255, 255, 0.5);
}

.nav-submenu .has-submenu.open > .nav-link > .nav-arrow {
    transform: rotate(180deg);
}

/* 3rd level submenu */
.nav-submenu .has-submenu.open > .nav-submenu {
    margin-top: 4px;
    margin-left: 12px;
}

.nav-submenu .nav-submenu > li > .nav-link {
    margin-left: 0;
}

/*--------------------------------------------------------------
# Collapsed Sidebar - Flyout Submenus
--------------------------------------------------------------*/
@media (min-width: 1200px) {
    .sidebar-collapsed .nav-submenu {
        display: none !important;
        max-height: none !important;
    }

    /* Show submenu on hover for collapsed sidebar */
    .sidebar-collapsed .nav-item.has-submenu:hover > .nav-submenu {
        display: block !important;
        position: absolute;
        left: 100%;
        top: 0;
        min-width: 200px;
        max-height: none !important;
        padding: var(--spacing-sm);
        margin: 0;
        margin-left: 0;
        padding-left: var(--spacing-sm);
        border-left: none;
        background: var(--sidebar-bg);
        border: 1px solid var(--sidebar-border);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-lg);
        z-index: 1000;
    }

    .sidebar-collapsed
        .nav-item.has-submenu:hover
        > .nav-submenu
        > li
        > .nav-link {
        margin-left: 0;
        padding-left: 12px;
    }

    .sidebar-collapsed
        .nav-item.has-submenu:hover
        > .nav-submenu
        > li
        > .nav-link::before {
        display: none;
    }
}

/*--------------------------------------------------------------
# Sidebar Footer
--------------------------------------------------------------*/
.sidebar-footer {
    padding: var(--spacing-md);
    border-top: 1px solid var(--sidebar-border);
    flex-shrink: 0;
}

.sidebar-footer-user {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    border-radius: var(--radius-lg);
    background: var(--sidebar-hover-bg);
}

.sidebar-footer-profile {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex: 1;
    min-width: 0;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: opacity var(--transition-fast);
}

.sidebar-footer-profile:hover {
    opacity: 0.8;
}

.sidebar-footer-avatar {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    -o-object-fit: cover;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.sidebar-footer-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.sidebar-footer-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.sidebar-footer-role {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--sidebar-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.sidebar-footer-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

.sidebar-footer-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    color: var(--sidebar-text-muted);
    text-decoration: none;
    transition:
        background-color var(--transition-fast),
        color var(--transition-fast);
}

.sidebar-footer-action:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.sidebar-footer-action i {
    font-size: 1rem;
}

.sidebar-footer-logout:hover {
    background-color: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

/* Collapsed state */
@media (min-width: 1200px) {
    .sidebar-collapsed .sidebar-footer {
        padding: var(--spacing-sm);
    }

    .sidebar-collapsed .sidebar-footer-user {
        flex-direction: column;
        padding: var(--spacing-xs);
        gap: var(--spacing-xs);
    }

    .sidebar-collapsed .sidebar-footer-profile {
        justify-content: center;
    }

    .sidebar-collapsed .sidebar-footer-info {
        display: none;
    }

    .sidebar-collapsed .sidebar-footer-avatar {
        width: 36px;
        height: 36px;
    }

    .sidebar-collapsed .sidebar-footer-actions {
        width: 100%;
        justify-content: center;
        border-top: 1px solid var(--sidebar-border);
        padding-top: var(--spacing-xs);
        margin-top: 2px;
    }

    .sidebar-collapsed .sidebar-footer-action {
        width: 28px;
        height: 28px;
    }

    .sidebar-collapsed .sidebar-footer-action i {
        font-size: 0.875rem;
    }
}

/* Mobile sidebar footer - ensure expanded appearance */
@media (max-width: 1199px) {
    .sidebar-open .sidebar-footer,
    .sidebar-collapsed .sidebar-footer {
        padding: var(--spacing-md);
    }

    .sidebar-open .sidebar-footer-user,
    .sidebar-collapsed .sidebar-footer-user {
        flex-direction: row;
        padding: var(--spacing-sm);
        gap: var(--spacing-sm);
    }

    .sidebar-open .sidebar-footer-info,
    .sidebar-collapsed .sidebar-footer-info {
        display: block;
    }

    .sidebar-open .sidebar-footer-avatar,
    .sidebar-collapsed .sidebar-footer-avatar {
        width: 38px;
        height: 38px;
    }

    .sidebar-open .sidebar-footer-actions,
    .sidebar-collapsed .sidebar-footer-actions {
        width: auto;
        border-top: none;
        padding-top: 0;
        margin-top: 0;
    }

    .sidebar-open .sidebar-footer-action,
    .sidebar-collapsed .sidebar-footer-action {
        width: 32px;
        height: 32px;
    }

    .sidebar-open .sidebar-footer-action i,
    .sidebar-collapsed .sidebar-footer-action i {
        font-size: 1rem;
    }
}

/*--------------------------------------------------------------
# Sidebar Overlay (Mobile)
--------------------------------------------------------------*/
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity var(--transition-base),
        visibility var(--transition-base);
}

.sidebar-open .sidebar-overlay {
    opacity: 1;
    visibility: visible;
}

@media (min-width: 1200px) {
    .sidebar-overlay {
        display: none;
    }
}

/*--------------------------------------------------------------
# Sidebar Tooltips (Collapsed State Only)
--------------------------------------------------------------*/
/* Custom tooltip for sidebar nav items - only visible in collapsed state */
.nav-item > .nav-link[data-sidebar-tooltip] {
    position: relative;
}

/* Tooltip pseudo-element - hidden by default */
.nav-item > .nav-link[data-sidebar-tooltip]::after {
    content: attr(data-sidebar-tooltip);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 12px;
    padding: 6px 12px;
    background: var(--sidebar-bg);
    color: #ffffff;
    font-size: 0.8125rem;
    font-weight: 500;
    white-space: nowrap;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--sidebar-border);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity var(--transition-fast),
        visibility var(--transition-fast);
    z-index: 1002;
}

/* Arrow pointing to the left */
.nav-item > .nav-link[data-sidebar-tooltip]::before {
    content: "";
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 6px;
    border: 6px solid transparent;
    border-right-color: var(--sidebar-border);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity var(--transition-fast),
        visibility var(--transition-fast);
    z-index: 1003;
}

/* Inner arrow for background color */
.sidebar-collapsed .nav-item > .nav-link[data-sidebar-tooltip]::before {
    border-right-color: var(--sidebar-bg);
    margin-left: 7px;
}

/* Show tooltips only in collapsed sidebar state on desktop */
@media (min-width: 1200px) {
    .sidebar-collapsed .nav-item > .nav-link[data-sidebar-tooltip]:hover::after,
    .sidebar-collapsed
        .nav-item
        > .nav-link[data-sidebar-tooltip]:hover::before {
        opacity: 1;
        visibility: visible;
    }

    /* Hide tooltip for items with open submenu (flyout already visible) */
    .sidebar-collapsed
        .nav-item.has-submenu:hover
        > .nav-link[data-sidebar-tooltip]::after,
    .sidebar-collapsed
        .nav-item.has-submenu:hover
        > .nav-link[data-sidebar-tooltip]::before {
        opacity: 0;
        visibility: hidden;
    }
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
    padding: var(--spacing-xl) var(--spacing-xl);
    background: var(--surface-color);
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--spacing-sm);
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing-md) var(--spacing-lg);
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--muted-color);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-copyright {
    font-size: 0.875rem;
    color: var(--muted-color);
}

.footer-copyright a {
    font-weight: 500;
    color: var(--accent-color);
}

.footer-credits {
    font-size: 0.875rem;
    color: var(--muted-color);
}

.footer-credits a {
    color: var(--accent-color);
}

/* Responsive */
@media (max-width: 575px) {
    .footer {
        padding: var(--spacing-lg);
    }

    .footer-links {
        gap: var(--spacing-sm) var(--spacing-md);
    }
}

/*--------------------------------------------------------------
# Main Content Area
--------------------------------------------------------------*/
.main {
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
    display: flex;
    flex-direction: column;
    transition: margin-left var(--transition-base);
}

/* Desktop: Account for sidebar */
@media (min-width: 1200px) {
    .main {
        margin-left: var(--sidebar-width);
    }

    .sidebar-collapsed .main {
        margin-left: var(--sidebar-collapsed-width);
    }
}

/* Main Content */
.main-content {
    flex: 1;
    padding: var(--spacing-xl);
    padding-bottom: 4rem;
}

@media (max-width: 767px) {
    .main-content {
        padding: var(--spacing-md);
        padding-bottom: var(--spacing-xl);
    }
}

/* Page Header */
.page-header,
.pagetitle {
    margin-bottom: var(--spacing-xl);
}

.page-title,
.pagetitle h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--heading-color);
    margin: 0 0 var(--spacing-sm);
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0;
    margin: 0;
    background: transparent;
    font-size: 0.8125rem;
}

.breadcrumb-item {
    color: var(--muted-color);
}

.breadcrumb-item a {
    color: var(--muted-color);
    transition: color var(--transition-fast);
}

.breadcrumb-item a:hover {
    color: var(--accent-color);
}

.breadcrumb-item.active {
    color: var(--default-color);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    padding-right: var(--spacing-xs);
    color: var(--light-color);
}

/* Content Sections */
.section {
    margin-bottom: var(--spacing-xl);
}

.section:last-child {
    margin-bottom: 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--heading-color);
    margin: 0;
}

.section-subtitle {
    font-size: 0.875rem;
    color: var(--muted-color);
    margin-top: 2px;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.dashboard-grid > .card {
    margin-bottom: 0;
    height: 100%;
}

.dashboard-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.dashboard-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.dashboard-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 991px) {
    .dashboard-grid-3,
    .dashboard-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .dashboard-grid-2,
    .dashboard-grid-3,
    .dashboard-grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Two Column Layout */
.two-column-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: var(--spacing-xl);
}

.two-column-layout > div > .card:last-child {
    margin-bottom: 0;
}

@media (max-width: 1199px) {
    .two-column-layout {
        grid-template-columns: 1fr;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: var(--spacing-xl);
    right: var(--spacing-xl);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-color);
    color: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity var(--transition-base),
        visibility var(--transition-base),
        background-color var(--transition-fast);
    z-index: 999;
}

.back-to-top:hover {
    background: color-mix(in srgb, var(--accent-color), black 10%);
    color: white;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top i {
    font-size: 1.25rem;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background-color);
    z-index: 9999;
    transition: opacity var(--transition-slow);
}

.loading-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-color);
    border-radius: var(--radius-full);
    animation: spin 1s linear infinite;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: var(--spacing-2xl);
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--accent-color), transparent 90%);
    color: var(--accent-color);
    border-radius: var(--radius-full);
}

.empty-state-icon i {
    font-size: 2rem;
}

.empty-state-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: var(--spacing-sm);
}

.empty-state-text {
    font-size: 0.875rem;
    color: var(--muted-color);
    margin-bottom: var(--spacing-lg);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/*--------------------------------------------------------------
# Auth Layout (Login, Register, etc.)
--------------------------------------------------------------*/
.auth-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl);
    background: var(--background-color);
}

/* Auth Container */
.auth-container {
    width: 100%;
    max-width: 440px;
}

/* Auth Logo */
.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--heading-color);
    text-decoration: none;
}

.auth-logo:hover {
    color: var(--heading-color);
}

.auth-logo img {
    height: 200px;
    width: auto;
}

/* Auth Card */
.auth-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: var(--spacing-2xl);
}

.auth-card-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: var(--spacing-xs);
}

.auth-subtitle {
    font-size: 0.9375rem;
    color: var(--muted-color);
    margin: 0;
}

/* Auth Icon (for pages like forgot password) */
.auth-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    background: color-mix(in srgb, var(--accent-color), transparent 90%);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg);
    font-size: 1.5rem;
}

.auth-icon.success {
    background: var(--success-color-light);
    color: var(--success-color);
}

.auth-icon.warning {
    background: var(--warning-color-light);
    color: var(--warning-color);
}

.auth-icon.danger {
    background: var(--danger-color-light);
    color: var(--danger-color);
}

/* Auth Avatar (for lock screen) */
.auth-avatar {
    width: 96px;
    height: 96px;
    margin: 0 auto var(--spacing-lg);
}

.auth-avatar img {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-full);
    -o-object-fit: cover;
    object-fit: cover;
    border: 4px solid var(--surface-color);
    box-shadow: var(--shadow-md);
}

/* Auth Form */
.auth-form .form-group {
    margin-bottom: var(--spacing-lg);
}

.auth-form .form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--heading-color);
    margin-bottom: var(--spacing-sm);
}

.auth-form .form-control {
    display: block;
    width: 100%;
    height: 44px;
    padding: 0 var(--spacing-md);
    font-size: 0.9375rem;
    color: var(--default-color);
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast);
}

.auth-form .form-control:focus {
    outline: 0;
    border-color: var(--input-focus-border);
}

.auth-form .form-control::-moz-placeholder {
    color: var(--light-color);
}

.auth-form .form-control::placeholder {
    color: var(--light-color);
}

.auth-form .form-text {
    font-size: 0.8125rem;
    color: var(--muted-color);
    margin-top: var(--spacing-xs);
}

/* Input Group for password toggle */
.auth-form .input-group {
    display: flex;
}

.auth-form .input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.auth-form .input-group .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left: 0;
    padding: 0 var(--spacing-md);
    border-color: var(--input-border);
    color: var(--muted-color);
    background: var(--input-bg);
}

.auth-form .input-group .btn:hover {
    background: var(--background-color);
    border-color: var(--input-border);
    color: var(--default-color);
}

.auth-form .input-group .btn:focus {
    box-shadow: none;
    border-color: var(--input-focus-border);
}

/* Remember Me / Forgot Password Row */
.auth-form .form-check {
    margin-bottom: var(--spacing-lg);
}

.auth-form .form-check-input {
    width: 18px;
    height: 18px;
    margin-top: 0;
    vertical-align: middle;
    border-radius: var(--radius-sm);
}

.auth-form .form-check-label {
    font-size: 0.875rem;
    color: var(--default-color);
    margin-left: var(--spacing-xs);
}

/* Auth Button */
.auth-form .btn-block {
    width: 100%;
    height: 44px;
    font-size: 0.9375rem;
    font-weight: 600;
}

/* Auth Link */
.auth-link {
    color: var(--accent-color);
    font-weight: 500;
    text-decoration: none;
}

.auth-link:hover {
    color: color-mix(in srgb, var(--accent-color), black 15%);
    text-decoration: underline;
}

/* Social Login */
.auth-divider {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin: var(--spacing-xl) 0;
    color: var(--muted-color);
    font-size: 0.8125rem;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.auth-social {
    display: flex;
    gap: var(--spacing-sm);
}

.auth-social .btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    height: 44px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Auth Footer Text */
.auth-footer-text {
    text-align: center;
    margin-top: var(--spacing-lg);
    font-size: 0.875rem;
    color: var(--muted-color);
}

.auth-footer-text:last-child {
    margin-bottom: 0;
}

/* Auth Alert */
.auth-alert {
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-lg);
    font-size: 0.875rem;
}

.auth-alert-error {
    background: var(--danger-color-light);
    color: var(--danger-color);
    border: 1px solid var(--danger-color);
}

.auth-alert-success {
    background: var(--success-color-light);
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

/* OTP Input (for 2FA) */
.otp-input-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
}

.otp-input {
    width: 48px !important;
    height: 56px !important;
    padding: 0 !important;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
}

.otp-separator {
    font-size: 1.5rem;
    color: var(--muted-color);
}

/* Centered Footer for Auth Layout */
.footer-centered {
    margin-top: var(--spacing-2xl);
    text-align: center;
    font-size: 0.8125rem;
    color: var(--muted-color);
}

.footer-centered .footer-copyright {
    margin-bottom: var(--spacing-sm);
}

.footer-centered .footer-copyright a {
    color: var(--default-color);
    font-weight: 500;
}

.footer-centered .footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
}

.footer-centered .footer-links a {
    color: var(--muted-color);
}

.footer-centered .footer-links a:hover {
    color: var(--accent-color);
}

/* Responsive */
@media (max-width: 575.98px) {
    .auth-layout {
        padding: var(--spacing-lg);
    }

    .auth-card {
        padding: var(--spacing-xl);
    }

    .auth-title {
        font-size: 1.25rem;
    }

    .auth-social {
        flex-direction: column;
    }

    .otp-input {
        width: 40px !important;
        height: 48px !important;
        font-size: 1.25rem;
    }
}

/*--------------------------------------------------------------
# Auth Split Layout
--------------------------------------------------------------*/
.auth-layout-split {
    flex-direction: row;
    padding: 0;
}

.auth-form-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl);
    background: var(--surface-color);
    min-height: 100vh;
}

.auth-brand-side {
    width: 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-2xl);
    background: linear-gradient(
        135deg,
        var(--accent-color),
        color-mix(in srgb, var(--accent-color), black 25%)
    );
    color: white;
    position: relative;
    overflow: hidden;
}

.auth-brand-side::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 70%
    );
    pointer-events: none;
}

.auth-brand-side::after {
    content: "";
    position: absolute;
    bottom: -30%;
    left: -30%;
    width: 80%;
    height: 80%;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.08) 0%,
        transparent 60%
    );
    pointer-events: none;
}

.auth-brand-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 360px;
}

.auth-brand-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-xl);
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;

    padding: 0.5rem;
}

.auth-brand-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: #fff;
}

.auth-brand-text {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: var(--spacing-xl);
}

.auth-brand-features {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    text-align: left;
}

.auth-brand-feature {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 0.9375rem;
}

.auth-brand-feature i {
    font-size: 1rem;
    opacity: 0.9;
}

/* Split Layout Responsive */
@media (max-width: 991.98px) {
    .auth-layout-split {
        flex-direction: column;
    }

    .auth-form-side {
        min-height: auto;
        padding: var(--spacing-xl);
    }

    .auth-brand-side {
        width: 100%;
        min-height: 300px;
        padding: var(--spacing-xl);
    }

    .auth-brand-content {
        max-width: 100%;
    }

    .auth-brand-title {
        font-size: 1.5rem;
    }

    .auth-brand-features {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .auth-brand-feature {
        font-size: 0.8125rem;
    }
}

@media (max-width: 575.98px) {
    .auth-brand-side {
        display: none;
    }

    .auth-form-side {
        padding: var(--spacing-lg);
    }
}

/*--------------------------------------------------------------
# Accordion
--------------------------------------------------------------*/
.accordion {
    --bs-accordion-bg: var(--surface-color);
    --bs-accordion-border-color: var(--border-color);
    --bs-accordion-btn-color: var(--heading-color);
    --bs-accordion-btn-bg: var(--surface-color);
    --bs-accordion-active-color: var(--accent-color);
    --bs-accordion-active-bg: color-mix(
        in srgb,
        var(--accent-color),
        transparent 95%
    );
}

.accordion-button {
    font-weight: 500;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--border-color);
}

.accordion-button:not(.collapsed) {
    box-shadow: none;
}

.accordion-body {
    color: var(--default-color);
}

/* Flush Accordion */
.accordion-flush .accordion-item {
    border-left: 0;
    border-right: 0;
}

.accordion-flush .accordion-item:first-child {
    border-top: 0;
}

.accordion-flush .accordion-item:last-child {
    border-bottom: 0;
}

.accordion-flush .accordion-button {
    background-color: transparent;
}

.accordion-flush .accordion-button:not(.collapsed) {
    background-color: transparent;
}

/* Colored Accordions */
.accordion-primary .accordion-button:not(.collapsed) {
    background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
    color: var(--accent-color);
}

.accordion-primary .accordion-item {
    border-color: color-mix(in srgb, var(--accent-color), transparent 70%);
}

.accordion-success .accordion-button:not(.collapsed) {
    background-color: var(--success-color-light);
    color: var(--success-color);
}

.accordion-success .accordion-item {
    border-color: color-mix(in srgb, var(--success-color), transparent 70%);
}

.accordion-warning .accordion-button:not(.collapsed) {
    background-color: var(--warning-color-light);
    color: #92400e;
}

.accordion-warning .accordion-item {
    border-color: color-mix(in srgb, var(--warning-color), transparent 70%);
}

.accordion-danger .accordion-button:not(.collapsed) {
    background-color: var(--danger-color-light);
    color: var(--danger-color);
}

.accordion-danger .accordion-item {
    border-color: color-mix(in srgb, var(--danger-color), transparent 70%);
}

.accordion-info .accordion-button:not(.collapsed) {
    background-color: var(--info-color-light);
    color: var(--info-color);
}

.accordion-info .accordion-item {
    border-color: color-mix(in srgb, var(--info-color), transparent 70%);
}

/* Dark mode adjustments */
[data-theme="dark"] .accordion-warning .accordion-button:not(.collapsed) {
    color: var(--warning-color);
}

/*--------------------------------------------------------------
# Buttons
--------------------------------------------------------------*/
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    transition:
        color var(--transition-fast),
        background-color var(--transition-fast),
        border-color var(--transition-fast);
}

.btn:focus-visible {
    outline: 0;
}

.btn:disabled,
.btn.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* Button Sizes */
.btn-sm {
    padding: 6px var(--spacing-md);
    font-size: 0.8125rem;
}

.btn-lg {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1rem;
}

/* Primary Button */
.btn-primary {
    color: white;
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-primary:hover {
    color: white;
    background-color: color-mix(in srgb, var(--accent-color), black 10%);
    border-color: color-mix(in srgb, var(--accent-color), black 10%);
}

/* Secondary Button */
.btn-secondary {
    color: white;
    background-color: var(--muted-color);
    border-color: var(--muted-color);
}

.btn-secondary:hover {
    color: white;
    background-color: var(--default-color);
    border-color: var(--default-color);
}

/* Success Button */
.btn-success {
    color: white;
    background-color: var(--success-color);
    border-color: var(--success-color);
}

.btn-success:hover {
    color: white;
    background-color: #16a34a;
    border-color: #16a34a;
}

/* Warning Button */
.btn-warning {
    color: #1e293b;
    background-color: var(--warning-color);
    border-color: var(--warning-color);
}

.btn-warning:hover {
    color: #1e293b;
    background-color: #d97706;
    border-color: #d97706;
}

/* Danger Button */
.btn-danger {
    color: white;
    background-color: var(--danger-color);
    border-color: var(--danger-color);
}

.btn-danger:hover {
    color: white;
    background-color: #dc2626;
    border-color: #dc2626;
}

/* Info Button */
.btn-info {
    color: white;
    background-color: var(--info-color);
    border-color: var(--info-color);
}

.btn-info:hover {
    color: white;
    background-color: #0891b2;
    border-color: #0891b2;
}

/* Light Button */
.btn-light {
    color: var(--default-color);
    background-color: var(--background-color);
    border-color: var(--border-color);
}

.btn-light:hover {
    color: var(--default-color);
    background-color: var(--border-color-light);
    border-color: var(--border-color-dark);
}

/* Dark Button */
.btn-dark {
    color: white;
    background-color: var(--heading-color);
    border-color: var(--heading-color);
}

.btn-dark:hover {
    color: white;
    background-color: var(--default-color);
    border-color: var(--default-color);
}

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

.btn-outline-primary:hover {
    color: white;
    background-color: var(--accent-color);
}

.btn-outline-secondary {
    color: var(--muted-color);
    border-color: var(--muted-color);
    background-color: transparent;
}

.btn-outline-secondary:hover {
    color: white;
    background-color: var(--muted-color);
}

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

.btn-outline-success:hover {
    color: white;
    background-color: var(--success-color);
}

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

.btn-outline-warning:hover {
    color: #1e293b;
    background-color: var(--warning-color);
}

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

.btn-outline-danger:hover {
    color: white;
    background-color: var(--danger-color);
}

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

.btn-outline-info:hover {
    color: white;
    background-color: var(--info-color);
}

/* Accent Button - Uses template accent color */
.btn-accent {
    color: var(--contrast-color);
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-accent:hover {
    color: var(--contrast-color);
    background-color: color-mix(in srgb, var(--accent-color), black 10%);
    border-color: color-mix(in srgb, var(--accent-color), black 10%);
}

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

.btn-outline-accent:hover {
    color: var(--accent-color);
    background-color: color-mix(in srgb, var(--accent-color), transparent 92%);
    border-color: var(--accent-color);
}

/* Btn-check with accent outline (radio/checkbox toggles) */
.btn-check:checked + .btn-outline-accent,
.btn-check:active + .btn-outline-accent {
    color: var(--contrast-color);
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-check:checked + .btn-outline-accent:hover,
.btn-check:active + .btn-outline-accent:hover {
    background-color: color-mix(in srgb, var(--accent-color), black 10%);
    border-color: color-mix(in srgb, var(--accent-color), black 10%);
}

.btn-check:focus-visible + .btn-outline-accent {
    box-shadow: 0 0 0 3px
        color-mix(in srgb, var(--accent-color), transparent 75%);
}

/* Btn-check with primary outline - use accent color */
.btn-check + .btn-outline-primary {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-check:checked + .btn-outline-primary,
.btn-check:active + .btn-outline-primary {
    color: var(--contrast-color);
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-check:checked + .btn-outline-primary:hover,
.btn-check:active + .btn-outline-primary:hover {
    background-color: color-mix(in srgb, var(--accent-color), black 10%);
    border-color: color-mix(in srgb, var(--accent-color), black 10%);
}

.btn-check:focus-visible + .btn-outline-primary {
    box-shadow: 0 0 0 3px
        color-mix(in srgb, var(--accent-color), transparent 75%);
}

/* Button group with outline-primary active state - use accent color */
.btn-group .btn-outline-primary.active,
.btn-group .btn-outline-primary:active {
    color: var(--contrast-color);
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-group .btn-outline-primary.active:hover,
.btn-group .btn-outline-primary:active:hover {
    background-color: color-mix(in srgb, var(--accent-color), black 10%);
    border-color: color-mix(in srgb, var(--accent-color), black 10%);
}

/* Ghost/Link Button */
.btn-ghost {
    color: var(--muted-color);
    background-color: transparent;
    border-color: transparent;
}

.btn-ghost:hover {
    color: var(--default-color);
    background-color: var(--background-color);
}

.btn-link {
    color: var(--accent-color);
    background-color: transparent;
    border-color: transparent;
    text-decoration: none;
}

.btn-link:hover {
    color: color-mix(in srgb, var(--accent-color), black 10%);
    text-decoration: underline;
}

/* Icon Button */
.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius-md);
}

.btn-icon.btn-sm {
    width: 32px;
    height: 32px;
}

.btn-icon.btn-lg {
    width: 48px;
    height: 48px;
}

/* Button Group */
.btn-group {
    display: inline-flex;
}

.btn-group > .btn {
    border-radius: 0;
}

.btn-group > .btn:first-child,
.btn-group > .btn-check:first-child + .btn {
    border-top-left-radius: var(--radius-md);
    border-bottom-left-radius: var(--radius-md);
}

.btn-group > .btn:last-child,
.btn-group > .btn-check:last-of-type + .btn {
    border-top-right-radius: var(--radius-md);
    border-bottom-right-radius: var(--radius-md);
}

.btn-group > .btn:not(:first-child),
.btn-group > .btn-check + .btn {
    margin-left: -1px;
}

/* Reset margin for first btn-check + btn */
.btn-group > .btn-check:first-child + .btn {
    margin-left: 0;
}

/* Loading State */
.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 1em;
    height: 1em;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    color: white;
}

.btn-outline-primary.btn-loading::after,
.btn-outline-secondary.btn-loading::after,
.btn-outline-success.btn-loading::after,
.btn-outline-warning.btn-loading::after,
.btn-outline-danger.btn-loading::after,
.btn-outline-info.btn-loading::after {
    color: currentColor;
}

/*--------------------------------------------------------------
# Cards
--------------------------------------------------------------*/
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md) var(--spacing-lg);
    background: transparent;
    border-bottom: 1px solid var(--border-color);
}

.card-header:first-child {
    border-radius: calc(var(--radius-lg) - 1px) calc(var(--radius-lg) - 1px) 0 0;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--heading-color);
    margin: 0;
}

.card-subtitle {
    font-size: 0.8125rem;
    color: var(--muted-color);
    margin-top: 2px;
}

.card-body {
    padding: var(--spacing-lg);
}

.card-footer {
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--background-color);
    border-top: 1px solid var(--border-color);
    border-radius: 0 0 calc(var(--radius-lg) - 1px) calc(var(--radius-lg) - 1px);
}

/* Card Actions (Dropdown menu) */
.card-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.card-actions .btn-icon {
    width: 32px;
    height: 32px;
    color: var(--muted-color);
}

.card-actions .btn-icon:hover {
    color: var(--default-color);
    background: var(--background-color);
}

/* Card with no header border */
.card-borderless .card-header {
    border-bottom: none;
    padding-bottom: 0;
}

/* Card with colored header */
.card-header-primary {
    background: var(--accent-color);
    color: white;
    border-bottom: none;
}

.card-header-primary .card-title {
    color: white;
}

/* Card image */
.card-img-top {
    border-radius: calc(var(--radius-lg) - 1px) calc(var(--radius-lg) - 1px) 0 0;
}

.card-img-bottom {
    border-radius: 0 0 calc(var(--radius-lg) - 1px) calc(var(--radius-lg) - 1px);
}

/* Horizontal Card */
.card-horizontal {
    flex-direction: row;
}

.card-horizontal .card-img-left {
    border-radius: calc(var(--radius-lg) - 1px) 0 0 calc(var(--radius-lg) - 1px);
    width: 200px;
    -o-object-fit: cover;
    object-fit: cover;
}

/* Card Link */
.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card-link:hover .card {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-md);
}

/* Card hover effect - add .card-lift class for lift on hover */
.card-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/*--------------------------------------------------------------
# Dashboard Widgets
--------------------------------------------------------------*/
.widget {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
}

.widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md) var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
}

.widget-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--heading-color);
    margin: 0;
}

.widget-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.widget-action {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--muted-color);
    transition:
        background-color var(--transition-fast),
        color var(--transition-fast);
}

.widget-action:hover {
    background: var(--background-color);
    color: var(--default-color);
}

.widget-body {
    padding: var(--spacing-lg);
    position: relative;
}

/* Widget Loading State */
.widget-loading .widget-body::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.widget-loading .widget-action[data-action="refresh"] i {
    animation: spin 1s linear infinite;
}

/* Stat Widget */
.widget-stat {
    padding: var(--spacing-lg);
}

.widget-stat-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: var(--spacing-sm);
}

.widget-stat-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 1.5rem;
}

.widget-stat-icon.primary {
    background: color-mix(in srgb, var(--accent-color), transparent 90%);
    color: var(--accent-color);
}

.widget-stat-icon.success {
    background: var(--success-color-light);
    color: var(--success-color);
}

.widget-stat-icon.warning {
    background: var(--warning-color-light);
    color: var(--warning-color);
}

.widget-stat-icon.danger {
    background: var(--danger-color-light);
    color: var(--danger-color);
}

.widget-stat-icon.info {
    background: var(--info-color-light);
    color: var(--info-color);
}

.widget-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--heading-color);
    line-height: 1.2;
}

.widget-stat-label {
    font-size: 0.8125rem;
    color: var(--muted-color);
    margin-top: 2px;
}

.widget-stat-change {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: var(--spacing-sm);
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.widget-stat-change.positive {
    background: var(--success-color-light);
    color: var(--success-color);
}

.widget-stat-change.negative {
    background: var(--danger-color-light);
    color: var(--danger-color);
}

/* Progress Widget */
.widget-progress {
    padding: var(--spacing-lg);
}

.widget-progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-sm);
}

.widget-progress-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--heading-color);
}

.widget-progress-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-color);
}

/* List Widget */
.widget-list {
    padding: 0;
}

.widget-list-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    border-bottom: 1px solid var(--border-color-light);
    transition: background-color var(--transition-fast);
}

.widget-list-item:last-child {
    border-bottom: none;
}

.widget-list-item:hover {
    background: var(--background-color);
}

.widget-list-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    -o-object-fit: cover;
    object-fit: cover;
    flex-shrink: 0;
}

.widget-list-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: color-mix(in srgb, var(--accent-color), transparent 90%);
    color: var(--accent-color);
    flex-shrink: 0;
}

.widget-list-content {
    flex: 1;
    min-width: 0;
}

.widget-list-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--heading-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.widget-list-subtitle {
    font-size: 0.8125rem;
    color: var(--muted-color);
}

.widget-list-meta {
    font-size: 0.75rem;
    color: var(--light-color);
    text-align: right;
    flex-shrink: 0;
}

/*--------------------------------------------------------------
# Badges
--------------------------------------------------------------*/
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25em 0.5em;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: var(--radius-sm);
}

/* Badge Colors - Bootstrap's .bg-* handle backgrounds, these set text color */
.badge.bg-primary {
    color: white;
}

.badge.bg-secondary {
    color: white;
}

.badge.bg-success {
    color: white;
}

.badge.bg-warning {
    color: #1e293b;
}

.badge.bg-danger {
    color: white;
}

.badge.bg-info {
    color: white;
}

.badge.bg-light {
    color: var(--default-color);
}

.badge.bg-dark {
    color: white;
}

/* Soft/Light Badge Variants */
.badge-soft-primary {
    background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
    color: var(--accent-color);
}

.badge-soft-success {
    background-color: var(--success-color-light);
    color: var(--success-color);
}

.badge-soft-warning {
    background-color: var(--warning-color-light);
    color: var(--warning-color);
}

.badge-soft-danger {
    background-color: var(--danger-color-light);
    color: var(--danger-color);
}

.badge-soft-info {
    background-color: var(--info-color-light);
    color: var(--info-color);
}

.badge-soft-secondary {
    background-color: var(--border-color-light);
    color: var(--muted-color);
}

/* Outline Badges */
.badge-outline-primary {
    background-color: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
}

.badge-outline-secondary {
    background-color: transparent;
    border: 1px solid var(--muted-color);
    color: var(--muted-color);
}

.badge-outline-success {
    background-color: transparent;
    border: 1px solid var(--success-color);
    color: var(--success-color);
}

.badge-outline-warning {
    background-color: transparent;
    border: 1px solid var(--warning-color);
    color: var(--warning-color);
}

.badge-outline-danger {
    background-color: transparent;
    border: 1px solid var(--danger-color);
    color: var(--danger-color);
}

.badge-outline-info {
    background-color: transparent;
    border: 1px solid var(--info-color);
    color: var(--info-color);
}

/* Pill Badge - Bootstrap has .rounded-pill, this adds badge-specific padding */
.badge.rounded-pill {
    padding-left: 0.75em;
    padding-right: 0.75em;
}

/* Badge with Icon */
.badge-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.25em;
}

.badge-icon i {
    font-size: 0.875em;
}

/* Badge Dot */
.badge-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border-radius: var(--radius-full);
}

.badge-dot-lg {
    width: 10px;
    height: 10px;
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--radius-full);
}

.status-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: var(--radius-full);
    background-color: currentColor;
}

.status-badge-active {
    background-color: var(--success-color-light);
    color: var(--success-color);
}

.status-badge-inactive {
    background-color: var(--border-color-light);
    color: var(--muted-color);
}

.status-badge-pending {
    background-color: var(--warning-color-light);
    color: var(--warning-color);
}

.status-badge-error {
    background-color: var(--danger-color-light);
    color: var(--danger-color);
}

/* Badge Sizes */
.badge-sm {
    padding: 0.2em 0.4em;
    font-size: 0.625rem;
}

.badge-lg {
    padding: 0.35em 0.65em;
    font-size: 0.875rem;
}

/*--------------------------------------------------------------
# Alerts
--------------------------------------------------------------*/
.alert {
    position: relative;
    padding: var(--spacing-md) var(--spacing-lg);
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
}

.alert-heading {
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: inherit;
}

.alert p:last-child {
    margin-bottom: 0;
}

/* Alert Colors */
.alert-primary {
    background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
    border-color: var(--accent-color);
    color: color-mix(in srgb, var(--accent-color), black 15%);
}

.alert-secondary {
    background-color: var(--border-color-light);
    border-color: var(--border-color-dark);
    color: var(--default-color);
}

.alert-success {
    background-color: var(--success-color-light);
    border-color: var(--success-color);
    color: #166534;
}

.alert-warning {
    background-color: var(--warning-color-light);
    border-color: var(--warning-color);
    color: #92400e;
}

.alert-danger {
    background-color: var(--danger-color-light);
    border-color: var(--danger-color);
    color: #991b1b;
}

.alert-info {
    background-color: var(--info-color-light);
    border-color: var(--info-color);
    color: #0e7490;
}

/* Dark mode adjustments */
[data-theme="dark"] .alert-success {
    color: var(--success-color);
}

[data-theme="dark"] .alert-warning {
    color: var(--warning-color);
}

[data-theme="dark"] .alert-danger {
    color: var(--danger-color);
}

[data-theme="dark"] .alert-info {
    color: var(--info-color);
}

[data-theme="dark"] .alert-primary {
    color: var(--accent-color);
}

/* Alert with Icon */
.alert-icon {
    display: flex;
    gap: var(--spacing-md);
}

.alert-icon > i {
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.alert-icon-content {
    flex: 1;
}

/* Dismissible Alert */
.alert-dismissible {
    padding-right: calc(var(--spacing-lg) + 32px);
}

.alert-dismissible .btn-close {
    position: absolute;
    top: 50%;
    right: var(--spacing-md);
    transform: translateY(-50%);
    padding: var(--spacing-sm);
    background: transparent;
    border: none;
    opacity: 0.5;
    cursor: pointer;
    transition: opacity var(--transition-fast);
}

.alert-dismissible .btn-close:hover {
    opacity: 1;
}

.alert-dismissible .btn-close i {
    font-size: 1rem;
}

/* Alert Outline Variants */
.alert-outline-primary {
    background-color: transparent;
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.alert-outline-success {
    background-color: transparent;
    border-color: var(--success-color);
    color: var(--success-color);
}

.alert-outline-warning {
    background-color: transparent;
    border-color: var(--warning-color);
    color: var(--warning-color);
}

.alert-outline-danger {
    background-color: transparent;
    border-color: var(--danger-color);
    color: var(--danger-color);
}

.alert-outline-info {
    background-color: transparent;
    border-color: var(--info-color);
    color: var(--info-color);
}

/* Solid Background Variants */
.alert-solid-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

.alert-solid-success {
    background-color: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

.alert-solid-warning {
    background-color: var(--warning-color);
    border-color: var(--warning-color);
    color: #1e293b;
}

.alert-solid-danger {
    background-color: var(--danger-color);
    border-color: var(--danger-color);
    color: white;
}

.alert-solid-info {
    background-color: var(--info-color);
    border-color: var(--info-color);
    color: white;
}

/* Alert Link */
.alert-link {
    font-weight: 600;
    color: inherit;
    text-decoration: underline;
}

/* Alert List */
.alert ul {
    margin-bottom: 0;
    padding-left: var(--spacing-lg);
}

.alert ul li {
    margin-top: var(--spacing-xs);
}

/*--------------------------------------------------------------
# Forms
--------------------------------------------------------------*/
.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--heading-color);
    margin-bottom: var(--spacing-sm);
}

.form-label-optional {
    font-weight: 400;
    color: var(--muted-color);
    margin-left: var(--spacing-xs);
}

/* Text Inputs */
.form-control {
    display: block;
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--default-color);
    background-color: var(--input-bg);
    background-clip: padding-box;
    border: 1px solid var(--input-border);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast);
}

.form-control:focus {
    outline: 0;
    border-color: var(--input-focus-border);
}

.form-control::-moz-placeholder {
    color: var(--light-color);
}

.form-control::placeholder {
    color: var(--light-color);
}

.form-control:disabled,
.form-control[readonly] {
    background-color: var(--background-color);
    opacity: 0.7;
    cursor: not-allowed;
}

/* Form Control Sizes */
.form-control-sm {
    padding: 6px var(--spacing-sm);
    font-size: 0.8125rem;
    border-radius: var(--radius-sm);
}

.form-control-lg {
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: 1rem;
    border-radius: var(--radius-md);
}

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

/* Select */
.form-select {
    display: block;
    width: 100%;
    padding: var(--spacing-sm) calc(var(--spacing-md) + 24px) var(--spacing-sm)
        var(--spacing-md);
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--default-color);
    background-color: var(--input-bg);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right var(--spacing-md) center;
    background-size: 16px 12px;
    border: 1px solid var(--input-border);
    border-radius: var(--radius-md);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: border-color var(--transition-fast);
}

.form-select:focus {
    outline: 0;
    border-color: var(--input-focus-border);
}

/* Checkbox & Radio */
.form-check {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    min-height: 1.5rem;
}

.form-check-input {
    width: 1.125rem;
    height: 1.125rem;
    margin: 0;
    vertical-align: top;
    background-color: var(--input-bg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: 1px solid var(--input-border);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    transition:
        background-color var(--transition-fast),
        border-color var(--transition-fast);
}

.form-check-input[type="checkbox"] {
    border-radius: var(--radius-sm);
}

.form-check-input[type="radio"] {
    border-radius: 50%;
}

.form-check-input:focus {
    outline: 0;
    border-color: var(--input-focus-border);
}

.form-check-input:checked {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.form-check-input:checked[type="checkbox"] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}

.form-check-input:checked[type="radio"] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23fff'/%3e%3c/svg%3e");
}

.form-check-label {
    font-size: 0.9375rem;
    color: var(--default-color);
    cursor: pointer;
}

/* Switch */
.form-switch .form-check-input {
    width: 2.5rem;
    height: 1.25rem;
    border-radius: var(--radius-full);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%2364748b'/%3e%3c/svg%3e");
    background-position: left center;
    transition:
        background-position var(--transition-fast),
        background-color var(--transition-fast);
}

.form-switch .form-check-input:checked {
    background-position: right center;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
}

/* Input Group */
.input-group {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
}

.input-group > .form-control {
    position: relative;
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
}

.input-group > .form-control:not(:first-child) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.input-group > .form-control:not(:last-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group-text {
    display: flex;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--muted-color);
    text-align: center;
    white-space: nowrap;
    background-color: var(--background-color);
    border: 1px solid var(--input-border);
}

.input-group > .input-group-text:first-child {
    border-top-left-radius: var(--radius-md);
    border-bottom-left-radius: var(--radius-md);
    border-right: 0;
}

.input-group > .input-group-text:last-child {
    border-top-right-radius: var(--radius-md);
    border-bottom-right-radius: var(--radius-md);
    border-left: 0;
}

/* Form Text/Help */
.form-text {
    margin-top: var(--spacing-xs);
    font-size: 0.8125rem;
    color: var(--muted-color);
}

/* Validation States */
.is-valid {
    border-color: var(--success-color) !important;
}

.is-valid:focus {
    box-shadow: none !important;
}

.is-invalid {
    border-color: var(--danger-color) !important;
}

.is-invalid:focus {
    box-shadow: none !important;
}

.valid-feedback,
.invalid-feedback {
    display: none;
    margin-top: var(--spacing-xs);
    font-size: 0.8125rem;
}

.valid-feedback {
    color: var(--success-color);
}

.invalid-feedback {
    color: var(--danger-color);
}

.is-valid ~ .valid-feedback,
.is-invalid ~ .invalid-feedback {
    display: block;
}

/* Floating Labels */
.form-floating {
    position: relative;
}

.form-floating > .form-control {
    height: 56px;
    padding: 1.5rem var(--spacing-md) 0.5rem;
}

.form-floating > label {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    padding: var(--spacing-md);
    pointer-events: none;
    border: 1px solid transparent;
    transform-origin: 0 0;
    transition:
        opacity var(--transition-fast),
        transform var(--transition-fast);
    color: var(--muted-color);
}

.form-floating > .form-control:not(:-moz-placeholder) ~ label {
    opacity: 0.65;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    opacity: 0.65;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

/* Required Indicator */
.required::after {
    content: " *";
    color: var(--danger-color);
}

/*--------------------------------------------------------------
# Tables
--------------------------------------------------------------*/
.table {
    width: 100%;
    margin-bottom: 0;
    color: var(--default-color);
    vertical-align: middle;
    border-color: var(--border-color);
}

.table > :not(caption) > * > * {
    padding: var(--spacing-md) var(--spacing-md);
    background-color: transparent;
    border-bottom-width: 1px;
    box-shadow: none;
}

.table > thead {
    vertical-align: bottom;
}

.table > thead > tr > th {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted-color);
    background-color: var(--table-header-bg);
    border-bottom: 1px solid var(--border-color);
}

.table > tbody > tr > td {
    font-size: 0.875rem;
    border-bottom: 1px solid var(--border-color-light);
}

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

/* Striped Table */
.table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: var(--table-stripe-bg);
}

/* Hover Table */
.table-hover > tbody > tr:hover > * {
    background-color: var(--table-hover-bg);
}

/* Bordered Table */
.table-bordered > :not(caption) > * {
    border-width: 1px 0;
}

.table-bordered > :not(caption) > * > * {
    border-width: 0 1px;
}

/* Borderless Table */
.table-borderless > :not(caption) > * > * {
    border-bottom-width: 0;
}

/* Small Table */
.table-sm > :not(caption) > * > * {
    padding: var(--spacing-sm) var(--spacing-sm);
}

/* Responsive Table */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Table with Actions */
.table-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.table-actions .btn-icon {
    width: 32px;
    height: 32px;
}

/* Table User Cell */
.table-user {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.table-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    -o-object-fit: cover;
    object-fit: cover;
    flex-shrink: 0;
}

.table-user-name {
    font-weight: 500;
    color: var(--heading-color);
}

.table-user-email {
    font-size: 0.8125rem;
    color: var(--muted-color);
}

/* Table Status */
.table-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
}

.table-status::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: var(--radius-full);
}

.table-status-active::before {
    background-color: var(--success-color);
}

.table-status-inactive::before {
    background-color: var(--light-color);
}

.table-status-pending::before {
    background-color: var(--warning-color);
}

/* Sortable Headers */
.table-sortable th {
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

.table-sortable th:hover {
    background-color: var(--table-hover-bg);
}

.table-sort-icon {
    margin-left: var(--spacing-xs);
    opacity: 0.3;
}

.table-sortable th.sorted .table-sort-icon {
    opacity: 1;
    color: var(--accent-color);
}

/* Selectable Rows */
.table-selectable tbody tr {
    cursor: pointer;
}

.table-selectable tbody tr.selected {
    background-color: color-mix(
        in srgb,
        var(--accent-color),
        transparent 90%
    ) !important;
}

/* Empty Table State */
.table-empty {
    text-align: center;
    padding: var(--spacing-2xl) var(--spacing-lg);
    color: var(--muted-color);
}

.table-empty-icon {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.5;
}

/* DataTables Overrides (when using simple-datatables) */
.datatable-wrapper {
    font-size: 0.875rem;
}

.datatable-top,
.datatable-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    padding: var(--spacing-md) 0;
}

.datatable-search {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.datatable-search input {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--input-bg);
    color: var(--default-color);
}

.datatable-search input:focus {
    outline: 0;
    border-color: var(--accent-color);
}

.datatable-dropdown {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.datatable-dropdown select {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--input-bg);
    color: var(--default-color);
}

.datatable-info {
    font-size: 0.8125rem;
    color: var(--muted-color);
}

.datatable-pagination {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.datatable-pagination button {
    min-width: 32px;
    height: 32px;
    padding: 0 var(--spacing-sm);
    font-size: 0.8125rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--surface-color);
    color: var(--default-color);
    cursor: pointer;
    transition:
        background-color var(--transition-fast),
        border-color var(--transition-fast);
}

.datatable-pagination button:hover:not(:disabled) {
    background: var(--background-color);
    border-color: var(--border-color-dark);
}

.datatable-pagination button.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

.datatable-pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/*--------------------------------------------------------------
# Modals
--------------------------------------------------------------*/
.modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1055;
    display: none;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
}

.modal.show {
    display: block;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity var(--transition-base);
}

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

.modal-dialog {
    position: relative;
    width: auto;
    margin: var(--spacing-lg);
    pointer-events: none;
    transform: translateY(-20px);
    opacity: 0;
    transition:
        transform var(--transition-base),
        opacity var(--transition-base);
}

.modal.show .modal-dialog {
    transform: translateY(0);
    opacity: 1;
}

.modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - var(--spacing-lg) * 2);
}

.modal-dialog-scrollable {
    height: calc(100% - var(--spacing-lg) * 2);
}

.modal-dialog-scrollable .modal-content {
    max-height: 100%;
    overflow: hidden;
}

.modal-dialog-scrollable .modal-body {
    overflow-y: auto;
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: var(--surface-color);
    background-clip: padding-box;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    outline: 0;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
    border-top-left-radius: calc(var(--radius-xl) - 1px);
    border-top-right-radius: calc(var(--radius-xl) - 1px);
}

.modal-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--heading-color);
}

.btn-close {
    box-sizing: content-box;
    width: 1em;
    height: 1em;
    padding: 0.25em 0.25em;
    color: var(--default-color);
    background: transparent
        url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e")
        center/1em auto no-repeat;
    border: 0;
    border-radius: 0.375rem;
    opacity: 0.5;
    cursor: pointer;
    transition: opacity var(--transition-fast);
}

.btn-close:hover {
    opacity: 1;
}

.btn-close:focus {
    outline: 0;
    box-shadow: 0 0 0 0.25rem
        color-mix(in srgb, var(--accent-color), transparent 75%);
    opacity: 1;
}

[data-theme="dark"] .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.modal-body {
    position: relative;
    flex: 1 1 auto;
    padding: var(--spacing-lg);
}

.modal-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: var(--spacing-sm);
    padding: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
    border-bottom-right-radius: calc(var(--radius-xl) - 1px);
    border-bottom-left-radius: calc(var(--radius-xl) - 1px);
}

/* Modal Sizes */
@media (min-width: 576px) {
    .modal-dialog {
        max-width: 500px;
        margin: var(--spacing-xl) auto;
    }

    .modal-sm {
        max-width: 380px;
    }
}

@media (min-width: 992px) {
    .modal-lg {
        max-width: 800px;
    }

    .modal-xl {
        max-width: 1140px;
    }
}

/* Fullscreen Modal */
.modal-fullscreen {
    width: 100vw;
    max-width: none;
    height: 100%;
    margin: 0;
}

.modal-fullscreen .modal-content {
    height: 100%;
    border: 0;
    border-radius: 0;
}

/* Confirmation Modal */
.modal-confirm .modal-body {
    text-align: center;
    padding: var(--spacing-xl);
}

.modal-confirm-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    font-size: 2rem;
}

.modal-confirm-icon.warning {
    background: var(--warning-color-light);
    color: var(--warning-color);
}

.modal-confirm-icon.danger {
    background: var(--danger-color-light);
    color: var(--danger-color);
}

.modal-confirm-icon.success {
    background: var(--success-color-light);
    color: var(--success-color);
}

.modal-confirm-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: var(--spacing-sm);
}

.modal-confirm-text {
    color: var(--muted-color);
    margin-bottom: var(--spacing-lg);
}

.modal-confirm .modal-footer {
    justify-content: center;
    border-top: none;
    padding-top: 0;
}

/*--------------------------------------------------------------
# Dropdowns
--------------------------------------------------------------*/
.dropdown {
    position: relative;
}

.dropdown-toggle {
    white-space: nowrap;
}

.dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.5em;
    vertical-align: 0.15em;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
}

.dropdown-toggle:empty::after {
    margin-left: 0;
}

.dropdown-menu {
    position: absolute;
    z-index: 1000;
    display: none;
    min-width: 180px;
    padding: var(--spacing-sm) 0;
    margin: 0;
    font-size: 0.875rem;
    color: var(--default-color);
    text-align: left;
    list-style: none;
    background-color: var(--surface-color);
    background-clip: padding-box;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.dropdown-menu.show {
    display: block;
}

/* Dropdown positioning */
.dropdown-menu-end {
    right: 0;
    left: auto;
}

.dropdown-menu-start {
    right: auto;
    left: 0;
}

/* Dropup, Dropstart, Dropend */
.dropup .dropdown-menu {
    top: auto;
    bottom: 100%;
    margin-top: 0;
    margin-bottom: var(--spacing-xs);
}

.dropup .dropdown-toggle::after {
    border-top: 0;
    border-bottom: 0.3em solid;
}

.dropend .dropdown-menu {
    top: 0;
    right: auto;
    left: 100%;
    margin-top: 0;
    margin-left: var(--spacing-xs);
}

.dropstart .dropdown-menu {
    top: 0;
    right: 100%;
    left: auto;
    margin-top: 0;
    margin-right: var(--spacing-xs);
}

/* Dropdown Items */
.dropdown-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    clear: both;
    font-weight: 400;
    color: var(--default-color);
    text-align: inherit;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    cursor: pointer;
    transition:
        background-color var(--transition-fast),
        color var(--transition-fast);
}

.dropdown-item:hover,
.dropdown-item:focus {
    color: var(--default-color);
    background-color: var(--background-color);
}

.dropdown-item.active,
.dropdown-item:active {
    color: var(--accent-color);
    background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
}

.dropdown-item:disabled,
.dropdown-item.disabled {
    color: var(--light-color);
    pointer-events: none;
    background-color: transparent;
}

/* Dropdown Item with Icon */
.dropdown-item i {
    width: 20px;
    margin-right: var(--spacing-sm);
    color: var(--muted-color);
    text-align: center;
}

.dropdown-item:hover i {
    color: var(--accent-color);
}

/* Dropdown Divider */
.dropdown-divider {
    height: 0;
    margin: var(--spacing-sm) 0;
    overflow: hidden;
    border-top: 1px solid var(--border-color);
}

/* Dropdown Header */
.dropdown-header {
    display: block;
    padding: var(--spacing-sm) var(--spacing-md);
    margin-bottom: 0;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted-color);
    white-space: nowrap;
}

/* Dropdown Text */
.dropdown-item-text {
    display: block;
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--muted-color);
}

/* Dropdown Menu Dark */
.dropdown-menu-dark {
    color: var(--light-color);
    background-color: var(--heading-color);
    border-color: transparent;
}

.dropdown-menu-dark .dropdown-item {
    color: var(--light-color);
}

.dropdown-menu-dark .dropdown-item:hover,
.dropdown-menu-dark .dropdown-item:focus {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.dropdown-menu-dark .dropdown-divider {
    border-color: rgba(255, 255, 255, 0.1);
}

.dropdown-menu-dark .dropdown-header {
    color: var(--muted-color);
}

/* Dropdown with Animation */
.dropdown-menu[data-bs-popper] {
    top: 100%;
    left: 0;
    margin-top: var(--spacing-xs);
}

/* Wide Dropdown */
.dropdown-menu-wide {
    min-width: 280px;
}

/* Dropdown with Scrollable Content */
.dropdown-menu-scrollable {
    max-height: 300px;
    overflow-y: auto;
}

/* Dropdown Checkbox/Radio */
.dropdown-item-check {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.dropdown-item-check input {
    margin: 0;
}

/*--------------------------------------------------------------
# Navigation Components (Tabs, Pills, etc.)
--------------------------------------------------------------*/
.nav {
    display: flex;
    flex-wrap: wrap;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}

.nav-link {
    display: block;
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-color);
    text-decoration: none;
    transition:
        color var(--transition-fast),
        background-color var(--transition-fast);
}

.nav-link:hover,
.nav-link:focus {
    color: var(--accent-color);
}

.nav-link.disabled {
    color: var(--light-color);
    pointer-events: none;
    cursor: default;
}

.nav-link.active {
    color: var(--accent-color);
}

/* Tabs */
.nav-tabs {
    border-bottom: 1px solid var(--border-color);
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
}

.nav-tabs::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari */
}

.nav-tabs .nav-item {
    flex-shrink: 0;
}

.nav-tabs .nav-link {
    margin-bottom: -1px;
    background: none;
    border: 1px solid transparent;
    border-top-left-radius: var(--radius-md);
    border-top-right-radius: var(--radius-md);
    white-space: nowrap;
}

.nav-tabs .nav-link:hover,
.nav-tabs .nav-link:focus {
    border-color: var(--border-color-light) var(--border-color-light)
        var(--border-color);
    isolation: isolate;
}

.nav-tabs .nav-link.active {
    color: var(--heading-color);
    background-color: var(--surface-color);
    border-color: var(--border-color) var(--border-color) var(--surface-color);
}

/* Bordered Tabs (used in profile, settings pages) */
.nav-tabs-bordered {
    border-bottom: 2px solid var(--border-color);
}

.nav-tabs-bordered .nav-link {
    margin-bottom: -2px;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    padding: var(--spacing-sm) var(--spacing-md);
}

.nav-tabs-bordered .nav-link:hover,
.nav-tabs-bordered .nav-link:focus {
    border-color: transparent;
    border-bottom-color: var(--accent-color);
    isolation: auto;
}

.nav-tabs-bordered .nav-link.active {
    background-color: transparent;
    border-color: transparent;
    border-bottom-color: var(--accent-color);
    color: var(--accent-color);
}

/* Pills */
.nav-pills .nav-link {
    background: none;
    border: 0;
    border-radius: var(--radius-md);
}

.nav-pills .nav-link:hover {
    background-color: var(--background-color);
}

.nav-pills .nav-link.active {
    color: white;
    background-color: var(--accent-color);
}

/* Underline Tabs */
.nav-underline {
    gap: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
}

.nav-underline .nav-link {
    padding: var(--spacing-md) 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    margin-bottom: -1px;
}

.nav-underline .nav-link:hover {
    border-bottom-color: var(--border-color-dark);
}

.nav-underline .nav-link.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

/* Justified Tabs/Pills */
.nav-fill .nav-item {
    flex: 1 1 auto;
    text-align: center;
}

.nav-justified .nav-item {
    flex-basis: 0;
    flex-grow: 1;
    text-align: center;
}

/* Vertical Nav */
.nav-vertical {
    flex-direction: column;
}

.nav-vertical .nav-link {
    border-radius: var(--radius-md);
}

.nav-vertical .nav-link.active {
    background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
    color: var(--accent-color);
}

/* Tab Content */
.tab-content > .tab-pane {
    display: none;
}

.tab-content > .active {
    display: block;
}

/* Nav with Icon */
.nav-link-icon {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.nav-link-icon i {
    font-size: 1.125rem;
}

/* Segment Control (Toggle Group) */
.nav-segment {
    background-color: var(--background-color);
    border-radius: var(--radius-md);
    padding: 4px;
    gap: 0;
}

.nav-segment .nav-link {
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-sm);
}

.nav-segment .nav-link.active {
    background-color: var(--surface-color);
    color: var(--heading-color);
    box-shadow: var(--shadow-sm);
}

/* Card Nav (inside card header) */
.card-header-tabs {
    margin-right: calc(var(--spacing-lg) * -0.5);
    margin-bottom: calc(var(--spacing-md) * -1);
    margin-left: calc(var(--spacing-lg) * -0.5);
    border-bottom: 0;
}

.card-header-pills {
    margin-right: calc(var(--spacing-lg) * -0.5);
    margin-left: calc(var(--spacing-lg) * -0.5);
}

/* Steps Navigation */
.nav-steps {
    counter-reset: step;
}

.nav-steps .nav-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
}

.nav-steps .nav-link::before {
    counter-increment: step;
    content: counter(step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-size: 0.8125rem;
    font-weight: 600;
    background-color: var(--background-color);
    color: var(--muted-color);
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

.nav-steps .nav-link.active::before {
    background-color: var(--accent-color);
    color: white;
}

.nav-steps .nav-link.completed::before {
    content: "✓";
    background-color: var(--success-color);
    color: white;
}

/*--------------------------------------------------------------
# Pagination
--------------------------------------------------------------*/
.pagination {
    display: flex;
    padding-left: 0;
    list-style: none;
    gap: var(--spacing-xs);
}

.page-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 var(--spacing-sm);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--default-color);
    text-decoration: none;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition:
        color var(--transition-fast),
        background-color var(--transition-fast),
        border-color var(--transition-fast);
}

.page-link:hover {
    z-index: 2;
    color: var(--accent-color);
    background-color: var(--background-color);
    border-color: var(--border-color-dark);
}

.page-link:focus {
    z-index: 3;
    outline: 0;
}

.page-item.active .page-link {
    z-index: 3;
    color: white;
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.page-item.disabled .page-link {
    color: var(--light-color);
    pointer-events: none;
    background-color: var(--surface-color);
    border-color: var(--border-color);
    opacity: 0.5;
}

/* Pagination Sizes */
.pagination-lg .page-link {
    min-width: 44px;
    height: 44px;
    padding: 0 var(--spacing-md);
    font-size: 1rem;
}

.pagination-sm .page-link {
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    font-size: 0.75rem;
}

/* Pagination Variants */
.pagination-rounded .page-link {
    border-radius: var(--radius-full);
}

.pagination-borderless .page-link {
    border: none;
}

.pagination-borderless .page-item.active .page-link {
    background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
    color: var(--accent-color);
}

/* Simple Pagination (Prev/Next only) */
.pagination-simple {
    justify-content: space-between;
}

.pagination-simple .page-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

/* Pagination with Info */
.pagination-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.pagination-info-text {
    font-size: 0.875rem;
    color: var(--muted-color);
}

/* Centered Pagination */
.pagination-center {
    justify-content: center;
}

/* Per Page Selector */
.per-page-select {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 0.875rem;
    color: var(--muted-color);
}

.per-page-select select {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: var(--surface-color);
    color: var(--default-color);
}

/*--------------------------------------------------------------
# Progress Bars
--------------------------------------------------------------*/
.progress {
    display: flex;
    height: 8px;
    overflow: hidden;
    font-size: 0.625rem;
    background-color: var(--background-color);
    border-radius: var(--radius-full);
}

.progress-bar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    color: white;
    text-align: center;
    white-space: nowrap;
    background-color: var(--accent-color);
    transition: width var(--transition-slow) ease;
}

/* Progress Bar Colors */
.progress-bar-success,
.bg-success {
    background-color: var(--success-color) !important;
}

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

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

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

/* Striped Progress Bar */
.progress-bar-striped {
    background-image: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 75%,
        transparent
    );
    background-size: 1rem 1rem;
}

/* Animated Striped */
.progress-bar-animated {
    animation: progress-bar-stripes 1s linear infinite;
}

@keyframes progress-bar-stripes {
    0% {
        background-position-x: 1rem;
    }
}

/* Progress Sizes */
.progress-sm {
    height: 4px;
}

.progress-lg {
    height: 12px;
}

.progress-xl {
    height: 16px;
    font-size: 0.75rem;
}

/* Progress with Label */
.progress-with-label {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.progress-with-label .progress {
    flex: 1;
}

.progress-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--heading-color);
    min-width: 40px;
    text-align: right;
}

/* Stacked Progress (Multiple bars) */
.progress-stacked {
    display: flex;
}

.progress-stacked .progress {
    flex: 1;
}

/* Progress Circle */
.progress-circle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.progress-circle svg {
    transform: rotate(-90deg);
}

.progress-circle-track {
    fill: none;
    stroke: var(--background-color);
}

.progress-circle-bar {
    fill: none;
    stroke: var(--accent-color);
    stroke-linecap: round;
    transition: stroke-dasharray var(--transition-slow) ease;
}

.progress-circle-bar.success {
    stroke: var(--success-color);
}

.progress-circle-bar.warning {
    stroke: var(--warning-color);
}

.progress-circle-bar.danger {
    stroke: var(--danger-color);
}

.progress-circle-value {
    position: absolute;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--heading-color);
}

.progress-circle-sm .progress-circle-value {
    font-size: 0.875rem;
}

.progress-circle-lg .progress-circle-value {
    font-size: 1.5rem;
}

/* Progress Group (Multiple progress items) */
.progress-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.progress-group-item {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.progress-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.progress-group-label {
    font-size: 0.875rem;
    color: var(--default-color);
}

.progress-group-value {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--heading-color);
}

/* Step Progress */
.step-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.step-progress::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--border-color);
    transform: translateY(-50%);
    z-index: 0;
}

.step-progress-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    z-index: 1;
}

.step-progress-marker {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background-color: var(--surface-color);
    border: 2px solid var(--border-color);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--muted-color);
}

.step-progress-item.active .step-progress-marker {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

.step-progress-item.completed .step-progress-marker {
    background-color: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

.step-progress-label {
    font-size: 0.8125rem;
    color: var(--muted-color);
    text-align: center;
    white-space: nowrap;
}

.step-progress-item.active .step-progress-label {
    color: var(--heading-color);
    font-weight: 500;
}

/*--------------------------------------------------------------
# Toasts / Notifications
--------------------------------------------------------------*/
.toast-container {
    position: fixed;
    z-index: 1090;
    width: 100%;
    max-width: 380px;
    pointer-events: none;
}

/* Toast Positions */
.toast-container.top-right {
    top: var(--spacing-lg);
    right: var(--spacing-lg);
}

.toast-container.top-left {
    top: var(--spacing-lg);
    left: var(--spacing-lg);
}

.toast-container.top-center {
    top: var(--spacing-lg);
    left: 50%;
    transform: translateX(-50%);
}

.toast-container.bottom-right {
    bottom: var(--spacing-lg);
    right: var(--spacing-lg);
}

.toast-container.bottom-left {
    bottom: var(--spacing-lg);
    left: var(--spacing-lg);
}

.toast-container.bottom-center {
    bottom: var(--spacing-lg);
    left: 50%;
    transform: translateX(-50%);
}

.toast {
    width: 100%;
    max-width: 380px;
    font-size: 0.875rem;
    pointer-events: auto;
    background-color: var(--surface-color);
    background-clip: padding-box;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-lg);
    opacity: 0;
    transform: translateY(-10px);
    transition:
        opacity var(--transition-base),
        transform var(--transition-base);
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.hiding {
    opacity: 0;
    transform: translateY(-10px);
}

.toast + .toast {
    margin-top: var(--spacing-md);
}

.toast-header {
    display: flex;
    align-items: center;
    padding: var(--spacing-md);
    color: var(--heading-color);
    background-color: var(--surface-color);
    background-clip: padding-box;
    border-bottom: 1px solid var(--border-color-light);
    border-top-left-radius: calc(var(--radius-lg) - 1px);
    border-top-right-radius: calc(var(--radius-lg) - 1px);
}

.toast-header .btn-close {
    margin-left: auto;
    padding: var(--spacing-xs);
    background: transparent;
    border: none;
    opacity: 0.5;
    cursor: pointer;
}

.toast-header .btn-close:hover {
    opacity: 1;
}

.toast-body {
    padding: var(--spacing-md);
    word-wrap: break-word;
}

/* Toast with Icon */
.toast-icon {
    display: flex;
    gap: var(--spacing-sm);
}

.toast-icon-wrapper {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
}

.toast-icon-wrapper.success {
    background-color: var(--success-color-light);
    color: var(--success-color);
}

.toast-icon-wrapper.warning {
    background-color: var(--warning-color-light);
    color: var(--warning-color);
}

.toast-icon-wrapper.danger {
    background-color: var(--danger-color-light);
    color: var(--danger-color);
}

.toast-icon-wrapper.info {
    background-color: var(--info-color-light);
    color: var(--info-color);
}

.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 2px;
}

.toast-message {
    color: var(--muted-color);
}

.toast-time {
    font-size: 0.75rem;
    color: var(--light-color);
    margin-top: var(--spacing-xs);
}

/* Toast Variants */
.toast-success {
    border-left: 4px solid var(--success-color);
}

.toast-warning {
    border-left: 4px solid var(--warning-color);
}

.toast-danger {
    border-left: 4px solid var(--danger-color);
}

.toast-info {
    border-left: 4px solid var(--info-color);
}

/* Solid Toast Variants */
.toast-solid-success {
    background-color: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

.toast-solid-success .toast-header {
    background-color: transparent;
    border-bottom-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.toast-solid-success .toast-title,
.toast-solid-success .toast-message {
    color: white;
}

.toast-solid-success .toast-time {
    color: rgba(255, 255, 255, 0.8);
}

.toast-solid-warning {
    background-color: var(--warning-color);
    border-color: var(--warning-color);
    color: #1e293b;
}

.toast-solid-danger {
    background-color: var(--danger-color);
    border-color: var(--danger-color);
    color: white;
}

.toast-solid-info {
    background-color: var(--info-color);
    border-color: var(--info-color);
    color: white;
}

/* Toast Actions */
.toast-actions {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.toast-actions .btn {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 0.8125rem;
}

/* Toast Progress Bar (Auto-dismiss indicator) */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 0 0 0 var(--radius-lg);
    animation: toast-progress linear forwards;
}

@keyframes toast-progress {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

/*--------------------------------------------------------------
# Dashboard Widgets (Additional)
--------------------------------------------------------------*/
/* Welcome Card */
.welcome-card {
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--accent-color), transparent 85%),
        color-mix(in srgb, var(--accent-color), transparent 95%)
    );
    border: 1px solid color-mix(in srgb, var(--accent-color), transparent 80%);
}

.welcome-content {
    flex: 1;
}

.welcome-greeting {
    font-size: 0.875rem;
    color: var(--muted-color);
    margin-bottom: var(--spacing-xs);
}

.welcome-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: var(--spacing-md);
}

.welcome-date {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: var(--muted-color);
}

.welcome-date i {
    margin-right: var(--spacing-xs);
    color: var(--accent-color);
}

.welcome-illustration {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.welcome-illustration img {
    max-width: 100%;
    max-height: 100%;
}

@media (max-width: 575.98px) {
    .welcome-illustration {
        display: none;
    }
}

/* Stat Card */
.stat-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: var(--spacing-sm);
}

.stat-card-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--muted-color);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.stat-card-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 1.125rem;
}

.stat-card-icon.primary {
    background: color-mix(in srgb, var(--accent-color), transparent 90%);
    color: var(--accent-color);
}

.stat-card-icon.success {
    background: var(--success-color-light);
    color: var(--success-color);
}

.stat-card-icon.warning {
    background: var(--warning-color-light);
    color: var(--warning-color);
}

.stat-card-icon.danger {
    background: var(--danger-color-light);
    color: var(--danger-color);
}

.stat-card-icon.info {
    background: var(--info-color-light);
    color: var(--info-color);
}

.stat-card-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--heading-color);
    line-height: 1.2;
    margin-bottom: var(--spacing-xs);
}

.stat-card-change {
    font-size: 0.8125rem;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.stat-card-change i {
    font-size: 0.75rem;
}

.stat-card-change.positive {
    color: var(--success-color);
}

.stat-card-change.negative {
    color: var(--danger-color);
}

.stat-card-change span {
    color: var(--muted-color);
}

/* Sales Metric */
.sales-metric {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.sales-metric-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 1rem;
}

.sales-metric-icon.primary {
    background: color-mix(in srgb, var(--accent-color), transparent 90%);
    color: var(--accent-color);
}

.sales-metric-icon.success {
    background: var(--success-color-light);
    color: var(--success-color);
}

.sales-metric-icon.info {
    background: var(--info-color-light);
    color: var(--info-color);
}

.sales-metric-label {
    font-size: 0.75rem;
    color: var(--muted-color);
    margin-bottom: 2px;
}

.sales-metric-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--heading-color);
}

/* Products Table */
.products-table {
    font-size: 0.875rem;
}

.products-table th {
    font-weight: 500;
    color: var(--muted-color);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    padding: var(--spacing-md);
    background: var(--table-header-bg);
    border-bottom: 1px solid var(--border-color);
}

.products-table td {
    padding: var(--spacing-md);
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color-light);
}

.product-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.product-img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    -o-object-fit: cover;
    object-fit: cover;
    flex-shrink: 0;
}

.product-name {
    font-weight: 500;
    color: var(--heading-color);
    margin-bottom: 2px;
}

.product-brand {
    font-size: 0.75rem;
    color: var(--muted-color);
}

/* Orders Table */
.orders-table {
    font-size: 0.8125rem;
}

.orders-table th {
    font-weight: 500;
    color: var(--muted-color);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--table-header-bg);
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.orders-table th i {
    font-size: 0.625rem;
    margin-left: 4px;
    opacity: 0.5;
}

.orders-table td {
    padding: var(--spacing-sm) var(--spacing-md);
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color-light);
}

/* Location Stats */
.location-stats {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.location-stat-item {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.location-stat-bar {
    height: 6px;
    background: var(--background-color);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.location-stat-progress {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width var(--transition-base);
}

.location-stat-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.location-stat-name {
    font-size: 0.8125rem;
    color: var(--default-color);
}

.location-stat-value {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--heading-color);
}

/* Nav Pills Small */
.nav-pills-sm .nav-link {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
    border-radius: var(--radius-md);
    color: var(--muted-color);
    background: transparent;
}

.nav-pills-sm .nav-link:hover {
    color: var(--accent-color);
    background: color-mix(in srgb, var(--accent-color), transparent 90%);
}

.nav-pills-sm .nav-link.active {
    color: white;
    background: var(--accent-color);
}

/* Chart Container */
.chart-container {
    min-height: 350px;
}

/* Activity Widget */
.widget-activity .activity-item {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md) 0;
    position: relative;
}

.widget-activity .activity-item:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 48px;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.activity-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    flex-shrink: 0;
    font-size: 0.875rem;
}

.activity-icon.primary {
    background: color-mix(in srgb, var(--accent-color), transparent 90%);
    color: var(--accent-color);
}

.activity-icon.success {
    background: var(--success-color-light);
    color: var(--success-color);
}

.activity-icon.warning {
    background: var(--warning-color-light);
    color: var(--warning-color);
}

.activity-icon.danger {
    background: var(--danger-color-light);
    color: var(--danger-color);
}

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-title {
    font-size: 0.875rem;
    color: var(--heading-color);
    margin-bottom: 2px;
}

.activity-title a {
    font-weight: 500;
    color: var(--accent-color);
}

.activity-text {
    font-size: 0.8125rem;
    color: var(--muted-color);
}

.activity-time {
    font-size: 0.75rem;
    color: var(--light-color);
    margin-top: var(--spacing-xs);
}

/* Todo Widget */
.widget-todo .todo-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) 0;
}

.widget-todo .todo-item:not(:last-child) {
    border-bottom: 1px solid var(--border-color-light);
}

.todo-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.todo-checkbox:hover {
    border-color: var(--accent-color);
}

.todo-checkbox.checked {
    background: var(--success-color);
    border-color: var(--success-color);
}

.todo-checkbox.checked::after {
    content: "✓";
    color: white;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.todo-content {
    flex: 1;
    min-width: 0;
}

.todo-title {
    font-size: 0.875rem;
    color: var(--default-color);
}

.todo-item.completed .todo-title {
    text-decoration: line-through;
    color: var(--muted-color);
}

.todo-priority {
    width: 6px;
    height: 6px;
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

.todo-priority.high {
    background: var(--danger-color);
}

.todo-priority.medium {
    background: var(--warning-color);
}

.todo-priority.low {
    background: var(--success-color);
}

/* Sales Widget */
.widget-sales-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md) 0;
}

.widget-sales-item:not(:last-child) {
    border-bottom: 1px solid var(--border-color-light);
}

.widget-sales-product {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.widget-sales-image {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    -o-object-fit: cover;
    object-fit: cover;
}

.widget-sales-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--heading-color);
}

.widget-sales-category {
    font-size: 0.75rem;
    color: var(--muted-color);
}

.widget-sales-amount {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--heading-color);
}

/* Traffic Sources Widget */
.traffic-source-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-sm) 0;
}

.traffic-source-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 1rem;
}

.traffic-source-info {
    flex: 1;
}

.traffic-source-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--heading-color);
}

.traffic-source-value {
    font-size: 0.75rem;
    color: var(--muted-color);
}

.traffic-source-percent {
    font-size: 0.875rem;
    font-weight: 600;
}

/* News/Blog Widget */
.widget-news-item {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md) 0;
}

.widget-news-item:not(:last-child) {
    border-bottom: 1px solid var(--border-color-light);
}

.widget-news-image {
    width: 80px;
    height: 60px;
    border-radius: var(--radius-md);
    -o-object-fit: cover;
    object-fit: cover;
    flex-shrink: 0;
}

.widget-news-content {
    flex: 1;
    min-width: 0;
}

.widget-news-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--heading-color);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.widget-news-title a:hover {
    color: var(--accent-color);
}

.widget-news-meta {
    font-size: 0.75rem;
    color: var(--muted-color);
}

/* Calendar Widget */
.widget-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-md);
}

.widget-calendar-nav {
    display: flex;
    gap: var(--spacing-xs);
}

.widget-calendar-nav button {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--muted-color);
}

.widget-calendar-nav button:hover {
    background: var(--background-color);
    color: var(--default-color);
}

.widget-calendar-month {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--heading-color);
}

.widget-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    text-align: center;
}

.widget-calendar-day-header {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--muted-color);
    padding: var(--spacing-sm);
}

.widget-calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    color: var(--default-color);
    border-radius: var(--radius-full);
    cursor: pointer;
}

.widget-calendar-day:hover {
    background: var(--background-color);
}

.widget-calendar-day.other-month {
    color: var(--light-color);
}

.widget-calendar-day.today {
    background: var(--accent-color);
    color: white;
    font-weight: 600;
}

.widget-calendar-day.has-event::after {
    content: "";
    position: absolute;
    bottom: 4px;
    width: 4px;
    height: 4px;
    background: var(--accent-color);
    border-radius: var(--radius-full);
}

/* Quick Actions Widget */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
}

.quick-action-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.quick-action-item:hover {
    background: var(--background-color);
}

.quick-action-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 1rem;
    flex-shrink: 0;
}

.quick-action-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--default-color);
}

/* Transaction List Widget */
.transaction-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.transaction-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.transaction-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    flex-shrink: 0;
    font-size: 1rem;
}

.transaction-icon.success {
    background: var(--success-color-light);
    color: var(--success-color);
}

.transaction-icon.danger {
    background: var(--danger-color-light);
    color: var(--danger-color);
}

.transaction-details {
    flex: 1;
    min-width: 0;
}

.transaction-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--heading-color);
}

.transaction-meta {
    font-size: 0.75rem;
    color: var(--muted-color);
}

.transaction-amount {
    font-size: 0.9375rem;
    font-weight: 600;
}

.transaction-amount.positive {
    color: var(--success-color);
}

.transaction-amount.negative {
    color: var(--danger-color);
}

/* Region List Widget */
.region-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.region-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
}

.region-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    min-width: 140px;
}

.region-flag {
    font-size: 1.25rem;
}

.region-name {
    font-size: 0.875rem;
    color: var(--default-color);
}

.region-stats {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex: 1;
}

.region-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--heading-color);
    min-width: 70px;
    text-align: right;
}

.region-progress {
    flex: 1;
    height: 6px;
}

/* Badge Dot */
.badge-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

/* Activity Icon Info Variant */
.activity-icon.info {
    background: var(--info-color-light);
    color: var(--info-color);
}

/* Device List Widget */
.device-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.device-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.device-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--background-color);
    color: var(--muted-color);
    font-size: 1.125rem;
    flex-shrink: 0;
}

.device-info {
    flex: 1;
    min-width: 0;
}

.device-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--heading-color);
    margin-bottom: var(--spacing-xs);
}

.device-progress {
    height: 6px;
}

.device-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 70px;
}

.device-percent {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--heading-color);
}

.device-count {
    font-size: 0.75rem;
    color: var(--muted-color);
}

/* Browser List Widget */
.browser-list {
    display: flex;
    flex-direction: column;
}

.browser-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-sm) 0;
}

.browser-item:not(:last-child) {
    border-bottom: 1px solid var(--border-color-light);
}

.browser-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.browser-info i {
    font-size: 1.25rem;
}

.browser-name {
    font-size: 0.875rem;
    color: var(--default-color);
}

.browser-stats {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.browser-percent {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--heading-color);
    min-width: 50px;
    text-align: right;
}

/* Real-time Stats Widget */
.realtime-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--success-color);
    border-radius: var(--radius-full);
    margin-right: var(--spacing-sm);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

.realtime-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
    text-align: center;
}

.realtime-stat {
    padding: var(--spacing-md);
    background: var(--background-color);
    border-radius: var(--radius-md);
}

.realtime-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--heading-color);
    line-height: 1.2;
}

.realtime-label {
    font-size: 0.75rem;
    color: var(--muted-color);
    margin-top: var(--spacing-xs);
}

@media (max-width: 767px) {
    .realtime-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Pipeline Stages Widget */
.pipeline-stages {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.pipeline-stage {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.pipeline-stage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pipeline-stage-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--default-color);
}

.pipeline-stage-count {
    font-size: 0.75rem;
    color: var(--muted-color);
    background: var(--background-color);
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.pipeline-stage-bar {
    height: 8px;
    background: var(--background-color);
    border-radius: var(--radius-full);
    position: relative;
    overflow: hidden;
}

.pipeline-stage-bar::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: var(--stage-width, 100%);
    background: var(--stage-color, var(--accent-color));
    border-radius: var(--radius-full);
    transition: width var(--transition-base);
}

.pipeline-stage-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--heading-color);
}

/* Deal List Widget */
.deal-list {
    display: flex;
    flex-direction: column;
}

.deal-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md);
    gap: var(--spacing-md);
}

.deal-item:not(:last-child) {
    border-bottom: 1px solid var(--border-color-light);
}

.deal-info {
    flex: 1;
    min-width: 0;
}

.deal-company {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--heading-color);
}

.deal-contact {
    font-size: 0.75rem;
    color: var(--muted-color);
}

.deal-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--spacing-xs);
}

.deal-amount {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--heading-color);
}

/* Contact List Widget */
.contact-list {
    display: flex;
    flex-direction: column;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: var(--spacing-md);
    gap: var(--spacing-md);
}

.contact-item:not(:last-child) {
    border-bottom: 1px solid var(--border-color-light);
}

.contact-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    -o-object-fit: cover;
    object-fit: cover;
    flex-shrink: 0;
}

.contact-info {
    flex: 1;
    min-width: 0;
}

.contact-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--heading-color);
}

.contact-company {
    font-size: 0.75rem;
    color: var(--muted-color);
}

.contact-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    min-width: 80px;
}

.contact-deals {
    font-size: 0.75rem;
    color: var(--muted-color);
}

.contact-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--heading-color);
}

.contact-actions {
    display: flex;
    gap: var(--spacing-xs);
}

.contact-actions .btn {
    padding: 4px 8px;
}

/* Task List Widget */
.task-list {
    display: flex;
    flex-direction: column;
}

.task-item {
    display: flex;
    align-items: center;
    padding: var(--spacing-md);
    gap: var(--spacing-md);
}

.task-item:not(:last-child) {
    border-bottom: 1px solid var(--border-color-light);
}

.task-checkbox {
    position: relative;
}

.task-checkbox input {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    transition: all var(--transition-fast);
}

.task-checkbox input:checked {
    background: var(--success-color);
    border-color: var(--success-color);
}

.task-checkbox input:checked::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.75rem;
}

.task-checkbox label {
    display: none;
}

.task-info {
    flex: 1;
    min-width: 0;
}

.task-title {
    font-size: 0.875rem;
    color: var(--default-color);
}

.task-item input:checked ~ .task-info .task-title {
    text-decoration: line-through;
    color: var(--muted-color);
}

.task-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-top: 2px;
}

.task-due {
    font-size: 0.75rem;
    color: var(--muted-color);
    display: flex;
    align-items: center;
    gap: 4px;
}

.task-due i {
    font-size: 0.6875rem;
}

/* Social Stats Widget */
.social-stats-list {
    display: flex;
    flex-direction: column;
}

.social-stats-item {
    display: flex;
    align-items: center;
    padding: var(--spacing-md);
    gap: var(--spacing-md);
}

.social-stats-item:not(:last-child) {
    border-bottom: 1px solid var(--border-color-light);
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 1.125rem;
    flex-shrink: 0;
}

.social-icon.facebook {
    background: rgba(24, 119, 242, 0.1);
    color: #1877f2;
}

.social-icon.twitter {
    background: rgba(0, 0, 0, 0.1);
    color: #000;
}

[data-bs-theme="dark"] .social-icon.twitter {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.social-icon.instagram {
    background: linear-gradient(
        45deg,
        rgba(253, 29, 29, 0.1),
        rgba(131, 58, 180, 0.1)
    );
    color: #e1306c;
}

.social-icon.linkedin {
    background: rgba(10, 102, 194, 0.1);
    color: #0a66c2;
}

.social-icon.youtube {
    background: rgba(255, 0, 0, 0.1);
    color: #ff0000;
}

.social-info {
    flex: 1;
    min-width: 0;
}

.social-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--heading-color);
}

.social-followers {
    font-size: 0.75rem;
    color: var(--muted-color);
}

.social-engagement {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 70px;
}

.engagement-value {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--success-color);
}

.engagement-label {
    font-size: 0.6875rem;
    color: var(--muted-color);
    text-transform: uppercase;
}

/* Content List Widget */
.content-list {
    display: flex;
    flex-direction: column;
}

.content-item {
    display: flex;
    align-items: center;
    padding: var(--spacing-md);
    gap: var(--spacing-md);
}

.content-item:not(:last-child) {
    border-bottom: 1px solid var(--border-color-light);
}

.content-rank {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background-color);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted-color);
    flex-shrink: 0;
}

.content-info {
    flex: 1;
    min-width: 0;
}

.content-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--heading-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.content-meta {
    font-size: 0.75rem;
    color: var(--muted-color);
}

.content-stats {
    display: flex;
    gap: var(--spacing-md);
}

.content-views,
.content-shares {
    font-size: 0.75rem;
    color: var(--muted-color);
    display: flex;
    align-items: center;
    gap: 4px;
}

.content-views i,
.content-shares i {
    font-size: 0.6875rem;
}

/* Funnel Chart Widget */
.funnel-chart {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    padding: var(--spacing-md) 0;
}

.funnel-stage {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.funnel-bar {
    height: 32px;
    width: var(--funnel-width, 100%);
    border-radius: var(--radius-sm);
    transition: width var(--transition-base);
}

.funnel-bar.primary {
    background: var(--accent-color);
}

.funnel-bar.info {
    background: var(--info-color);
}

.funnel-bar.warning {
    background: var(--warning-color);
}

.funnel-bar.success {
    background: var(--success-color);
}

.funnel-bar.danger {
    background: var(--danger-color);
}

.funnel-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    min-width: 180px;
    flex-shrink: 0;
}

.funnel-name {
    font-size: 0.875rem;
    color: var(--default-color);
    min-width: 80px;
}

.funnel-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--heading-color);
}

.funnel-rate {
    font-size: 0.75rem;
    color: var(--muted-color);
}

@media (max-width: 767px) {
    .funnel-info {
        min-width: 120px;
    }
}

/* Project List Widget */
.project-list {
    display: flex;
    flex-direction: column;
}

.project-item {
    display: flex;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-lg);
    gap: var(--spacing-lg);
}

.project-item:not(:last-child) {
    border-bottom: 1px solid var(--border-color-light);
}

.project-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    min-width: 220px;
}

.project-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 1.125rem;
    flex-shrink: 0;
}

.project-details {
    min-width: 0;
}

.project-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--heading-color);
}

.project-client {
    font-size: 0.75rem;
    color: var(--muted-color);
}

.project-team {
    min-width: 120px;
}

.avatar-group {
    display: flex;
    align-items: center;
}

.avatar-group .avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    border: 2px solid var(--surface-color);
    margin-left: -8px;
    -o-object-fit: cover;
    object-fit: cover;
}

.avatar-group .avatar:first-child {
    margin-left: 0;
}

.avatar-more {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background-color);
    border-radius: var(--radius-full);
    border: 2px solid var(--surface-color);
    margin-left: -8px;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--muted-color);
}

.project-progress-info {
    min-width: 150px;
}

.project-progress-label {
    font-size: 0.75rem;
    color: var(--muted-color);
}

.project-progress-value {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--heading-color);
}

.project-deadline {
    display: flex;
    flex-direction: column;
    min-width: 100px;
}

.deadline-label {
    font-size: 0.6875rem;
    color: var(--muted-color);
    text-transform: uppercase;
}

.deadline-date {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--default-color);
}

.project-status {
    min-width: 80px;
}

.project-actions {
    min-width: 40px;
}

@media (max-width: 1199px) {
    .project-item {
        flex-wrap: wrap;
        gap: var(--spacing-md);
    }

    .project-info {
        min-width: 100%;
    }

    .project-team,
    .project-progress-info,
    .project-deadline,
    .project-status {
        min-width: auto;
    }
}

/* Workload List Widget */
.workload-list {
    display: flex;
    flex-direction: column;
}

.workload-item {
    display: flex;
    align-items: center;
    padding: var(--spacing-md);
    gap: var(--spacing-md);
}

.workload-item:not(:last-child) {
    border-bottom: 1px solid var(--border-color-light);
}

.workload-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    -o-object-fit: cover;
    object-fit: cover;
    flex-shrink: 0;
}

.workload-info {
    min-width: 120px;
}

.workload-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--heading-color);
}

.workload-role {
    font-size: 0.75rem;
    color: var(--muted-color);
}

.workload-stats {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.workload-tasks {
    font-size: 0.75rem;
    color: var(--muted-color);
}

.workload-bar-container {
    height: 6px;
    background: var(--background-color);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.workload-bar {
    height: 100%;
    border-radius: var(--radius-full);
}

.workload-bar-fill {
    height: 100%;
    border-radius: var(--radius-full);
    width: 100%;
}

.workload-bar-fill.overloaded {
    background: var(--danger-color);
}

.workload-bar-fill.warning {
    background: var(--warning-color);
}

.workload-bar-fill.normal {
    background: var(--success-color);
}

.workload-bar-fill.low {
    background: var(--info-color);
}

/* Milestone List Widget */
.milestone-list {
    display: flex;
    flex-direction: column;
}

.milestone-item {
    display: flex;
    align-items: center;
    padding: var(--spacing-md);
    gap: var(--spacing-md);
}

.milestone-item:not(:last-child) {
    border-bottom: 1px solid var(--border-color-light);
}

.milestone-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--background-color);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.milestone-day {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--heading-color);
    line-height: 1;
}

.milestone-month {
    font-size: 0.6875rem;
    color: var(--muted-color);
    text-transform: uppercase;
}

.milestone-info {
    flex: 1;
    min-width: 0;
}

.milestone-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--heading-color);
}

.milestone-project {
    font-size: 0.75rem;
    color: var(--muted-color);
}

/*--------------------------------------------------------------
# Error Page Base
--------------------------------------------------------------*/
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--background-color);
}

.error-wrapper {
    max-width: 600px;
    width: 100%;
    text-align: center;
}

.error-visual {
    margin-bottom: 2.5rem;
}

.error-content {
    max-width: 480px;
    margin: 0 auto;
}

/*--------------------------------------------------------------
# 404 Error - Code Display
--------------------------------------------------------------*/
.error-code-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    position: relative;
}

.error-digit {
    font-size: 7rem;
    font-weight: 800;
    color: var(--accent-color);
    line-height: 1;
}

.error-digit.middle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--accent-color), transparent 88%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-digit.middle i {
    font-size: 3rem;
    color: var(--accent-color);
}

.error-decoration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    border: 2px dashed color-mix(in srgb, var(--accent-color), transparent 70%);
    animation: rotate 20s linear infinite;
}

.decoration-circle.circle-1 {
    width: 200px;
    height: 200px;
    top: -100px;
    left: -100px;
}

.decoration-circle.circle-2 {
    width: 280px;
    height: 280px;
    top: -140px;
    left: -140px;
    animation-direction: reverse;
    animation-duration: 30s;
}

.decoration-circle.circle-3 {
    width: 360px;
    height: 360px;
    top: -180px;
    left: -180px;
    animation-duration: 40s;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/*--------------------------------------------------------------
# 403 Error - Shield
--------------------------------------------------------------*/
.error-shield {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto;
}

.shield-icon {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: color-mix(in srgb, var(--warning-color), transparent 88%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.shield-icon i {
    font-size: 3.5rem;
    color: var(--warning-color);
}

.shield-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 2px solid color-mix(in srgb, var(--warning-color), transparent 70%);
    animation: pulse-ring 2s ease-out infinite;
}

.shield-ring.ring-1 {
    width: 160px;
    height: 160px;
    margin: -80px 0 0 -80px;
}

.shield-ring.ring-2 {
    width: 200px;
    height: 200px;
    margin: -100px 0 0 -100px;
    animation-delay: 0.5s;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }

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

/*--------------------------------------------------------------
# 500 Error - Server
--------------------------------------------------------------*/
.error-server {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

.server-icon {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg);
    background: color-mix(in srgb, var(--danger-color), transparent 88%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.server-icon i {
    font-size: 3rem;
    color: var(--danger-color);
}

.server-status {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.375rem;
}

.server-status .status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--success-color);
}

.server-status .status-dot.error {
    background: var(--danger-color);
    animation: blink 1s ease-in-out infinite;
}

@keyframes blink {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.server-waves {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.wave {
    position: absolute;
    border-radius: var(--radius-lg);
    border: 2px solid color-mix(in srgb, var(--danger-color), transparent 80%);
    animation: wave-expand 2s ease-out infinite;
}

.wave.wave-1 {
    width: 140px;
    height: 140px;
    top: -70px;
    left: -70px;
}

.wave.wave-2 {
    width: 180px;
    height: 180px;
    top: -90px;
    left: -90px;
    animation-delay: 0.5s;
}

@keyframes wave-expand {
    0% {
        transform: scale(0.9);
        opacity: 0.8;
    }

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

/*--------------------------------------------------------------
# Error Content
--------------------------------------------------------------*/
.error-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
}

.error-badge.warning {
    background: color-mix(in srgb, var(--warning-color), transparent 88%);
    color: var(--warning-color);
}

.error-badge.danger {
    background: color-mix(in srgb, var(--danger-color), transparent 88%);
    color: var(--danger-color);
}

.error-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--heading-color);
    margin: 0 0 0.75rem;
}

.error-description {
    font-size: 1rem;
    color: var(--muted-color);
    line-height: 1.6;
    margin: 0 0 1.5rem;
}

/*--------------------------------------------------------------
# Error Search (404)
--------------------------------------------------------------*/
.error-search {
    margin-bottom: 1.5rem;
}

.error-search-input {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all 0.15s ease;
}

.error-search-input:focus-within {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px
        color-mix(in srgb, var(--accent-color), transparent 85%);
}

.error-search-input i {
    color: var(--muted-color);
}

.error-search-input input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 0.9375rem;
    color: var(--default-color);
    outline: none;
}

.error-search-input input::-moz-placeholder {
    color: var(--muted-color);
}

.error-search-input input::placeholder {
    color: var(--muted-color);
}

.error-search-input button {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    background: var(--accent-color);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.error-search-input button:hover {
    background: color-mix(in srgb, var(--accent-color), black 10%);
}

/*--------------------------------------------------------------
# Error Info Card (403)
--------------------------------------------------------------*/
.error-info-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: color-mix(in srgb, var(--info-color), transparent 92%);
    border-radius: var(--radius-lg);
    text-align: left;
    margin-bottom: 1.5rem;
}

.error-info-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--info-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.error-info-content h6 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--heading-color);
    margin: 0 0 0.5rem;
}

.error-info-content ul {
    margin: 0;
    padding-left: 1.25rem;
    font-size: 0.875rem;
    color: var(--default-color);
}

.error-info-content ul li {
    margin-bottom: 0.25rem;
}

/*--------------------------------------------------------------
# Error Status Card (500)
--------------------------------------------------------------*/
.error-status-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 1.5rem;
    text-align: left;
}

.error-status-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    background: var(--background-color);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--heading-color);
}

.error-status-header i {
    color: var(--accent-color);
}

.error-status-items {
    padding: 0.5rem 0;
}

.error-status-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
}

.error-status-item .status-name {
    font-size: 0.875rem;
    color: var(--default-color);
}

.error-status-item .status-indicator {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-full);
}

.error-status-item .status-indicator.operational {
    background: color-mix(in srgb, var(--success-color), transparent 88%);
    color: var(--success-color);
}

.error-status-item .status-indicator.degraded {
    background: color-mix(in srgb, var(--warning-color), transparent 88%);
    color: var(--warning-color);
}

/*--------------------------------------------------------------
# Error Actions
--------------------------------------------------------------*/
.error-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.error-actions .btn {
    min-width: 160px;
}

/*--------------------------------------------------------------
# Error Suggestions (404)
--------------------------------------------------------------*/
.error-suggestions {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.error-suggestions > p {
    font-size: 0.8125rem;
    color: var(--muted-color);
    margin: 0 0 1rem;
}

.error-links {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.error-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    font-size: 0.8125rem;
    color: var(--default-color);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.15s ease;
}

.error-links a i {
    color: var(--accent-color);
}

.error-links a:hover {
    border-color: var(--accent-color);
    background: color-mix(in srgb, var(--accent-color), transparent 95%);
}

/*--------------------------------------------------------------
# Error Contact & Reference
--------------------------------------------------------------*/
.error-contact p,
.error-reference p {
    font-size: 0.875rem;
    color: var(--muted-color);
    margin: 0;
}

.error-contact p a,
.error-reference p a {
    color: var(--accent-color);
    font-weight: 500;
}

.error-contact p code,
.error-reference p code {
    font-size: 0.8125rem;
    padding: 0.25rem 0.5rem;
    background: var(--background-color);
    border-radius: var(--radius-sm);
}

/*--------------------------------------------------------------
# Maintenance Page
--------------------------------------------------------------*/
.maintenance-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--background-color);
}

.maintenance-wrapper {
    max-width: 500px;
    width: 100%;
    text-align: center;
}

.maintenance-header {
    margin-bottom: 2rem;
}

.maintenance-logo img {
    height: 40px;
    width: auto;
}

.maintenance-visual {
    margin-bottom: 2rem;
}

.maintenance-gears {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
}

.gear {
    position: absolute;
}

.gear i {
    display: block;
}

.gear.gear-large {
    top: 0;
    left: 0;
}

.gear.gear-large i {
    font-size: 5rem;
    color: var(--accent-color);
    animation: gear-rotate 4s linear infinite;
}

.gear.gear-small {
    bottom: 0;
    right: 0;
}

.gear.gear-small i {
    font-size: 3rem;
    color: var(--warning-color);
    animation: gear-rotate 3s linear infinite reverse;
}

@keyframes gear-rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.maintenance-progress {
    width: 200px;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    margin: 0 auto;
    overflow: hidden;
}

.progress-bar-animated {
    width: 40%;
    height: 100%;
    background: var(--accent-color);
    border-radius: 2px;
    animation: progress-move 2s ease-in-out infinite;
}

@keyframes progress-move {
    0% {
        transform: translateX(-100%);
    }

    50% {
        transform: translateX(150%);
    }

    100% {
        transform: translateX(-100%);
    }
}

.maintenance-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--heading-color);
    margin: 0 0 0.75rem;
}

.maintenance-description {
    font-size: 1rem;
    color: var(--muted-color);
    line-height: 1.6;
    margin: 0 0 2rem;
}

/*--------------------------------------------------------------
# Maintenance Timeline
--------------------------------------------------------------*/
.maintenance-timeline {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.maintenance-timeline .timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    min-width: 120px;
}

.maintenance-timeline .timeline-item.completed .timeline-marker {
    background: var(--success-color);
}

.maintenance-timeline .timeline-item.completed .timeline-marker::after {
    content: "\f26e";
    font-family: "bootstrap-icons";
    font-size: 0.625rem;
    color: white;
}

.maintenance-timeline .timeline-item.current .timeline-marker {
    background: var(--accent-color);
    animation: pulse 2s ease-in-out infinite;
}

.maintenance-timeline .timeline-marker {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.maintenance-timeline .timeline-content {
    text-align: center;
}

.maintenance-timeline .timeline-label {
    display: block;
    font-size: 0.6875rem;
    color: var(--muted-color);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.maintenance-timeline .timeline-time {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--heading-color);
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/*--------------------------------------------------------------
# Maintenance Notify
--------------------------------------------------------------*/
.maintenance-notify {
    margin-bottom: 2rem;
}

.maintenance-notify > p {
    font-size: 0.875rem;
    color: var(--muted-color);
    margin: 0 0 0.75rem;
}

.maintenance-form {
    display: flex;
    gap: 0.5rem;
    max-width: 320px;
    margin: 0 auto;
}

.maintenance-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--card-bg);
    color: var(--default-color);
    outline: none;
}

.maintenance-form input:focus {
    border-color: var(--accent-color);
}

.maintenance-form input::-moz-placeholder {
    color: var(--muted-color);
}

.maintenance-form input::placeholder {
    color: var(--muted-color);
}

.maintenance-form .btn {
    padding: 0.75rem 1rem;
}

.maintenance-social > p {
    font-size: 0.875rem;
    color: var(--muted-color);
    margin: 0 0 0.75rem;
}

/*--------------------------------------------------------------
# Coming Soon Page
--------------------------------------------------------------*/
.coming-soon-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--background-color);
}

.coming-soon-wrapper {
    max-width: 600px;
    width: 100%;
    text-align: center;
}

.coming-soon-header {
    margin-bottom: 2rem;
}

.coming-soon-logo img {
    height: 40px;
    width: auto;
}

.coming-soon-visual {
    margin-bottom: 2rem;
}

.rocket-animation {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

.rocket {
    position: relative;
    z-index: 2;
}

.rocket i {
    font-size: 4rem;
    color: var(--accent-color);
    animation: rocket-float 2s ease-in-out infinite;
}

@keyframes rocket-float {
    0%,
    100% {
        transform: translateY(0) rotate(-45deg);
    }

    50% {
        transform: translateY(-10px) rotate(-45deg);
    }
}

.rocket-trail {
    position: absolute;
    bottom: 20px;
    left: 50%;
    width: 8px;
    height: 40px;
    background: linear-gradient(to bottom, var(--warning-color), transparent);
    border-radius: 4px;
    transform: translateX(-50%) rotate(-45deg);
    animation: trail-pulse 0.5s ease-in-out infinite;
}

@keyframes trail-pulse {
    0%,
    100% {
        opacity: 0.8;
        height: 40px;
    }

    50% {
        opacity: 0.4;
        height: 30px;
    }
}

.stars {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.star {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent-color);
    animation: twinkle 1.5s ease-in-out infinite;
}

.star:nth-child(1) {
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

.star:nth-child(2) {
    top: 30%;
    left: 80%;
    animation-delay: 0.3s;
}

.star:nth-child(3) {
    top: 60%;
    left: 10%;
    animation-delay: 0.6s;
}

.star:nth-child(4) {
    top: 80%;
    left: 70%;
    animation-delay: 0.9s;
}

.star:nth-child(5) {
    top: 20%;
    left: 60%;
    animation-delay: 1.2s;
}

@keyframes twinkle {
    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

.coming-soon-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 500;
    background: color-mix(in srgb, var(--accent-color), transparent 88%);
    color: var(--accent-color);
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
}

.coming-soon-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--heading-color);
    margin: 0 0 0.75rem;
}

.coming-soon-description {
    font-size: 1rem;
    color: var(--muted-color);
    line-height: 1.6;
    margin: 0 0 2rem;
}

/*--------------------------------------------------------------
# Countdown
--------------------------------------------------------------*/
.countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
}

.countdown-item {
    text-align: center;
}

.countdown-value {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--heading-color);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 0.5rem;
}

.countdown-label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted-color);
}

.countdown-separator {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--muted-color);
    margin-bottom: 1.5rem;
}

/*--------------------------------------------------------------
# Subscribe Form
--------------------------------------------------------------*/
.coming-soon-subscribe {
    margin-bottom: 2rem;
}

.coming-soon-subscribe h6 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--heading-color);
    margin: 0 0 1rem;
}

.subscribe-form {
    max-width: 440px;
    margin: 0 auto;
}

.subscribe-input-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.5rem 0.5rem 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.subscribe-input-group i {
    color: var(--muted-color);
}

.subscribe-input-group input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 0.9375rem;
    color: var(--default-color);
    outline: none;
}

.subscribe-input-group input::-moz-placeholder {
    color: var(--muted-color);
}

.subscribe-input-group input::placeholder {
    color: var(--muted-color);
}

.subscribe-input-group .btn {
    padding: 0.625rem 1.25rem;
    white-space: nowrap;
}

.subscribe-note {
    font-size: 0.75rem;
    color: var(--muted-color);
    margin: 0.75rem 0 0;
}

.subscribe-note i {
    color: var(--success-color);
}

/*--------------------------------------------------------------
# Features Preview
--------------------------------------------------------------*/
.coming-soon-features {
    margin-bottom: 2rem;
}

.coming-soon-features h6 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--heading-color);
    margin: 0 0 1rem;
}

.features-grid {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    font-size: 0.8125rem;
    color: var(--default-color);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.feature-item i {
    color: var(--accent-color);
}

.coming-soon-social > p {
    font-size: 0.875rem;
    color: var(--muted-color);
    margin: 0 0 0.75rem;
}

/*--------------------------------------------------------------
# Social Links
--------------------------------------------------------------*/
.social-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--muted-color);
    font-size: 1rem;
    transition: all 0.15s ease;
}

.social-link:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/
@media (max-width: 767.98px) {
    .error-digit {
        font-size: 5rem;
    }

    .error-digit.middle {
        width: 70px;
        height: 70px;
    }

    .error-digit.middle i {
        font-size: 2rem;
    }

    .decoration-circle.circle-3 {
        display: none;
    }

    .error-shield {
        width: 100px;
        height: 100px;
    }

    .error-shield .shield-icon i {
        font-size: 2.5rem;
    }

    .error-server {
        width: 90px;
        height: 90px;
    }

    .error-server .server-icon i {
        font-size: 2.25rem;
    }

    .error-title,
    .maintenance-title {
        font-size: 1.5rem;
    }

    .coming-soon-title {
        font-size: 1.5rem;
    }

    .error-actions {
        flex-direction: column;
    }

    .error-actions .btn {
        width: 100%;
    }

    .error-links {
        flex-direction: column;
    }

    .error-links a {
        justify-content: center;
    }

    .error-search-input {
        flex-direction: column;
        gap: 0.5rem;
    }

    .error-search-input button {
        width: 100%;
    }

    .maintenance-timeline {
        flex-direction: column;
        gap: 0.75rem;
    }

    .maintenance-timeline .timeline-item {
        flex-direction: row;
        justify-content: flex-start;
        gap: 1rem;
        min-width: auto;
    }

    .maintenance-timeline .timeline-content {
        text-align: left;
    }

    .countdown-value {
        width: 55px;
        height: 55px;
        font-size: 1.25rem;
    }

    .countdown-separator {
        font-size: 1.25rem;
        margin-bottom: 1.25rem;
    }

    .subscribe-input-group {
        flex-direction: column;
        padding: 0.75rem;
    }

    .subscribe-input-group .btn {
        width: 100%;
    }

    .features-grid {
        flex-direction: column;
    }

    .feature-item {
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .error-page,
    .maintenance-page,
    .coming-soon-page {
        padding: 1.5rem;
    }

    .error-info-card {
        flex-direction: column;
    }
}

/*--------------------------------------------------------------
# Profile Cover Card
--------------------------------------------------------------*/
.profile-cover-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--card-border);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    margin-bottom: var(--spacing-lg);
}

.profile-cover {
    position: relative;
    height: 180px;
    background: linear-gradient(
        135deg,
        var(--accent-color),
        color-mix(in srgb, var(--accent-color), #0a1628 50%)
    );
    overflow: hidden;
}

.profile-cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.profile-cover-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.profile-cover-content {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 0 1.5rem 1.5rem;
    margin-top: -50px;
    flex-wrap: wrap;
}

.profile-cover-avatar {
    position: relative;
    flex-shrink: 0;
}

.profile-cover-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    -o-object-fit: cover;
    object-fit: cover;
    border: 4px solid var(--card-bg);
    box-shadow: var(--shadow-md);
}

.profile-online-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--success-color);
    border: 3px solid var(--card-bg);
}

.profile-cover-info {
    flex: 1;
    min-width: 200px;
    padding-top: 60px;
}

.profile-cover-info h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--heading-color);
    margin: 0 0 0.25rem;
}

.profile-cover-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--muted-color);
    font-size: 0.8125rem;
}

.profile-cover-meta span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.profile-cover-meta i {
    font-size: 0.875rem;
}

.profile-cover-meta a {
    color: var(--accent-color);
    text-decoration: none;
}

.profile-cover-meta a:hover {
    text-decoration: underline;
}

.profile-cover-stats {
    display: flex;
    gap: 0.5rem;
    padding-top: 60px;
    margin-left: auto;
}

.profile-cover-stat {
    text-align: center;
    padding: 0.75rem 1.25rem;
    background: var(--background-color);
    border-radius: var(--radius-md);
    min-width: 80px;
}

.profile-cover-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--heading-color);
    line-height: 1.2;
    display: block;
}

.profile-cover-stat-label {
    font-size: 0.6875rem;
    color: var(--muted-color);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

@media (max-width: 767.98px) {
    .profile-cover {
        height: 140px;
    }

    .profile-cover-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-cover-avatar img {
        width: 100px;
        height: 100px;
    }

    .profile-cover-info {
        padding-top: 0;
    }

    .profile-cover-meta {
        justify-content: center;
    }

    .profile-cover-stats {
        padding-top: 0;
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }
}

/*--------------------------------------------------------------
# Profile About Section
--------------------------------------------------------------*/
.profile-about-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.profile-about-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.profile-about-item > i {
    width: 20px;
    font-size: 1rem;
    color: var(--muted-color);
    margin-top: 2px;
}

.profile-about-item .label {
    display: block;
    font-size: 0.75rem;
    color: var(--muted-color);
}

.profile-about-item .value {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--heading-color);
}

/*--------------------------------------------------------------
# Profile Skills
--------------------------------------------------------------*/
.profile-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.profile-skill-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    background: var(--background-color);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--default-color);
    transition: all 0.15s ease;
}

.profile-skill-tag:hover {
    background: color-mix(in srgb, var(--accent-color), transparent 90%);
    color: var(--accent-color);
}

/*--------------------------------------------------------------
# Profile Connections Grid
--------------------------------------------------------------*/
.profile-connections-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.profile-connection {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--background-color);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.15s ease;
}

.profile-connection:hover {
    background: color-mix(in srgb, var(--accent-color), transparent 90%);
}

.profile-connection img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    -o-object-fit: cover;
    object-fit: cover;
}

.profile-connection span {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--heading-color);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/*--------------------------------------------------------------
# Profile Social Links
--------------------------------------------------------------*/
.profile-social-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.profile-social-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--background-color);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.15s ease;
}

.profile-social-link i {
    font-size: 1.25rem;
}

.profile-social-link span {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--heading-color);
}

.profile-social-link:hover {
    transform: translateX(4px);
}

.profile-social-link.github i {
    color: #333;
}

.profile-social-link.github:hover {
    background: #f5f5f5;
}

.profile-social-link.linkedin i {
    color: #0a66c2;
}

.profile-social-link.linkedin:hover {
    background: color-mix(in srgb, #0a66c2, transparent 90%);
}

.profile-social-link.twitter i {
    color: #000;
}

.profile-social-link.twitter:hover {
    background: #f0f0f0;
}

.profile-social-link.dribbble i {
    color: #ea4c89;
}

.profile-social-link.dribbble:hover {
    background: color-mix(in srgb, #ea4c89, transparent 90%);
}

[data-theme="dark"] .profile-social-link.github i {
    color: #f0f0f0;
}

[data-theme="dark"] .profile-social-link.twitter i {
    color: #f0f0f0;
}

/*--------------------------------------------------------------
# Create Post
--------------------------------------------------------------*/
.profile-create-post {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.profile-create-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    -o-object-fit: cover;
    object-fit: cover;
    flex-shrink: 0;
}

/*--------------------------------------------------------------
# Profile Post
--------------------------------------------------------------*/
.profile-post .card-body {
    padding: 1.25rem;
}

.profile-post-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.profile-post-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    -o-object-fit: cover;
    object-fit: cover;
    flex-shrink: 0;
}

.profile-post-meta {
    flex: 1;
    min-width: 0;
}

.profile-post-meta h6 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--heading-color);
    margin: 0;
}

.profile-post-meta span {
    font-size: 0.75rem;
    color: var(--muted-color);
}

.profile-post-content {
    margin-bottom: 1rem;
}

.profile-post-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.profile-post-content p:last-child {
    margin-bottom: 0;
}

.profile-post-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-top: 1rem;
}

.profile-post-image img {
    width: 100%;
    height: auto;
    display: block;
}

.profile-post-list {
    margin: 0;
    padding-left: 1.25rem;
}

.profile-post-list li {
    margin-bottom: 0.5rem;
    color: var(--default-color);
}

.profile-post-list li:last-child {
    margin-bottom: 0;
}

.profile-post-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.8125rem;
    color: var(--muted-color);
}

.profile-post-stats span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.profile-post-actions {
    display: flex;
    justify-content: space-around;
    gap: 0.5rem;
}

.profile-post-actions .btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.profile-post-actions .btn i {
    font-size: 1rem;
}

/*--------------------------------------------------------------
# Profile Achievement
--------------------------------------------------------------*/
.profile-achievement {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--warning-color), transparent 90%),
        color-mix(in srgb, var(--warning-color), transparent 95%)
    );
    border-radius: var(--radius-md);
    border: 1px solid color-mix(in srgb, var(--warning-color), transparent 70%);
}

.profile-achievement-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--warning-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.profile-achievement-info {
    flex: 1;
    min-width: 0;
}

.profile-achievement-info h6 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--heading-color);
    margin: 0 0 0.25rem;
}

.profile-achievement-info p {
    font-size: 0.8125rem;
    color: var(--muted-color);
    margin: 0;
}

/*--------------------------------------------------------------
# Profile Link Preview
--------------------------------------------------------------*/
.profile-link-preview {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-decoration: none;
    transition: all 0.15s ease;
}

.profile-link-preview:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-sm);
}

.profile-link-preview-image {
    width: 140px;
    flex-shrink: 0;
}

.profile-link-preview-image img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}

.profile-link-preview-content {
    flex: 1;
    padding: 1rem;
    min-width: 0;
}

.profile-link-preview-domain {
    font-size: 0.75rem;
    color: var(--muted-color);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 0.25rem;
    display: block;
}

.profile-link-preview-content h6 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--heading-color);
    margin: 0 0 0.375rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.profile-link-preview-content p {
    font-size: 0.8125rem;
    color: var(--muted-color);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 575.98px) {
    .profile-link-preview {
        flex-direction: column;
    }

    .profile-link-preview-image {
        width: 100%;
        height: 140px;
    }
}

/*--------------------------------------------------------------
# Activity Stats Cards
--------------------------------------------------------------*/
.activity-stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--card-border);
    box-shadow: var(--card-shadow);
    height: 100%;
}

.activity-stat-card .activity-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.activity-stat-card .activity-stat-icon.primary {
    background: color-mix(in srgb, var(--accent-color), transparent 90%);
    color: var(--accent-color);
}

.activity-stat-card .activity-stat-icon.success {
    background: var(--success-color-light);
    color: var(--success-color);
}

.activity-stat-card .activity-stat-icon.warning {
    background: var(--warning-color-light);
    color: var(--warning-color);
}

.activity-stat-card .activity-stat-icon.danger {
    background: var(--danger-color-light);
    color: var(--danger-color);
}

.activity-stat-content {
    flex: 1;
    min-width: 0;
}

.activity-stat-card .activity-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--heading-color);
    line-height: 1.2;
}

.activity-stat-card .activity-stat-label {
    font-size: 0.75rem;
    color: var(--muted-color);
}

/*--------------------------------------------------------------
# Activity Filter Tabs
--------------------------------------------------------------*/
.activity-filter-tabs {
    display: flex;
    gap: 0.5rem;
}

.activity-filter-tab {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--muted-color);
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.15s ease;
}

.activity-filter-tab:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.activity-filter-tab.active {
    color: white;
    background: var(--accent-color);
    border-color: var(--accent-color);
}

/*--------------------------------------------------------------
# Activity Group
--------------------------------------------------------------*/
.activity-group {
    border-bottom: 1px solid var(--border-color);
}

.activity-group:last-child {
    border-bottom: none;
}

.activity-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    background: var(--background-color);
    border-bottom: 1px solid var(--border-color);
}

.activity-group-date {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--heading-color);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.activity-group-count {
    font-size: 0.6875rem;
    color: var(--muted-color);
}

/*--------------------------------------------------------------
# Activity Timeline
--------------------------------------------------------------*/
.activity-timeline {
    position: relative;
    padding: 1rem 1.25rem;
}

.activity-timeline-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    position: relative;
}

.activity-timeline-item:not(:last-child) {
    border-bottom: 1px solid var(--border-color);
}

.activity-timeline-marker {
    position: absolute;
    left: -1.25rem;
    top: 1.5rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--muted-color);
}

.activity-timeline-marker.primary {
    background: var(--accent-color);
}

.activity-timeline-marker.success {
    background: var(--success-color);
}

.activity-timeline-marker.warning {
    background: var(--warning-color);
}

.activity-timeline-marker.danger {
    background: var(--danger-color);
}

.activity-timeline-marker.info {
    background: var(--info-color);
}

.activity-timeline-marker.secondary {
    background: var(--muted-color);
}

.activity-timeline-time {
    flex-shrink: 0;
    width: 80px;
    font-size: 0.75rem;
    color: var(--muted-color);
    padding-top: 0.125rem;
}

.activity-timeline-content {
    flex: 1;
    display: flex;
    gap: 1rem;
    min-width: 0;
}

.activity-timeline-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.activity-timeline-icon.primary {
    background: color-mix(in srgb, var(--accent-color), transparent 90%);
    color: var(--accent-color);
}

.activity-timeline-icon.success {
    background: var(--success-color-light);
    color: var(--success-color);
}

.activity-timeline-icon.warning {
    background: var(--warning-color-light);
    color: var(--warning-color);
}

.activity-timeline-icon.danger {
    background: var(--danger-color-light);
    color: var(--danger-color);
}

.activity-timeline-icon.info {
    background: var(--info-color-light);
    color: var(--info-color);
}

.activity-timeline-icon.secondary {
    background: color-mix(in srgb, var(--muted-color), transparent 85%);
    color: var(--muted-color);
}

.activity-timeline-details {
    flex: 1;
    min-width: 0;
}

.activity-timeline-details h6 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--heading-color);
    margin: 0 0 0.375rem;
}

.activity-timeline-details > p {
    font-size: 0.875rem;
    color: var(--default-color);
    margin: 0 0 0.5rem;
    line-height: 1.5;
}

.activity-timeline-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--muted-color);
}

.activity-timeline-meta span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.activity-timeline-changes {
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: var(--background-color);
    border-radius: var(--radius-md);
}

.activity-change {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    flex-wrap: wrap;
}

.activity-change-field {
    font-weight: 500;
    color: var(--heading-color);
}

.activity-change-old {
    color: var(--danger-color);
    text-decoration: line-through;
}

.activity-change-new {
    color: var(--success-color);
}

/*--------------------------------------------------------------
# Activity Sessions
--------------------------------------------------------------*/
.activity-sessions {
    display: flex;
    flex-direction: column;
}

.activity-session {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.activity-session:last-child {
    border-bottom: none;
}

.activity-session-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--background-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    color: var(--muted-color);
}

.activity-session.current .activity-session-icon {
    background: var(--success-color-light);
    color: var(--success-color);
}

.activity-session-info {
    flex: 1;
    min-width: 0;
}

.activity-session-info h6 {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--heading-color);
    margin: 0 0 0.125rem;
}

.activity-session-info p {
    font-size: 0.75rem;
    color: var(--muted-color);
    margin: 0;
}

/*--------------------------------------------------------------
# Activity Locations
--------------------------------------------------------------*/
.activity-locations {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.activity-location {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--background-color);
    border-radius: var(--radius-md);
}

.activity-location.unknown {
    background: var(--danger-color-light);
}

.activity-location-marker {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success-color);
    flex-shrink: 0;
}

.activity-location.unknown .activity-location-marker {
    background: var(--danger-color);
}

.activity-location-info {
    flex: 1;
    min-width: 0;
}

.activity-location-info h6 {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--heading-color);
    margin: 0;
}

.activity-location-info p {
    font-size: 0.75rem;
    color: var(--muted-color);
    margin: 0;
}

/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/
@media (max-width: 767.98px) {
    .activity-filter-tabs {
        flex-wrap: wrap;
    }

    .activity-timeline-item {
        flex-wrap: wrap;
    }

    .activity-timeline-time {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .activity-timeline-marker {
        display: none;
    }

    .activity-timeline-content {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .activity-stat-card {
        flex-direction: column;
        text-align: center;
    }

    .activity-timeline-content {
        flex-direction: column;
    }
}

/*--------------------------------------------------------------
# Notification Stats Card
--------------------------------------------------------------*/
.notif-stats-card .card-body {
    padding: 1.25rem;
}

.notif-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.notif-stat-item {
    text-align: center;
    padding: 0.75rem;
    background: var(--background-color);
    border-radius: var(--radius-md);
}

.notif-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--heading-color);
    line-height: 1.2;
}

.notif-stat-value.unread {
    color: var(--accent-color);
}

.notif-stat-value.alerts {
    color: var(--danger-color);
}

.notif-stat-label {
    font-size: 0.6875rem;
    color: var(--muted-color);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/*--------------------------------------------------------------
# Notification Categories
--------------------------------------------------------------*/
.notif-categories {
    display: flex;
    flex-direction: column;
}

.notif-category {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.15s ease;
}

.notif-category:last-child {
    border-bottom: none;
}

.notif-category:hover {
    background: var(--background-color);
}

.notif-category.active {
    background: color-mix(in srgb, var(--accent-color), transparent 90%);
    border-left: 3px solid var(--accent-color);
}

.notif-category.active .notif-category-label {
    color: var(--accent-color);
    font-weight: 600;
}

.notif-category-icon {
    font-size: 1.125rem;
    color: var(--muted-color);
}

.notif-category-label {
    flex: 1;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--default-color);
}

.notif-category-count {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted-color);
    padding: 0.125rem 0.5rem;
    background: var(--background-color);
    border-radius: var(--radius-full);
}

/*--------------------------------------------------------------
# Notification Inbox
--------------------------------------------------------------*/
.notif-inbox-card .card-header {
    border-bottom: 1px solid var(--border-color);
}

.notif-section {
    border-bottom: 1px solid var(--border-color);
}

.notif-section:last-child {
    border-bottom: none;
}

.notif-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    background: var(--background-color);
    border-bottom: 1px solid var(--border-color);
}

.notif-section-header span:first-child {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--heading-color);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.notif-section-count {
    font-size: 0.6875rem;
    color: var(--muted-color);
}

/*--------------------------------------------------------------
# Notification Item
--------------------------------------------------------------*/
.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.15s ease;
}

.notif-item:hover {
    background: var(--background-color);
}

.notif-item.unread {
    background: color-mix(in srgb, var(--accent-color), transparent 96%);
}

.notif-item.unread:hover {
    background: color-mix(in srgb, var(--accent-color), transparent 93%);
}

.notif-item.unread .notif-item-header h6 {
    font-weight: 600;
}

.notif-item:last-child {
    border-bottom: none;
}

.notif-item-select {
    flex-shrink: 0;
    padding-top: 0.25rem;
}

.notif-item-avatar {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
}

.notif-item-avatar.primary {
    background: color-mix(in srgb, var(--accent-color), transparent 90%);
    color: var(--accent-color);
}

.notif-item-avatar.success {
    background: var(--success-color-light);
    color: var(--success-color);
}

.notif-item-avatar.danger {
    background: var(--danger-color-light);
    color: var(--danger-color);
}

.notif-item-avatar.warning {
    background: var(--warning-color-light);
    color: var(--warning-color);
}

.notif-item-avatar.info {
    background: var(--info-color-light);
    color: var(--info-color);
}

.notif-item-avatar.secondary {
    background: color-mix(in srgb, var(--muted-color), transparent 85%);
    color: var(--muted-color);
}

.notif-item-content {
    flex: 1;
    min-width: 0;
}

.notif-item-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.375rem;
}

.notif-item-header h6 {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--heading-color);
    margin: 0;
}

.notif-item-time {
    font-size: 0.75rem;
    color: var(--muted-color);
    white-space: nowrap;
}

.notif-item-content > p {
    font-size: 0.875rem;
    color: var(--default-color);
    margin: 0 0 0.75rem;
    line-height: 1.5;
}

.notif-item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.notif-item-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    border-radius: var(--radius-sm);
}

.notif-item-tag.primary {
    background: color-mix(in srgb, var(--accent-color), transparent 90%);
    color: var(--accent-color);
}

.notif-item-tag.success {
    background: var(--success-color-light);
    color: var(--success-color);
}

.notif-item-tag.danger {
    background: var(--danger-color-light);
    color: var(--danger-color);
}

.notif-item-tag.warning {
    background: var(--warning-color-light);
    color: var(--warning-color);
}

.notif-item-tag.info {
    background: var(--info-color-light);
    color: var(--info-color);
}

.notif-item-tag.secondary {
    background: color-mix(in srgb, var(--muted-color), transparent 85%);
    color: var(--muted-color);
}

.notif-item-actions {
    display: flex;
    gap: 0.5rem;
}

/*--------------------------------------------------------------
# Notification Preferences Modal
--------------------------------------------------------------*/
.notif-pref-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.notif-pref-item:last-child {
    border-bottom: none;
}

.notif-pref-info {
    flex: 1;
    min-width: 0;
}

.notif-pref-info h6 {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--heading-color);
    margin: 0 0 0.125rem;
}

.notif-pref-info p {
    font-size: 0.75rem;
    color: var(--muted-color);
    margin: 0;
}

/*--------------------------------------------------------------
# Responsive Adjustments
--------------------------------------------------------------*/
@media (max-width: 767.98px) {
    .notif-item-header {
        flex-direction: column;
        gap: 0.25rem;
    }

    .notif-item-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .notif-item-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 575.98px) {
    .notif-item {
        flex-wrap: wrap;
    }

    .notif-item-select {
        order: -1;
    }

    .notif-item-avatar {
        order: -1;
    }

    .notif-item-content {
        width: 100%;
        margin-left: calc(44px + 1rem + 1.125rem);
        margin-top: -44px;
    }
}

/*--------------------------------------------------------------
# User Stats Cards
--------------------------------------------------------------*/
.user-stat-card .card-body {
    padding: 1.25rem;
}

.user-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.user-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--heading-color);
    line-height: 1.2;
}

.user-stat-label {
    font-size: 0.8125rem;
    color: var(--muted-color);
}

/*--------------------------------------------------------------
# User Avatar with Status
--------------------------------------------------------------*/
.user-avatar {
    position: relative;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    -o-object-fit: cover;
    object-fit: cover;
}

.user-status-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--card-bg);
}

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

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

.user-status-badge.offline {
    background-color: var(--muted-color);
}

/*--------------------------------------------------------------
# User Table
--------------------------------------------------------------*/
.table tbody tr {
    transition: background-color 0.15s ease;
}

.table .form-check {
    margin: 0;
    min-height: auto;
}

.btn-group .btn-light {
    background-color: transparent;
    border-color: transparent;
    padding: 0.25rem 0.5rem;
}

.btn-group .btn-light:hover {
    background-color: var(--background-color);
}

/*--------------------------------------------------------------
# Profile Header Card (User View)
--------------------------------------------------------------*/
.profile-header-card {
    overflow: hidden;
}

.profile-header-banner {
    height: 120px;
    background: linear-gradient(
        135deg,
        var(--accent-color),
        color-mix(in srgb, var(--accent-color), #0a1628 40%)
    );
}

.profile-header-content {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 0 1.5rem 1.5rem;
    margin-top: -40px;
    flex-wrap: wrap;
}

.profile-header-avatar {
    position: relative;
    flex-shrink: 0;
}

.profile-header-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    -o-object-fit: cover;
    object-fit: cover;
    border: 4px solid var(--card-bg);
    box-shadow: var(--shadow-md);
}

.profile-status-badge {
    position: absolute;
    bottom: 8px;
    right: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 3px solid var(--card-bg);
}

.profile-header-info {
    flex: 1;
    min-width: 200px;
    padding-top: 50px;
}

.profile-header-name {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.profile-header-name h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--heading-color);
    margin: 0;
}

.profile-header-title {
    color: var(--muted-color);
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
}

.profile-header-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--muted-color);
    font-size: 0.8125rem;
}

.profile-header-meta span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.profile-header-meta i {
    font-size: 0.875rem;
}

.profile-header-stats {
    display: flex;
    gap: 1rem;
    padding-top: 50px;
    margin-left: auto;
}

.profile-stat {
    text-align: center;
    padding: 0.75rem 1rem;
    background: var(--background-color);
    border-radius: var(--radius-md);
    min-width: 70px;
}

.profile-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--heading-color);
    line-height: 1.2;
}

.profile-stat-label {
    font-size: 0.6875rem;
    color: var(--muted-color);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

@media (max-width: 767.98px) {
    .profile-header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-header-info {
        padding-top: 0;
    }

    .profile-header-name {
        justify-content: center;
    }

    .profile-header-meta {
        justify-content: center;
    }

    .profile-header-stats {
        padding-top: 0;
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }
}

/*--------------------------------------------------------------
# Info List
--------------------------------------------------------------*/
.info-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-list-item {
    display: flex;
    gap: 1rem;
}

.info-list-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: var(--background-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-color);
    flex-shrink: 0;
}

.info-list-content {
    flex: 1;
    min-width: 0;
}

.info-list-label {
    font-size: 0.75rem;
    color: var(--muted-color);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 0.125rem;
}

.info-list-value {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--heading-color);
}

/*--------------------------------------------------------------
# Security Checklist
--------------------------------------------------------------*/
.security-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.security-checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.security-checklist-item:last-child {
    border-bottom: none;
}

.security-checklist-icon {
    font-size: 1.125rem;
    flex-shrink: 0;
}

.security-checklist-icon.success {
    color: var(--success-color);
}

.security-checklist-icon.warning {
    color: var(--warning-color);
}

.security-checklist-icon.danger {
    color: var(--danger-color);
}

.security-checklist-content {
    flex: 1;
    min-width: 0;
}

.security-checklist-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--heading-color);
}

.security-checklist-desc {
    font-size: 0.75rem;
    color: var(--muted-color);
}

/*--------------------------------------------------------------
# Profile Tabs
--------------------------------------------------------------*/
.profile-tabs {
    border-bottom: none;
    padding: 0 1.5rem;
    gap: 0.5rem;
}

.profile-tabs .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    padding: 1rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-color);
    background: transparent;
}

.profile-tabs .nav-link:hover {
    border-color: transparent;
    color: var(--heading-color);
}

.profile-tabs .nav-link.active {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: transparent;
}

.profile-tabs .nav-link i {
    font-size: 1rem;
}

/*--------------------------------------------------------------
# Section Title
--------------------------------------------------------------*/
.section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

/*--------------------------------------------------------------
# Mini Stat Cards
--------------------------------------------------------------*/
.mini-stat-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--background-color);
    border-radius: var(--radius-md);
}

.mini-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.mini-stat-icon.primary {
    background: color-mix(in srgb, var(--accent-color), transparent 90%);
    color: var(--accent-color);
}

.mini-stat-icon.success {
    background: var(--success-color-light);
    color: var(--success-color);
}

.mini-stat-icon.warning {
    background: var(--warning-color-light);
    color: var(--warning-color);
}

.mini-stat-icon.info {
    background: var(--info-color-light);
    color: var(--info-color);
}

.mini-stat-icon.danger {
    background: var(--danger-color-light);
    color: var(--danger-color);
}

.mini-stat-content {
    flex: 1;
    min-width: 0;
}

.mini-stat-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--heading-color);
    line-height: 1.2;
}

.mini-stat-label {
    font-size: 0.6875rem;
    color: var(--muted-color);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/*--------------------------------------------------------------
# Team Member List
--------------------------------------------------------------*/
.team-member-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.team-member-item {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--card-bg);
    transition: transform 0.15s ease;
}

.team-member-item:hover {
    transform: translateY(-2px);
}

.team-member-item img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}

.team-member-more {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background-color);
    color: var(--muted-color);
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
}

.team-member-more:hover {
    background: var(--border-color);
    color: var(--heading-color);
}

/*--------------------------------------------------------------
# Session List
--------------------------------------------------------------*/
.session-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.session-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--background-color);
    border-radius: var(--radius-md);
}

.session-device {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-color);
    font-size: 1.125rem;
    flex-shrink: 0;
}

.session-info {
    flex: 1;
    min-width: 0;
}

.session-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--heading-color);
}

.session-details {
    font-size: 0.75rem;
    color: var(--muted-color);
}

.session-status {
    flex-shrink: 0;
}

/*--------------------------------------------------------------
# Activity Timeline
--------------------------------------------------------------*/
.activity-timeline {
    position: relative;
    padding-left: 1.5rem;
}

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

.activity-timeline-item {
    position: relative;
    padding-bottom: 1.5rem;
}

.activity-timeline-item:last-child {
    padding-bottom: 0;
}

.activity-timeline-marker {
    position: absolute;
    left: -1.5rem;
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--card-bg);
}

.activity-timeline-marker.primary {
    background: var(--accent-color);
}

.activity-timeline-marker.success {
    background: var(--success-color);
}

.activity-timeline-marker.warning {
    background: var(--warning-color);
}

.activity-timeline-marker.info {
    background: var(--info-color);
}

.activity-timeline-marker.danger {
    background: var(--danger-color);
}

.activity-timeline-content {
    padding-left: 0.5rem;
}

.activity-timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.25rem;
}

.activity-timeline-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--heading-color);
}

.activity-timeline-time {
    font-size: 0.75rem;
    color: var(--muted-color);
    white-space: nowrap;
}

.activity-timeline-desc {
    font-size: 0.8125rem;
    color: var(--muted-color);
    margin: 0;
}

/*--------------------------------------------------------------
# Project Cards
--------------------------------------------------------------*/
.project-card {
    padding: 1.25rem;
    background: var(--background-color);
    border-radius: var(--radius-md);
    height: 100%;
}

.project-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.project-card-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
}

.project-card-icon.primary {
    background: color-mix(in srgb, var(--accent-color), transparent 90%);
    color: var(--accent-color);
}

.project-card-icon.success {
    background: var(--success-color-light);
    color: var(--success-color);
}

.project-card-icon.warning {
    background: var(--warning-color-light);
    color: var(--warning-color);
}

.project-card-icon.info {
    background: var(--info-color-light);
    color: var(--info-color);
}

.project-card-icon.secondary {
    background: color-mix(in srgb, var(--muted-color), transparent 85%);
    color: var(--muted-color);
}

.project-card-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 0.375rem;
}

.project-card-desc {
    font-size: 0.8125rem;
    color: var(--muted-color);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.project-card-progress {
    margin-bottom: 1rem;
}

.project-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-card-team {
    display: flex;
}

.project-card-team img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--background-color);
    margin-left: -8px;
    -o-object-fit: cover;
    object-fit: cover;
}

.project-card-team img:first-child {
    margin-left: 0;
}

/*--------------------------------------------------------------
# Permissions Grid
--------------------------------------------------------------*/
.permissions-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.permission-module {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--background-color);
    border-radius: var(--radius-md);
}

.permission-module-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 140px;
    font-weight: 500;
    color: var(--heading-color);
}

.permission-module-header i {
    font-size: 1.125rem;
    color: var(--muted-color);
}

.permission-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.permission-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
}

.permission-badge.granted {
    background: var(--success-color-light);
    color: var(--success-color);
}

.permission-badge.denied {
    background: var(--danger-color-light);
    color: var(--danger-color);
}

.permission-badge i {
    font-size: 0.625rem;
}

/*--------------------------------------------------------------
# Team Membership List
--------------------------------------------------------------*/
.team-membership-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.team-membership-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--background-color);
    border-radius: var(--radius-md);
}

.team-membership-color {
    width: 4px;
    height: 40px;
    border-radius: 2px;
    flex-shrink: 0;
}

.team-membership-info {
    flex: 1;
    min-width: 0;
}

.team-membership-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--heading-color);
}

.team-membership-role {
    font-size: 0.75rem;
    color: var(--muted-color);
}

/*--------------------------------------------------------------
# Avatar Upload
--------------------------------------------------------------*/
.avatar-upload {
    position: relative;
    display: inline-block;
}

.avatar-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--border-color);
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}

.avatar-edit {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.avatar-edit:hover {
    background-color: color-mix(in srgb, var(--accent-color), black 15%);
}

/*--------------------------------------------------------------
# Legacy Profile Card Styles
--------------------------------------------------------------*/
.profile-header {
    position: relative;
    margin-bottom: 4rem;
}

.profile-cover {
    height: 200px;
    background: linear-gradient(
        135deg,
        var(--accent-color),
        color-mix(in srgb, var(--accent-color), black 30%)
    );
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.profile-cover img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}

.profile-avatar {
    position: absolute;
    bottom: -50px;
    left: 2rem;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--card-bg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}

.profile-info {
    padding-left: 170px;
    padding-top: 1rem;
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 0.25rem;
}

.profile-role {
    color: var(--muted-color);
    font-size: 0.875rem;
}

/*--------------------------------------------------------------
# User View Profile Header (Legacy)
--------------------------------------------------------------*/
.user-profile-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
}

.user-profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    -o-object-fit: cover;
    object-fit: cover;
    flex-shrink: 0;
}

.user-profile-info {
    flex: 1;
    min-width: 0;
}

.user-profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 0.25rem;
}

.user-profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--muted-color);
    font-size: 0.875rem;
    margin-top: 0.75rem;
}

.user-profile-meta i {
    margin-right: 0.25rem;
}

/*--------------------------------------------------------------
# Settings Navigation
--------------------------------------------------------------*/
.settings-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--default-color);
    border-radius: var(--radius-md);
    transition: all 0.15s ease;
}

.settings-nav .nav-link i {
    font-size: 1.125rem;
    color: var(--muted-color);
}

.settings-nav .nav-link:hover {
    background-color: var(--background-color);
}

.settings-nav .nav-link.active {
    background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
    color: var(--accent-color);
}

.settings-nav .nav-link.active i {
    color: var(--accent-color);
}

/*--------------------------------------------------------------
# Activity Feed (Legacy)
--------------------------------------------------------------*/
.activity-feed {
    position: relative;
}

.activity-feed-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.activity-feed-item:last-child {
    border-bottom: none;
}

.activity-feed-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.activity-feed-content {
    flex: 1;
    min-width: 0;
}

.activity-feed-title {
    font-weight: 500;
    color: var(--heading-color);
    margin-bottom: 0.25rem;
}

.activity-feed-time {
    font-size: 0.75rem;
    color: var(--muted-color);
}

/*--------------------------------------------------------------
# Notification Settings
--------------------------------------------------------------*/
.notification-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-info {
    flex: 1;
    min-width: 0;
    padding-right: 1rem;
}

.notification-title {
    font-weight: 500;
    color: var(--heading-color);
    margin-bottom: 0.25rem;
}

.notification-desc {
    font-size: 0.8125rem;
    color: var(--muted-color);
}

/*--------------------------------------------------------------
# Roles & Permissions
--------------------------------------------------------------*/
.role-card {
    height: 100%;
    border: 1px solid var(--border-color);
    transition: all 0.15s ease;
}

.role-card:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-md);
}

.role-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.role-title {
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 0.5rem;
}

.role-desc {
    font-size: 0.8125rem;
    color: var(--muted-color);
    margin-bottom: 1rem;
}

.role-users {
    display: flex;
    align-items: center;
}

.role-users .avatar-group {
    display: flex;
}

.role-users .avatar-group img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--card-bg);
    margin-left: -8px;
}

.role-users .avatar-group img:first-child {
    margin-left: 0;
}

.role-users .avatar-more {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--background-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--muted-color);
    margin-left: -8px;
    border: 2px solid var(--card-bg);
}

.permissions-table th {
    font-weight: 500;
    font-size: 0.8125rem;
    color: var(--muted-color);
}

.permissions-table td {
    vertical-align: middle;
}

/*--------------------------------------------------------------
# Secondary Light Background
--------------------------------------------------------------*/
.bg-secondary-light {
    background-color: color-mix(
        in srgb,
        var(--muted-color),
        transparent 85%
    ) !important;
}

/*--------------------------------------------------------------
# Edit Navigation
--------------------------------------------------------------*/
.edit-nav-card {
    position: sticky;
    top: 90px;
}

.edit-nav {
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
}

.edit-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--default-color);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.15s ease;
}

.edit-nav-item i {
    font-size: 1.125rem;
    color: var(--muted-color);
}

.edit-nav-item:hover {
    background-color: var(--background-color);
    color: var(--heading-color);
}

.edit-nav-item.active {
    background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
    color: var(--accent-color);
}

.edit-nav-item.active i {
    color: var(--accent-color);
}

.edit-nav-item.text-danger:hover {
    background-color: var(--danger-color-light);
}

.edit-nav-item.text-danger i {
    color: var(--danger-color);
}

/*--------------------------------------------------------------
# Avatar Upload Wrapper
--------------------------------------------------------------*/
.avatar-upload-wrapper {
    position: relative;
    display: inline-block;
}

.avatar-upload-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--border-color);
}

.avatar-upload-preview img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}

.avatar-upload-btn {
    line-height: 0;
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.15s ease;
    font-size: 0.875rem;
}

.avatar-upload-btn:hover {
    background-color: color-mix(in srgb, var(--accent-color), black 15%);
}

/*--------------------------------------------------------------
# Team Assignment List
--------------------------------------------------------------*/
.team-assignment-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.team-assignment-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--background-color);
    border-radius: var(--radius-md);
}

.team-assignment-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.team-assignment-color {
    width: 4px;
    height: 36px;
    border-radius: 2px;
    flex-shrink: 0;
}

.team-assignment-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--heading-color);
}

.team-assignment-role {
    font-size: 0.75rem;
    color: var(--muted-color);
}

/*--------------------------------------------------------------
# Security Options
--------------------------------------------------------------*/
.security-options {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.security-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.security-option:last-child {
    border-bottom: none;
}

.security-option-info {
    flex: 1;
    min-width: 0;
}

.security-option-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--heading-color);
}

.security-option-desc {
    font-size: 0.75rem;
    color: var(--muted-color);
}

/*--------------------------------------------------------------
# Danger Zone Actions
--------------------------------------------------------------*/
.danger-actions {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.danger-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid
        color-mix(in srgb, var(--danger-color), transparent 80%);
}

.danger-action:last-child {
    border-bottom: none;
}

.danger-action-info {
    flex: 1;
    min-width: 0;
}

.danger-action-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--heading-color);
}

.danger-action-desc {
    font-size: 0.75rem;
    color: var(--muted-color);
}

/*--------------------------------------------------------------
# Form Actions Bar
--------------------------------------------------------------*/
.form-actions-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    position: sticky;
    bottom: 1rem;
    box-shadow: var(--shadow-md);
    flex-wrap: wrap;
}

.form-actions-info {
    font-size: 0.8125rem;
}

.form-actions-buttons {
    display: flex;
    gap: 0.75rem;
}

@media (max-width: 575.98px) {
    .form-actions-bar {
        flex-direction: column;
        text-align: center;
    }

    .form-actions-buttons {
        width: 100%;
        justify-content: center;
    }
}

/*--------------------------------------------------------------
# Modal Icon Wrapper
--------------------------------------------------------------*/
.modal-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.modal-icon-wrapper.danger {
    background: var(--danger-color-light);
    color: var(--danger-color);
}

.modal-icon-wrapper.warning {
    background: var(--warning-color-light);
    color: var(--warning-color);
}

.modal-icon-wrapper.success {
    background: var(--success-color-light);
    color: var(--success-color);
}

.modal-icon-wrapper.info {
    background: var(--info-color-light);
    color: var(--info-color);
}

.modal-icon-wrapper.primary {
    background: color-mix(in srgb, var(--accent-color), transparent 90%);
    color: var(--accent-color);
}

/*--------------------------------------------------------------
# Color Light Backgrounds
--------------------------------------------------------------*/
.bg-danger-light {
    background-color: var(--danger-color-light) !important;
}

.bg-primary-light {
    background-color: color-mix(
        in srgb,
        var(--accent-color),
        transparent 90%
    ) !important;
}

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

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

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

/*--------------------------------------------------------------
# Settings User Card
--------------------------------------------------------------*/
.settings-user-card .card-body {
    padding: 1.5rem;
}

.settings-user-avatar {
    position: relative;
    display: inline-block;
}

.settings-user-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    -o-object-fit: cover;
    object-fit: cover;
    border: 3px solid var(--border-color);
}

.settings-avatar-edit {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.75rem;
    transition: background-color 0.15s ease;
}

.settings-avatar-edit:hover {
    background: color-mix(in srgb, var(--accent-color), black 15%);
}

/*--------------------------------------------------------------
# Settings Navigation Menu
--------------------------------------------------------------*/
.settings-nav-menu {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.settings-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--default-color);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.15s ease;
}

.settings-nav-link i {
    font-size: 1.125rem;
    color: var(--muted-color);
}

.settings-nav-link:hover {
    background-color: var(--background-color);
    color: var(--heading-color);
}

.settings-nav-link.active {
    background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
    color: var(--accent-color);
}

.settings-nav-link.active i {
    color: var(--accent-color);
}

.settings-nav-link.text-danger:hover {
    background-color: var(--danger-color-light);
}

.settings-nav-link.text-danger i {
    color: var(--danger-color);
}

/*--------------------------------------------------------------
# Settings Help Icon
--------------------------------------------------------------*/
.settings-help-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--accent-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/*--------------------------------------------------------------
# Settings Social List
--------------------------------------------------------------*/
.settings-social-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.settings-social-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--background-color);
    border-radius: var(--radius-md);
}

.settings-social-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.settings-social-icon.github {
    background: #24292e;
    color: white;
}

.settings-social-icon.linkedin {
    background: #0a66c2;
    color: white;
}

.settings-social-icon.twitter {
    background: #000;
    color: white;
}

.settings-social-info {
    flex: 1;
    min-width: 0;
}

.settings-social-info h6 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--heading-color);
    margin: 0;
}

.settings-social-info p {
    font-size: 0.8125rem;
    color: var(--muted-color);
    margin: 0;
}

/*--------------------------------------------------------------
# Settings 2FA Methods
--------------------------------------------------------------*/
.settings-2fa-methods {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.settings-2fa-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--background-color);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.settings-2fa-method.active {
    border-color: var(--success-color);
    background: var(--success-color-light);
}

.settings-2fa-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    color: var(--muted-color);
    flex-shrink: 0;
}

.settings-2fa-info {
    flex: 1;
    min-width: 0;
}

.settings-2fa-info h6 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--heading-color);
    margin: 0 0 0.25rem;
}

.settings-2fa-info p {
    font-size: 0.75rem;
    color: var(--muted-color);
    margin: 0;
}

/*--------------------------------------------------------------
# Settings Sessions List
--------------------------------------------------------------*/
.settings-sessions-list {
    display: flex;
    flex-direction: column;
}

.settings-session-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.settings-session-item:last-child {
    border-bottom: none;
}

.settings-session-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--background-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    color: var(--muted-color);
    flex-shrink: 0;
}

.settings-session-info {
    flex: 1;
    min-width: 0;
}

.settings-session-info h6 {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--heading-color);
    margin: 0 0 0.25rem;
}

.settings-session-info p {
    font-size: 0.75rem;
    color: var(--muted-color);
    margin: 0;
}

/*--------------------------------------------------------------
# Settings Theme Selector
--------------------------------------------------------------*/
.settings-theme-selector {
    display: flex;
    gap: 1rem;
}

.settings-theme-option {
    cursor: pointer;
    text-align: center;
}

.settings-theme-option input {
    display: none;
}

.settings-theme-option span {
    display: block;
    font-size: 0.8125rem;
    color: var(--muted-color);
    margin-top: 0.5rem;
}

.settings-theme-preview {
    width: 80px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 2px solid var(--border-color);
    transition: all 0.15s ease;
}

.settings-theme-preview.light {
    background: #ffffff;
    color: #fbbf24;
}

.settings-theme-preview.dark {
    background: #1e293b;
    color: #94a3b8;
}

.settings-theme-preview.system {
    background: linear-gradient(135deg, #ffffff 50%, #1e293b 50%);
    color: #64748b;
}

input:checked + .settings-theme-preview {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px
        color-mix(in srgb, var(--accent-color), transparent 80%);
}

.settings-theme-option:hover .settings-theme-preview {
    border-color: var(--accent-color);
}

/*--------------------------------------------------------------
# Settings Notification Groups
--------------------------------------------------------------*/
.settings-notification-header {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.settings-notification-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.settings-notification-item:last-child {
    border-bottom: none;
}

.settings-notification-item h6 {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--heading-color);
    margin: 0 0 0.125rem;
}

.settings-notification-item p {
    font-size: 0.75rem;
    color: var(--muted-color);
    margin: 0;
}

/*--------------------------------------------------------------
# Settings Plan Card
--------------------------------------------------------------*/
.settings-plan-card {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 1.5rem;
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--accent-color), transparent 95%),
        color-mix(in srgb, var(--accent-color), transparent 90%)
    );
    border-radius: var(--radius-lg);
    border: 1px solid color-mix(in srgb, var(--accent-color), transparent 80%);
}

.settings-plan-info {
    flex: 1;
    min-width: 200px;
}

.settings-plan-info h4 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--heading-color);
    margin: 0.5rem 0 0.25rem;
}

.settings-plan-info h4 span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--muted-color);
}

.settings-plan-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--accent-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.settings-plan-features {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.settings-plan-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--default-color);
}

.settings-plan-feature i {
    font-size: 1rem;
}

.settings-plan-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    justify-content: center;
}

/*--------------------------------------------------------------
# Settings Payment List
--------------------------------------------------------------*/
.settings-payment-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.settings-payment-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    background: var(--background-color);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.settings-payment-item.active {
    border-color: var(--accent-color);
}

.settings-payment-card {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.settings-payment-card > i {
    font-size: 1.5rem;
    color: var(--muted-color);
}

.settings-payment-info h6 {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--heading-color);
    margin: 0;
}

.settings-payment-info p {
    font-size: 0.75rem;
    color: var(--muted-color);
    margin: 0;
}

/*--------------------------------------------------------------
# Settings Integrations List
--------------------------------------------------------------*/
.settings-integrations-list {
    display: flex;
    flex-direction: column;
}

.settings-integration-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.settings-integration-item:last-child {
    border-bottom: none;
}

.settings-integration-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.settings-integration-icon.slack {
    background: #4a154b;
    color: white;
}

.settings-integration-icon.google {
    background: #4285f4;
    color: white;
}

.settings-integration-icon.github {
    background: #24292e;
    color: white;
}

.settings-integration-icon.dropbox {
    background: #0061ff;
    color: white;
}

.settings-integration-info {
    flex: 1;
    min-width: 0;
}

.settings-integration-info h6 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--heading-color);
    margin: 0 0 0.25rem;
}

.settings-integration-info p {
    font-size: 0.8125rem;
    color: var(--muted-color);
    margin: 0;
}

.settings-integration-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/*--------------------------------------------------------------
# Settings API Key
--------------------------------------------------------------*/
.settings-api-key {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    background: var(--background-color);
    border-radius: var(--radius-md);
}

.settings-api-key h6 {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--heading-color);
    margin: 0 0 0.375rem;
}

.settings-api-key code {
    font-size: 0.8125rem;
    padding: 0.25rem 0.5rem;
    background: var(--card-bg);
    border-radius: var(--radius-sm);
    color: var(--default-color);
}

.settings-api-key-actions {
    display: flex;
    gap: 0.5rem;
}

/*--------------------------------------------------------------
# Settings Danger Section
--------------------------------------------------------------*/
.settings-danger-section {
    display: flex;
    flex-direction: column;
}

.settings-danger-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid
        color-mix(in srgb, var(--danger-color), transparent 80%);
}

.settings-danger-item:last-child {
    border-bottom: none;
}

.settings-danger-info {
    flex: 1;
    min-width: 0;
}

.settings-danger-info h6 {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--heading-color);
    margin: 0 0 0.25rem;
}

.settings-danger-info p {
    font-size: 0.8125rem;
    color: var(--muted-color);
    margin: 0;
}

/*--------------------------------------------------------------
# Responsive Adjustments
--------------------------------------------------------------*/
@media (max-width: 991.98px) {
    .settings-nav-menu {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .settings-nav-link {
        flex: 1;
        min-width: 100px;
        justify-content: center;
        text-align: center;
    }

    .settings-nav-link span {
        display: none;
    }

    .settings-nav-link i {
        margin: 0;
    }
}

@media (max-width: 575.98px) {
    .settings-plan-card {
        flex-direction: column;
    }

    .settings-plan-actions {
        flex-direction: row;
        width: 100%;
    }

    .settings-danger-item {
        flex-direction: column;
        align-items: stretch;
    }

    .settings-danger-item button {
        width: 100%;
    }
}

/*--------------------------------------------------------------
# Roles List
--------------------------------------------------------------*/
.roles-list {
    display: flex;
    flex-direction: column;
}

.role-list-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.15s ease;
}

.role-list-item:last-child {
    border-bottom: none;
}

.role-list-item:hover {
    background: var(--background-color);
}

.role-list-item.active {
    background: color-mix(in srgb, var(--accent-color), transparent 94%);
    border-left: 3px solid var(--accent-color);
    padding-left: calc(1.25rem - 3px);
}

.role-list-item.active .role-list-content h6 {
    color: var(--accent-color);
}

.role-list-item > i {
    color: var(--muted-color);
    font-size: 0.75rem;
    margin-left: auto;
}

.role-list-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.role-list-icon.danger {
    background: var(--danger-color-light);
    color: var(--danger-color);
}

.role-list-icon.warning {
    background: var(--warning-color-light);
    color: var(--warning-color);
}

.role-list-icon.info {
    background: var(--info-color-light);
    color: var(--info-color);
}

.role-list-icon.primary {
    background: color-mix(in srgb, var(--accent-color), transparent 90%);
    color: var(--accent-color);
}

.role-list-icon.success {
    background: var(--success-color-light);
    color: var(--success-color);
}

.role-list-icon.secondary {
    background: color-mix(in srgb, var(--muted-color), transparent 85%);
    color: var(--muted-color);
}

.role-list-content {
    flex: 1;
    min-width: 0;
}

.role-list-content h6 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--heading-color);
    margin: 0;
}

.role-list-content span {
    font-size: 0.75rem;
    color: var(--muted-color);
}

/*--------------------------------------------------------------
# Role Header Icon
--------------------------------------------------------------*/
.role-header-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.role-header-icon.danger {
    background: var(--danger-color-light);
    color: var(--danger-color);
}

.role-header-icon.warning {
    background: var(--warning-color-light);
    color: var(--warning-color);
}

.role-header-icon.info {
    background: var(--info-color-light);
    color: var(--info-color);
}

.role-header-icon.primary {
    background: color-mix(in srgb, var(--accent-color), transparent 90%);
    color: var(--accent-color);
}

/*--------------------------------------------------------------
# Permissions Table
--------------------------------------------------------------*/
.permissions-table-wrapper {
    overflow-x: auto;
}

.permissions-table {
    width: 100%;
    border-collapse: collapse;
}

.permissions-table th,
.permissions-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.permissions-table thead th {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--muted-color);
    background: var(--background-color);
    white-space: nowrap;
}

.permissions-table th.perm-module {
    width: 40%;
}

.permissions-table th.perm-action,
.permissions-table th.perm-toggle {
    width: 12%;
    text-align: center;
}

.permissions-table tbody td {
    font-size: 0.875rem;
    color: var(--default-color);
    vertical-align: middle;
}

.permissions-table tbody td:not(:first-child) {
    text-align: center;
}

.permissions-table tbody tr:hover {
    background: var(--background-color);
}

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

.permissions-table .form-check-input {
    margin: 0;
    cursor: pointer;
}

.perm-section td {
    font-size: 0.8125rem !important;
    font-weight: 600;
    color: var(--heading-color) !important;
    background: var(--background-color);
    padding: 0.625rem 1rem !important;
}

.perm-section td i {
    color: var(--muted-color);
}

.perm-section:hover td {
    background: var(--background-color) !important;
}

.perm-na {
    color: var(--light-color);
    font-size: 0.75rem;
}

/*--------------------------------------------------------------
# Role Users List
--------------------------------------------------------------*/
.role-users-list {
    display: flex;
    flex-direction: column;
}

.role-user-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.role-user-item:last-child {
    border-bottom: none;
}

.role-user-item img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    -o-object-fit: cover;
    object-fit: cover;
    flex-shrink: 0;
}

.role-user-info {
    flex: 1;
    min-width: 0;
}

.role-user-info h6 {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--heading-color);
    margin: 0;
}

.role-user-info span {
    font-size: 0.75rem;
    color: var(--muted-color);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/*--------------------------------------------------------------
# Role Color Picker
--------------------------------------------------------------*/
.role-color-picker {
    display: flex;
    gap: 0.5rem;
}

.role-color-option {
    cursor: pointer;
}

.role-color-option input {
    display: none;
}

.role-color-swatch {
    display: block;
    width: 28px;
    height: 28px;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    transition: all 0.15s ease;
}

.role-color-swatch.danger {
    background: var(--danger-color);
}

.role-color-swatch.warning {
    background: var(--warning-color);
}

.role-color-swatch.primary {
    background: var(--accent-color);
}

.role-color-swatch.info {
    background: var(--info-color);
}

.role-color-swatch.success {
    background: var(--success-color);
}

.role-color-swatch.secondary {
    background: var(--muted-color);
}

input:checked + .role-color-swatch {
    border-color: var(--heading-color);
    box-shadow: 0 0 0 2px
        color-mix(in srgb, var(--heading-color), transparent 80%);
}

/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/
@media (max-width: 991.98px) {
    .permissions-table th.perm-module {
        width: auto;
        min-width: 180px;
    }

    .permissions-table th.perm-action,
    .permissions-table th.perm-toggle {
        width: auto;
        min-width: 70px;
    }
}

/*--------------------------------------------------------------
# Invoice List - Revenue Overview
--------------------------------------------------------------*/
.invoice-revenue-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.invoice-revenue-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--heading-color);
}

.invoice-revenue-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.invoice-revenue-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.invoice-revenue-stat-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.invoice-revenue-stat-icon.paid {
    background: var(--success-color-light);
    color: var(--success-color);
}

.invoice-revenue-stat-icon.pending {
    background: var(--warning-color-light);
    color: var(--warning-color);
}

.invoice-revenue-stat-icon.overdue {
    background: var(--danger-color-light);
    color: var(--danger-color);
}

.invoice-revenue-stat-info {
    min-width: 140px;
}

.invoice-revenue-stat-info span {
    display: block;
    font-size: 0.75rem;
    color: var(--muted-color);
}

.invoice-revenue-stat-info strong {
    font-size: 1rem;
    font-weight: 600;
    color: var(--heading-color);
}

.invoice-revenue-stat-bar {
    flex: 1;
    height: 8px;
    background: var(--background-color);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.invoice-revenue-stat-progress {
    height: 100%;
    border-radius: var(--radius-full);
}

.invoice-revenue-stat-progress.paid {
    background: var(--success-color);
}

.invoice-revenue-stat-progress.pending {
    background: var(--warning-color);
}

.invoice-revenue-stat-progress.overdue {
    background: var(--danger-color);
}

/*--------------------------------------------------------------
# Invoice Quick Stats
--------------------------------------------------------------*/
.invoice-quick-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.invoice-quick-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.invoice-quick-stat-icon.primary {
    background: color-mix(in srgb, var(--accent-color), transparent 90%);
    color: var(--accent-color);
}

.invoice-quick-stat-icon.secondary {
    background: color-mix(in srgb, var(--muted-color), transparent 85%);
    color: var(--muted-color);
}

.invoice-quick-stat-info span {
    display: block;
    font-size: 0.75rem;
    color: var(--muted-color);
}

.invoice-quick-stat-info strong {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--heading-color);
}

/*--------------------------------------------------------------
# Invoice Filters
--------------------------------------------------------------*/
.invoice-filters {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.invoice-filter-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.invoice-filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-color);
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.15s ease;
}

.invoice-filter-tab:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.invoice-filter-tab.active {
    color: white;
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.invoice-filter-tab.active .badge {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
}

.invoice-filter-tab .badge {
    font-size: 0.6875rem;
    padding: 0.125rem 0.375rem;
}

.invoice-filter-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/*--------------------------------------------------------------
# Invoice Cards Grid
--------------------------------------------------------------*/
.invoice-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: all 0.15s ease;
}

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

.invoice-card.paid {
    border-top: 3px solid var(--success-color);
}

.invoice-card.pending {
    border-top: 3px solid var(--warning-color);
}

.invoice-card.overdue {
    border-top: 3px solid var(--danger-color);
}

.invoice-card.draft {
    border-top: 3px solid var(--muted-color);
}

.invoice-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1rem 0;
}

.invoice-card-status {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}

.invoice-card-status.paid {
    background: var(--success-color-light);
    color: var(--success-color);
}

.invoice-card-status.pending {
    background: var(--warning-color-light);
    color: var(--warning-color);
}

.invoice-card-status.overdue {
    background: var(--danger-color-light);
    color: var(--danger-color);
}

.invoice-card-status.draft {
    background: color-mix(in srgb, var(--muted-color), transparent 85%);
    color: var(--muted-color);
}

.invoice-card-body {
    padding: 1rem;
}

.invoice-card-number {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-monospace, monospace);
    color: var(--accent-color);
    text-decoration: none;
    margin-bottom: 1rem;
}

.invoice-card-number:hover {
    text-decoration: underline;
}

.invoice-card-client {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.invoice-card-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--accent-color), transparent 90%);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    flex-shrink: 0;
}

.invoice-card-client-info {
    flex: 1;
    min-width: 0;
}

.invoice-card-client-info h6 {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--heading-color);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.invoice-card-client-info span {
    font-size: 0.75rem;
    color: var(--muted-color);
}

.invoice-card-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--heading-color);
}

.invoice-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--background-color);
    border-top: 1px solid var(--border-color);
}

.invoice-card-date,
.invoice-card-due {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: var(--muted-color);
}

/*--------------------------------------------------------------
# Invoice Summary Box (Modal)
--------------------------------------------------------------*/
.invoice-summary-box {
    background: var(--background-color);
    border-radius: var(--radius-md);
    padding: 1rem;
}

.invoice-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    color: var(--default-color);
}

.invoice-summary-row.total {
    border-top: 2px solid var(--border-color);
    margin-top: 0.5rem;
    padding-top: 1rem;
    font-weight: 700;
    font-size: 1rem;
}

/*--------------------------------------------------------------
# Invoice Document (View Page)
--------------------------------------------------------------*/
.invoice-document {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    padding: 2rem;
}

@media (min-width: 992px) {
    .invoice-document {
        padding: 3rem;
    }
}

.invoice-doc-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 2rem;
}

.invoice-doc-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.invoice-doc-brand img {
    height: 36px;
    width: auto;
}

.invoice-doc-brand span {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--heading-color);
}

.invoice-doc-title {
    text-align: right;
}

.invoice-doc-title h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--heading-color);
    letter-spacing: 0.05em;
    margin: 0 0 0.25rem;
}

.invoice-doc-number {
    font-size: 0.9375rem;
    font-family: var(--font-monospace, monospace);
    color: var(--muted-color);
    margin-bottom: 0.5rem;
}

.invoice-doc-status {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-sm);
}

.invoice-doc-status.paid {
    background: var(--success-color-light);
    color: var(--success-color);
}

.invoice-doc-status.pending {
    background: var(--warning-color-light);
    color: var(--warning-color);
}

.invoice-doc-status.overdue {
    background: var(--danger-color-light);
    color: var(--danger-color);
}

.invoice-doc-parties {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 575.98px) {
    .invoice-doc-parties {
        grid-template-columns: 1fr;
    }
}

.invoice-doc-party h6 {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted-color);
    margin: 0 0 0.5rem;
}

.invoice-doc-party p {
    font-size: 0.875rem;
    color: var(--muted-color);
    margin: 0 0 0.5rem;
    line-height: 1.6;
}

.invoice-doc-party p a {
    color: var(--accent-color);
}

.invoice-doc-party-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 0.5rem;
}

.invoice-doc-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 1rem;
    background: var(--background-color);
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
}

.invoice-doc-date span {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted-color);
    margin-bottom: 0.25rem;
}

.invoice-doc-date strong {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--heading-color);
}

.invoice-doc-items {
    margin-bottom: 2rem;
    overflow-x: auto;
}

.invoice-doc-items table {
    width: 100%;
    border-collapse: collapse;
}

.invoice-doc-items table th {
    padding: 1rem;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted-color);
    background: var(--background-color);
    border-bottom: 2px solid var(--border-color);
}

.invoice-doc-items table td {
    padding: 1rem;
    font-size: 0.9375rem;
    color: var(--default-color);
    border-bottom: 1px solid var(--border-color);
}

.invoice-doc-items table tbody tr:last-child td {
    border-bottom: none;
}

.invoice-item-name {
    font-weight: 500;
    color: var(--heading-color);
}

.invoice-item-desc {
    font-size: 0.8125rem;
    color: var(--muted-color);
    margin-top: 0.25rem;
}

.invoice-doc-totals {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-bottom: 2rem;
}

.invoice-doc-totals-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 300px;
    padding: 0.5rem 0;
    font-size: 0.9375rem;
    color: var(--default-color);
}

.invoice-doc-totals-row.discount span:last-child {
    color: var(--danger-color);
}

.invoice-doc-totals-row.total {
    border-top: 2px solid var(--border-color);
    margin-top: 0.5rem;
    padding-top: 1rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--heading-color);
}

.invoice-doc-totals-row.paid span:last-child {
    color: var(--success-color);
}

.invoice-doc-totals-row.balance {
    border-top: 1px solid var(--border-color);
    padding-top: 0.75rem;
    font-weight: 600;
}

.invoice-doc-notes {
    padding: 1rem;
    background: var(--background-color);
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
}

.invoice-doc-notes h6 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--muted-color);
    margin: 0 0 0.5rem;
}

.invoice-doc-notes p {
    font-size: 0.875rem;
    color: var(--default-color);
    margin: 0;
    line-height: 1.6;
}

.invoice-doc-footer {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.invoice-doc-footer-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--muted-color);
}

.invoice-doc-footer-item i {
    font-size: 1rem;
}

/*--------------------------------------------------------------
# Invoice Status Card (Sidebar)
--------------------------------------------------------------*/
.invoice-status-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--radius-md);
}

.invoice-status-card.paid {
    background: var(--success-color-light);
}

.invoice-status-card.pending {
    background: var(--warning-color-light);
}

.invoice-status-card.overdue {
    background: var(--danger-color-light);
}

.invoice-status-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.paid .invoice-status-icon {
    color: var(--success-color);
}

.pending .invoice-status-icon {
    color: var(--warning-color);
}

.overdue .invoice-status-icon {
    color: var(--danger-color);
}

.invoice-status-info h5 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
}

.paid .invoice-status-info h5 {
    color: var(--success-color);
}

.pending .invoice-status-info h5 {
    color: var(--warning-color);
}

.overdue .invoice-status-info h5 {
    color: var(--danger-color);
}

.invoice-status-info p {
    font-size: 0.8125rem;
    margin: 0;
}

.paid .invoice-status-info p {
    color: color-mix(in srgb, var(--success-color), black 20%);
}

.pending .invoice-status-info p {
    color: color-mix(in srgb, var(--warning-color), black 20%);
}

.overdue .invoice-status-info p {
    color: color-mix(in srgb, var(--danger-color), black 20%);
}

/*--------------------------------------------------------------
# Invoice Detail List
--------------------------------------------------------------*/
.invoice-detail-list {
    display: flex;
    flex-direction: column;
}

.invoice-detail-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.invoice-detail-item:last-child {
    border-bottom: none;
}

.invoice-detail-item span {
    font-size: 0.8125rem;
    color: var(--muted-color);
}

.invoice-detail-item strong {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--heading-color);
}

/*--------------------------------------------------------------
# Invoice Client Card
--------------------------------------------------------------*/
.invoice-client-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.invoice-client-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--accent-color), transparent 90%);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 600;
    flex-shrink: 0;
}

.invoice-client-info h6 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--heading-color);
    margin: 0;
}

.invoice-client-info span {
    font-size: 0.8125rem;
    color: var(--muted-color);
}

.invoice-client-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.invoice-client-stat {
    padding: 0.75rem;
    background: var(--background-color);
    border-radius: var(--radius-md);
    text-align: center;
}

.invoice-client-stat span {
    display: block;
    font-size: 0.6875rem;
    color: var(--muted-color);
    margin-bottom: 0.25rem;
}

.invoice-client-stat strong {
    font-size: 1rem;
    font-weight: 600;
    color: var(--heading-color);
}

/*--------------------------------------------------------------
# Invoice Activity
--------------------------------------------------------------*/
.invoice-activity {
    padding: 1rem 1.25rem;
}

.invoice-activity-item {
    display: flex;
    gap: 1rem;
    padding: 0.75rem 0;
    position: relative;
}

.invoice-activity-item:not(:last-child) {
    border-bottom: 1px solid var(--border-color);
}

.invoice-activity-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.invoice-activity-dot.success {
    background: var(--success-color);
}

.invoice-activity-dot.primary {
    background: var(--accent-color);
}

.invoice-activity-dot.info {
    background: var(--info-color);
}

.invoice-activity-dot.secondary {
    background: var(--muted-color);
}

.invoice-activity-content {
    flex: 1;
}

.invoice-activity-content p {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--heading-color);
    margin: 0;
}

.invoice-activity-content span {
    font-size: 0.75rem;
    color: var(--muted-color);
}

/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/
@media (max-width: 767.98px) {
    .invoice-revenue-stat {
        flex-wrap: wrap;
    }

    .invoice-revenue-stat-bar {
        width: 100%;
        order: 3;
    }

    .invoice-doc-header {
        flex-direction: column;
        gap: 1rem;
    }

    .invoice-doc-title {
        text-align: left;
    }

    .invoice-doc-footer {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
}

@media (max-width: 575.98px) {
    .invoice-filter-tabs {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
    }

    .invoice-filter-tab {
        white-space: nowrap;
    }
}

/*--------------------------------------------------------------
# Print Styles
--------------------------------------------------------------*/
@media print {
    .invoice-document {
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
    }

    .invoice-doc-items table th {
        background-color: #f8f9fa !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .invoice-doc-dates,
    .invoice-doc-notes {
        background-color: #f8f9fa !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/*--------------------------------------------------------------
# Pricing Hero
--------------------------------------------------------------*/
.pricing-hero {
    text-align: center;
    padding: 2rem;
    margin-bottom: 2rem;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.pricing-hero-content {
    max-width: 600px;
    margin: 0 auto;
}

.pricing-hero-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--heading-color);
    margin: 0 0 0.5rem;
}

.pricing-hero-content > p {
    color: var(--muted-color);
    margin: 0 0 1.5rem;
}

/*--------------------------------------------------------------
# Billing Toggle
--------------------------------------------------------------*/
.pricing-billing-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.pricing-billing-label {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--muted-color);
    transition: color 0.15s ease;
}

.pricing-billing-label.active {
    color: var(--heading-color);
}

.pricing-discount-badge {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--success-color);
    background: var(--success-color-light);
    border-radius: var(--radius-full);
    margin-left: 0.25rem;
}

.pricing-toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

.pricing-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.pricing-toggle-switch input:checked + .pricing-toggle-slider {
    background: var(--accent-color);
}

.pricing-toggle-switch input:checked + .pricing-toggle-slider::before {
    transform: translateX(22px);
}

.pricing-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--border-color);
    border-radius: var(--radius-full);
    transition: all 0.2s ease;
}

.pricing-toggle-slider::before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/*--------------------------------------------------------------
# Pricing Grid
--------------------------------------------------------------*/
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/*--------------------------------------------------------------
# Pricing Plan Card
--------------------------------------------------------------*/
.pricing-plan {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all 0.2s ease;
}

.pricing-plan:hover {
    border-color: var(--accent-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.pricing-plan.featured {
    border-color: var(--accent-color);
    border-width: 2px;
    box-shadow: 0 8px 32px
        color-mix(in srgb, var(--accent-color), transparent 85%);
}

.pricing-plan.featured .pricing-plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.25rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    background: var(--accent-color);
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.pricing-plan-header {
    text-align: center;
    margin-bottom: 1.25rem;
}

.pricing-plan-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

.pricing-plan-icon.starter {
    background: color-mix(in srgb, var(--muted-color), transparent 85%);
    color: var(--muted-color);
}

.pricing-plan-icon.pro {
    background: color-mix(in srgb, var(--accent-color), transparent 90%);
    color: var(--accent-color);
}

.pricing-plan-icon.business {
    background: var(--warning-color-light);
    color: var(--warning-color);
}

.pricing-plan-icon.enterprise {
    background: var(--info-color-light);
    color: var(--info-color);
}

.pricing-plan-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--heading-color);
    margin: 0 0 0.25rem;
}

.pricing-plan-desc {
    font-size: 0.8125rem;
    color: var(--muted-color);
    margin: 0;
}

.pricing-plan-price {
    text-align: center;
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.25rem;
}

.pricing-currency {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--heading-color);
    vertical-align: top;
}

.pricing-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--heading-color);
    line-height: 1;
    transition: all 0.15s ease;
}

.pricing-amount.changing {
    opacity: 0;
    transform: scale(0.9);
}

.pricing-period {
    font-size: 0.875rem;
    color: var(--muted-color);
}

.pricing-custom {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--heading-color);
}

.pricing-plan-features {
    margin-bottom: 1.5rem;
}

.pricing-feature {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    color: var(--default-color);
}

.pricing-feature i {
    font-size: 1rem;
    color: var(--success-color);
}

.pricing-feature.disabled {
    color: var(--muted-color);
}

.pricing-feature.disabled i {
    color: var(--muted-color);
}

.pricing-feature.disabled span {
    text-decoration: line-through;
}

/*--------------------------------------------------------------
# Pricing Comparison Table
--------------------------------------------------------------*/
.pricing-comparison {
    overflow-x: auto;
}

.pricing-comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

.pricing-comparison-table th,
.pricing-comparison-table td {
    padding: 0.875rem 1rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.875rem;
}

.pricing-comparison-table th {
    font-weight: 600;
    color: var(--heading-color);
    background: var(--background-color);
}

.pricing-comparison-table th.feature-col {
    text-align: left;
    width: 30%;
}

.pricing-comparison-table th.highlighted {
    background: color-mix(in srgb, var(--accent-color), transparent 92%);
    color: var(--accent-color);
}

.pricing-comparison-table td {
    color: var(--default-color);
}

.pricing-comparison-table td.feature-col {
    text-align: left;
    font-weight: 500;
}

.pricing-comparison-table td.feature-col i {
    color: var(--muted-color);
    margin-left: 0.375rem;
    font-size: 0.75rem;
    cursor: help;
}

.pricing-comparison-table td.highlighted {
    background: color-mix(in srgb, var(--accent-color), transparent 96%);
}

.pricing-comparison-table .category-row td {
    font-weight: 600;
    color: var(--heading-color);
    background: var(--background-color);
    text-align: left;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/*--------------------------------------------------------------
# Pricing FAQ
--------------------------------------------------------------*/
.pricing-faq {
    display: flex;
    flex-direction: column;
}

.pricing-faq-item {
    border-bottom: 1px solid var(--border-color);
}

.pricing-faq-item:last-child {
    border-bottom: none;
}

.pricing-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    cursor: pointer;
    transition: color 0.15s ease;
}

.pricing-faq-question span {
    font-weight: 500;
    color: var(--heading-color);
}

.pricing-faq-question i {
    color: var(--muted-color);
    transition: transform 0.2s ease;
}

.pricing-faq-question:hover span {
    color: var(--accent-color);
}

.pricing-faq-question:not(.collapsed) span {
    color: var(--accent-color);
}

.pricing-faq-question:not(.collapsed) i {
    transform: rotate(180deg);
}

.pricing-faq-answer {
    padding: 0 0 1rem;
    font-size: 0.9375rem;
    color: var(--muted-color);
    line-height: 1.6;
}

/*--------------------------------------------------------------
# Pricing Sidebar Cards
--------------------------------------------------------------*/
.pricing-guarantee-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    background: var(--success-color-light);
    color: var(--success-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 1rem;
}

.pricing-contact-card {
    background: linear-gradient(
        135deg,
        var(--accent-color),
        color-mix(in srgb, var(--accent-color), #000 20%)
    );
    border: none;
    color: white;
}

.pricing-contact-card h6 {
    color: white;
}

.pricing-contact-card p {
    color: rgba(255, 255, 255, 0.8) !important;
}

.pricing-contact-card .btn-primary {
    background: white;
    color: var(--accent-color);
    border-color: white;
}

.pricing-contact-card .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
}

.pricing-contact-info {
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.pricing-contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.9);
}

.pricing-contact-item i {
    font-size: 0.875rem;
}

.pricing-trust-logos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.pricing-trust-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    background: var(--background-color);
    border-radius: var(--radius-md);
    font-size: 1.5rem;
    color: var(--muted-color);
}

/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/
@media (max-width: 1199.98px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-plan.featured {
        order: -1;
    }
}

@media (max-width: 767.98px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-hero-content h2 {
        font-size: 1.5rem;
    }

    .pricing-amount {
        font-size: 2rem;
    }

    .pricing-comparison-table {
        font-size: 0.8125rem;
    }

    .pricing-comparison-table th,
    .pricing-comparison-table td {
        padding: 0.625rem 0.5rem;
    }

    .pricing-trust-logos {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575.98px) {
    .pricing-hero {
        padding: 1.5rem 1rem;
    }

    .pricing-billing-toggle {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/*--------------------------------------------------------------
# FAQ Hero
--------------------------------------------------------------*/
.faq-hero {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.faq-hero-content {
    max-width: 600px;
    margin: 0 auto;
}

.faq-hero-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--heading-color);
    margin: 0 0 0.5rem;
}

.faq-hero-content > p {
    color: var(--muted-color);
    margin: 0 0 1.5rem;
}

.faq-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0 1rem;
    transition: all 0.15s ease;
}

.faq-search-wrapper:focus-within {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px
        color-mix(in srgb, var(--accent-color), transparent 85%);
}

.faq-search-wrapper > i {
    color: var(--muted-color);
    font-size: 1.125rem;
}

.faq-search-wrapper kbd {
    font-size: 0.6875rem;
    padding: 0.25rem 0.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--muted-color);
}

.faq-search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    color: var(--default-color);
    outline: none;
}

.faq-search-input::-moz-placeholder {
    color: var(--muted-color);
}

.faq-search-input::placeholder {
    color: var(--muted-color);
}

.faq-popular-tags {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.faq-popular-tags > span {
    font-size: 0.8125rem;
    color: var(--muted-color);
}

.faq-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--default-color);
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    transition: all 0.15s ease;
}

.faq-tag:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
    background: color-mix(in srgb, var(--accent-color), transparent 95%);
}

/*--------------------------------------------------------------
# FAQ Quick Links
--------------------------------------------------------------*/
.faq-quick-links {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.faq-quick-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.25rem 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all 0.15s ease;
}

.faq-quick-link:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.faq-quick-link:hover .faq-quick-link-icon {
    background: color-mix(in srgb, var(--accent-color), transparent 90%);
    color: var(--accent-color);
}

.faq-quick-link-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--background-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--muted-color);
    margin-bottom: 0.75rem;
    transition: all 0.15s ease;
}

.faq-quick-link-content h6 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--heading-color);
    margin: 0 0 0.125rem;
}

.faq-quick-link-content span {
    font-size: 0.75rem;
    color: var(--muted-color);
}

/*--------------------------------------------------------------
# FAQ Sections
--------------------------------------------------------------*/
.faq-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.faq-section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--background-color);
}

.faq-section-header h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--heading-color);
    margin: 0;
}

.faq-section-header span {
    font-size: 0.75rem;
    color: var(--muted-color);
}

.faq-section-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: color-mix(in srgb, var(--accent-color), transparent 90%);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    flex-shrink: 0;
}

/*--------------------------------------------------------------
# FAQ Items
--------------------------------------------------------------*/
.faq-items {
    display: flex;
    flex-direction: column;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.faq-item-header:hover {
    background: var(--background-color);
}

.faq-item-header span {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--heading-color);
}

.faq-item-header i {
    color: var(--muted-color);
    font-size: 0.875rem;
    transition: transform 0.2s ease;
}

.faq-item-header:not(.collapsed) {
    background: var(--background-color);
}

.faq-item-header:not(.collapsed) span {
    color: var(--accent-color);
}

.faq-item-header:not(.collapsed) i {
    transform: rotate(45deg);
    color: var(--accent-color);
}

.faq-item-body {
    padding: 0 1.25rem 1.25rem;
    font-size: 0.9375rem;
    color: var(--default-color);
    line-height: 1.7;
}

.faq-item-body p {
    margin: 0 0 0.75rem;
}

.faq-item-body p:last-child {
    margin-bottom: 0;
}

.faq-item-body ul,
.faq-item-body ol {
    margin: 0 0 0.75rem;
    padding-left: 1.25rem;
}

.faq-item-body ul li,
.faq-item-body ol li {
    margin-bottom: 0.375rem;
}

.faq-item-body .alert {
    font-size: 0.875rem;
}

.faq-app-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.faq-payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.faq-payment-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
    color: var(--default-color);
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

.faq-payment-badge i {
    color: var(--muted-color);
}

.faq-integrations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.faq-integration {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    background: var(--background-color);
    border-radius: var(--radius-sm);
}

.faq-integration i {
    color: var(--accent-color);
}

/*--------------------------------------------------------------
# FAQ Sidebar
--------------------------------------------------------------*/
.faq-support-card .card-body {
    padding: 1.5rem;
}

.faq-support-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    background: color-mix(in srgb, var(--accent-color), transparent 90%);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

.faq-response-time {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.75rem;
    color: var(--muted-color);
}

.faq-response-time i {
    color: var(--success-color);
}

.faq-resources {
    display: flex;
    flex-direction: column;
}

.faq-resource-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.15s ease;
}

.faq-resource-item:last-child {
    border-bottom: none;
}

.faq-resource-item:hover {
    background: var(--background-color);
}

.faq-resource-item:hover > i {
    color: var(--accent-color);
}

.faq-resource-item > i:last-child {
    color: var(--muted-color);
    font-size: 0.875rem;
    margin-left: auto;
    transition: color 0.15s ease;
}

.faq-resource-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: var(--background-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--accent-color);
    flex-shrink: 0;
}

.faq-resource-content {
    flex: 1;
    min-width: 0;
}

.faq-resource-content h6 {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--heading-color);
    margin: 0;
}

.faq-resource-content span {
    font-size: 0.75rem;
    color: var(--muted-color);
}

.faq-status-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.faq-status-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--background-color);
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
}

.faq-status-dot {
    width: 8px;
    height: 8px;
    min-width: 8px;
    min-height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    flex-grow: 0;
}

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

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

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

.faq-status-name {
    flex: 1;
    color: var(--default-color);
}

.faq-status-uptime {
    font-weight: 500;
    color: var(--success-color);
    flex-shrink: 0;
}

/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/
@media (max-width: 1199.98px) {
    .faq-quick-links {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991.98px) {
    .faq-quick-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767.98px) {
    .faq-hero {
        padding: 2rem 1rem;
    }

    .faq-hero-content h2 {
        font-size: 1.5rem;
    }

    .faq-quick-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .faq-quick-link {
        padding: 1rem 0.75rem;
    }

    .faq-integrations-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .faq-item-header span {
        font-size: 0.875rem;
    }
}

@media (max-width: 575.98px) {
    .faq-search-wrapper kbd {
        display: none;
    }

    .faq-quick-links {
        grid-template-columns: 1fr;
    }

    .faq-quick-link {
        flex-direction: row;
        text-align: left;
    }

    .faq-quick-link-icon {
        margin-bottom: 0;
        margin-right: 0.75rem;
    }
}

/*--------------------------------------------------------------
# Timeline Controls
--------------------------------------------------------------*/
.timeline-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
}

.timeline-filters {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.timeline-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--default-color);
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.15s ease;
}

.timeline-filter-btn i {
    font-size: 0.875rem;
}

.timeline-filter-btn:hover {
    background: var(--background-color);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.timeline-filter-btn.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

/*--------------------------------------------------------------
# Timeline Wrapper
--------------------------------------------------------------*/
.timeline-wrapper {
    position: relative;
}

/*--------------------------------------------------------------
# Timeline Section
--------------------------------------------------------------*/
.timeline-section {
    margin-bottom: 2rem;
}

.timeline-section:last-of-type {
    margin-bottom: 0;
}

.timeline-section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.timeline-section-date {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--heading-color);
}

.timeline-section-count {
    font-size: 0.75rem;
    color: var(--muted-color);
    padding: 0.25rem 0.5rem;
    background: var(--background-color);
    border-radius: var(--radius-sm);
}

/*--------------------------------------------------------------
# Timeline List
--------------------------------------------------------------*/
.timeline-list {
    position: relative;
    padding-left: 2rem;
}

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

/*--------------------------------------------------------------
# Timeline Entry
--------------------------------------------------------------*/
.timeline-entry {
    position: relative;
    margin-bottom: 1.25rem;
}

.timeline-entry:last-child {
    margin-bottom: 0;
}

.timeline-entry-marker {
    position: absolute;
    left: -2rem;
    top: 1rem;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6875rem;
    color: white;
    z-index: 1;
}

.timeline-entry-marker.success {
    background: var(--success-color);
}

.timeline-entry-marker.primary {
    background: var(--accent-color);
}

.timeline-entry-marker.warning {
    background: var(--warning-color);
}

.timeline-entry-marker.danger {
    background: var(--danger-color);
}

.timeline-entry-marker.info {
    background: var(--info-color);
}

.timeline-entry-marker.secondary {
    background: var(--secondary-color);
}

.timeline-entry-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.timeline-entry-content:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.timeline-entry-content.alert-entry {
    border-color: color-mix(in srgb, var(--danger-color), transparent 70%);
}

.timeline-entry-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.timeline-entry-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.timeline-entry-user > img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    -o-object-fit: cover;
    object-fit: cover;
}

.timeline-system-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--background-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-color);
    font-size: 1rem;
}

.timeline-entry-meta {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.timeline-entry-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--heading-color);
}

.timeline-entry-action {
    font-size: 0.8125rem;
    color: var(--muted-color);
}

.timeline-entry-action a {
    color: var(--accent-color);
    font-weight: 500;
}

.timeline-entry-time {
    font-size: 0.75rem;
    color: var(--muted-color);
    white-space: nowrap;
}

.timeline-entry-body {
    padding: 1rem 1.25rem;
}

.timeline-entry-body > p {
    font-size: 0.875rem;
    color: var(--default-color);
    line-height: 1.6;
    margin: 0 0 0.75rem;
}

.timeline-entry-body > p:last-child {
    margin-bottom: 0;
}

.timeline-entry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.badge-success-subtle {
    background: color-mix(in srgb, var(--success-color), transparent 88%);
    color: var(--success-color);
}

.badge-neutral {
    background: var(--background-color);
    color: var(--muted-color);
}

.timeline-entry-footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--background-color);
    border-top: 1px solid var(--border-color);
}

.timeline-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.625rem;
    font-size: 0.75rem;
    color: var(--muted-color);
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s ease;
}

.timeline-action-btn:hover {
    background: var(--card-bg);
    color: var(--accent-color);
}

/*--------------------------------------------------------------
# Timeline Quote
--------------------------------------------------------------*/
.timeline-quote {
    margin: 0;
    padding: 1rem;
    font-size: 0.875rem;
    font-style: italic;
    color: var(--default-color);
    background: var(--background-color);
    border-left: 3px solid var(--accent-color);
    border-radius: var(--radius-sm);
}

/*--------------------------------------------------------------
# Timeline Milestone
--------------------------------------------------------------*/
.timeline-milestone {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: color-mix(in srgb, var(--warning-color), transparent 92%);
    border-radius: var(--radius-md);
}

.timeline-milestone-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--warning-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.timeline-milestone-info {
    flex: 1;
    min-width: 0;
}

.timeline-milestone-info h6 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--heading-color);
    margin: 0 0 0.25rem;
}

.timeline-milestone-info p {
    font-size: 0.8125rem;
    color: var(--muted-color);
    margin: 0;
    line-height: 1.5;
}

.timeline-milestone-progress {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    min-width: 80px;
}

.timeline-milestone-progress .progress-label {
    font-size: 0.6875rem;
    color: var(--muted-color);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.timeline-milestone-progress .progress {
    width: 100%;
    height: 4px;
    background: color-mix(in srgb, var(--warning-color), transparent 70%);
    border-radius: 2px;
}

.timeline-milestone-progress .progress-value {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--success-color);
}

/*--------------------------------------------------------------
# Timeline Files
--------------------------------------------------------------*/
.timeline-files {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.timeline-file {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--background-color);
    border-radius: var(--radius-md);
    transition: background-color 0.15s ease;
}

.timeline-file:hover {
    background: color-mix(
        in srgb,
        var(--background-color),
        var(--border-color) 50%
    );
}

.timeline-file-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--accent-color), transparent 90%);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.timeline-file-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.timeline-file-name {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--heading-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.timeline-file-size {
    font-size: 0.75rem;
    color: var(--muted-color);
}

.timeline-file-download {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: transparent;
    border: none;
    color: var(--muted-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.timeline-file-download:hover {
    background: var(--card-bg);
    color: var(--accent-color);
}

/*--------------------------------------------------------------
# Timeline Alert
--------------------------------------------------------------*/
.timeline-alert {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--radius-md);
}

.timeline-alert.danger {
    background: color-mix(in srgb, var(--danger-color), transparent 92%);
}

.timeline-alert-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--danger-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.timeline-alert-content {
    flex: 1;
    min-width: 0;
}

.timeline-alert-content h6 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--danger-color);
    margin: 0 0 0.25rem;
}

.timeline-alert-content p {
    font-size: 0.8125rem;
    color: var(--default-color);
    margin: 0;
    line-height: 1.5;
}

.timeline-alert-badge {
    font-size: 0.6875rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    background: var(--success-color);
    color: white;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

/*--------------------------------------------------------------
# Timeline User Card
--------------------------------------------------------------*/
.timeline-user-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--background-color);
    border-radius: var(--radius-md);
}

.timeline-user-card > img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    -o-object-fit: cover;
    object-fit: cover;
}

.timeline-user-info {
    flex: 1;
    min-width: 0;
}

.timeline-user-info h6 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--heading-color);
    margin: 0;
}

.timeline-user-info span {
    font-size: 0.8125rem;
    color: var(--muted-color);
}

/*--------------------------------------------------------------
# Timeline Git
--------------------------------------------------------------*/
.timeline-git {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.timeline-git > i {
    color: var(--muted-color);
    font-size: 0.875rem;
    flex-shrink: 0;
}

.timeline-branch {
    display: inline-block;
    font-size: 0.8125rem;
    padding: 0.375rem 0.75rem;
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--default-color);
    white-space: nowrap;
    line-height: 1.4;
}

.timeline-branch.target {
    background: color-mix(in srgb, var(--success-color), transparent 90%);
    border-color: color-mix(in srgb, var(--success-color), transparent 70%);
    color: var(--success-color);
}

/*--------------------------------------------------------------
# Timeline Release
--------------------------------------------------------------*/
.timeline-release {
    padding: 1rem;
    background: color-mix(in srgb, var(--success-color), transparent 95%);
    border-radius: var(--radius-md);
    border: 1px solid color-mix(in srgb, var(--success-color), transparent 80%);
}

.timeline-release-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.timeline-release-version {
    font-size: 1rem;
    font-weight: 700;
    color: var(--heading-color);
}

.timeline-release p {
    font-size: 0.875rem;
    color: var(--default-color);
    margin: 0 0 0.75rem;
    line-height: 1.5;
}

.timeline-release-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.timeline-release-stat {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: var(--muted-color);
}

.timeline-release-stat i {
    color: var(--accent-color);
}

/*--------------------------------------------------------------
# Timeline Project
--------------------------------------------------------------*/
.timeline-project {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--background-color);
    border-radius: var(--radius-md);
}

.timeline-project-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: color-mix(in srgb, var(--accent-color), transparent 88%);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.timeline-project-info {
    flex: 1;
    min-width: 0;
}

.timeline-project-info h6 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--heading-color);
    margin: 0 0 0.25rem;
}

.timeline-project-info > p {
    font-size: 0.8125rem;
    color: var(--muted-color);
    margin: 0 0 0.75rem;
    line-height: 1.5;
}

.timeline-project-team {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.avatar-group {
    display: flex;
    align-items: center;
}

.avatar-group img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--card-bg);
    margin-left: -8px;
    -o-object-fit: cover;
    object-fit: cover;
}

.avatar-group img:first-child {
    margin-left: 0;
}

.avatar-count {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-color);
    color: white;
    font-size: 0.6875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -8px;
    border: 2px solid var(--card-bg);
}

.timeline-project-members {
    font-size: 0.75rem;
    color: var(--muted-color);
}

/*--------------------------------------------------------------
# Timeline Load More
--------------------------------------------------------------*/
.timeline-load-more {
    display: flex;
    justify-content: center;
    padding: 2rem 0 1rem;
}

/*--------------------------------------------------------------
# Sidebar Stats Grid
--------------------------------------------------------------*/
.timeline-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.timeline-stat-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem;
    background: var(--background-color);
    border-radius: var(--radius-md);
}

.timeline-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.timeline-stat-icon.primary {
    background: color-mix(in srgb, var(--accent-color), transparent 88%);
    color: var(--accent-color);
}

.timeline-stat-icon.success {
    background: color-mix(in srgb, var(--success-color), transparent 88%);
    color: var(--success-color);
}

.timeline-stat-icon.warning {
    background: color-mix(in srgb, var(--warning-color), transparent 88%);
    color: var(--warning-color);
}

.timeline-stat-icon.info {
    background: color-mix(in srgb, var(--info-color), transparent 88%);
    color: var(--info-color);
}

.timeline-stat-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.timeline-stat-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--heading-color);
    line-height: 1;
}

.timeline-stat-label {
    font-size: 0.6875rem;
    color: var(--muted-color);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

/*--------------------------------------------------------------
# Event Breakdown
--------------------------------------------------------------*/
.timeline-event-list {
    padding: 0.5rem 0;
}

.timeline-event-item {
    display: grid;
    grid-template-columns: 8px 1fr auto 60px;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.timeline-event-item:last-child {
    border-bottom: none;
}

.timeline-event-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.timeline-event-dot.success {
    background: var(--success-color);
}

.timeline-event-dot.primary {
    background: var(--accent-color);
}

.timeline-event-dot.warning {
    background: var(--warning-color);
}

.timeline-event-dot.info {
    background: var(--info-color);
}

.timeline-event-dot.secondary {
    background: var(--secondary-color);
}

.timeline-event-name {
    font-size: 0.8125rem;
    color: var(--default-color);
}

.timeline-event-count {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--heading-color);
    text-align: right;
}

.timeline-event-bar {
    height: 4px;
    background: var(--background-color);
    border-radius: 2px;
    overflow: hidden;
}

.timeline-event-progress {
    height: 100%;
    border-radius: 2px;
}

.timeline-event-progress.success {
    background: var(--success-color);
}

.timeline-event-progress.primary {
    background: var(--accent-color);
}

.timeline-event-progress.warning {
    background: var(--warning-color);
}

.timeline-event-progress.info {
    background: var(--info-color);
}

.timeline-event-progress.secondary {
    background: var(--secondary-color);
}

/*--------------------------------------------------------------
# Contributors
--------------------------------------------------------------*/
.timeline-contributors {
    display: flex;
    flex-direction: column;
}

.timeline-contributor {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.timeline-contributor:last-child {
    border-bottom: none;
}

.timeline-contributor > img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    -o-object-fit: cover;
    object-fit: cover;
}

.timeline-contributor-rank {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--background-color);
    color: var(--muted-color);
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.timeline-contributor-rank.gold {
    background: linear-gradient(135deg, #ffd700, #ffb800);
    color: #6b4c00;
}

.timeline-contributor-rank.silver {
    background: linear-gradient(135deg, #c0c0c0, #a8a8a8);
    color: #4a4a4a;
}

.timeline-contributor-rank.bronze {
    background: linear-gradient(135deg, #cd7f32, #b8722d);
    color: #4a2c00;
}

.timeline-contributor-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.timeline-contributor-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--heading-color);
}

.timeline-contributor-events {
    font-size: 0.75rem;
    color: var(--muted-color);
}

.timeline-contributor-badge {
    color: #ffd700;
    font-size: 1rem;
}

/*--------------------------------------------------------------
# Quick Actions
--------------------------------------------------------------*/
.timeline-quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.timeline-quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--background-color);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.15s ease;
}

.timeline-quick-action i {
    font-size: 1.25rem;
    color: var(--accent-color);
}

.timeline-quick-action span {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--default-color);
}

.timeline-quick-action:hover {
    background: color-mix(in srgb, var(--accent-color), transparent 92%);
    transform: translateY(-2px);
}

/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/
@media (max-width: 991.98px) {
    .timeline-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .timeline-filters {
        justify-content: center;
    }

    .timeline-view-options {
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 767.98px) {
    .timeline-filter-btn span {
        display: none;
    }

    .timeline-list {
        padding-left: 1.75rem;
    }

    .timeline-list::before {
        left: 9px;
    }

    .timeline-entry-marker {
        left: -1.75rem;
        width: 20px;
        height: 20px;
        font-size: 0.625rem;
    }

    .timeline-entry-header {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.875rem 1rem;
    }

    .timeline-entry-body {
        padding: 0.875rem 1rem;
    }

    .timeline-entry-footer {
        padding: 0.625rem 1rem;
    }

    .timeline-milestone {
        flex-direction: column;
        gap: 0.75rem;
    }

    .timeline-milestone-progress {
        align-items: stretch;
        width: 100%;
    }

    .timeline-stats-grid {
        grid-template-columns: 1fr;
    }

    .timeline-event-item {
        grid-template-columns: 8px 1fr auto;
    }

    .timeline-event-bar {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .timeline-git {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }

    .timeline-branch {
        flex-shrink: 0;
    }

    .timeline-release-stats {
        flex-direction: column;
        gap: 0.5rem;
    }

    .timeline-project {
        flex-direction: column;
    }

    .timeline-quick-actions {
        grid-template-columns: 1fr;
    }
}

/*--------------------------------------------------------------
# Search Header
--------------------------------------------------------------*/
.search-header {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.search-header-inner {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.search-header-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--heading-color);
    margin: 0 0 1.25rem;
}

.search-page-form {
    margin-bottom: 1rem;
}

.search-header .search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: var(--background-color);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all 0.15s ease;
}

.search-header .search-input-wrapper:focus-within {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px
        color-mix(in srgb, var(--accent-color), transparent 85%);
}

.search-header .search-input-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    flex-shrink: 0;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.search-header .search-input-icon i {
    font-size: 1.125rem;
}

.search-header .search-input-icon:hover {
    background: color-mix(in srgb, var(--accent-color), black 10%);
}

.search-header .search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: var(--default-color);
    outline: none;
    min-width: 0;
    padding: 0 0.5rem;
}

.search-header .search-input::-moz-placeholder {
    color: var(--muted-color);
}

.search-header .search-input::placeholder {
    color: var(--muted-color);
}

.search-header .search-shortcuts {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
    margin-right: 0.5rem;
}

.search-header .search-shortcuts kbd {
    font-size: 0.6875rem;
    padding: 0.25rem 0.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--muted-color);
}

.search-suggestions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.search-suggestions > span {
    font-size: 0.8125rem;
    color: var(--muted-color);
}

.search-suggestions a {
    font-size: 0.8125rem;
    padding: 0.25rem 0.625rem;
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--default-color);
    text-decoration: none;
    transition: all 0.15s ease;
}

.search-suggestions a:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: color-mix(in srgb, var(--accent-color), transparent 95%);
}

/*--------------------------------------------------------------
# Search Summary
--------------------------------------------------------------*/
.search-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.search-summary-left {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.search-query {
    font-size: 1rem;
    color: var(--default-color);
}

.search-query strong {
    color: var(--heading-color);
}

.search-stats {
    font-size: 0.8125rem;
    color: var(--muted-color);
}

.search-summary-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.search-view-toggle {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.search-view-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--muted-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.search-view-btn:hover {
    color: var(--default-color);
}

.search-view-btn.active {
    background: var(--accent-color);
    color: white;
}

/*--------------------------------------------------------------
# Search Tabs
--------------------------------------------------------------*/
.search-tabs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    overflow-x: auto;
}

.search-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-color);
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.search-tab i {
    font-size: 1rem;
}

.search-tab:hover {
    color: var(--default-color);
    background: var(--background-color);
}

.search-tab.active {
    color: var(--accent-color);
    background: color-mix(in srgb, var(--accent-color), transparent 92%);
    border-color: color-mix(in srgb, var(--accent-color), transparent 70%);
}

.search-tab-count {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.125rem 0.5rem;
    background: var(--background-color);
    border-radius: var(--radius-sm);
}

.search-tab.active .search-tab-count {
    background: color-mix(in srgb, var(--accent-color), transparent 80%);
    color: var(--accent-color);
}

/*--------------------------------------------------------------
# Search Section
--------------------------------------------------------------*/
.search-section {
    margin-bottom: 2rem;
}

.search-section:last-of-type {
    margin-bottom: 0;
}

.search-section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.search-section-header h6 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--heading-color);
    margin: 0;
}

.search-section-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    background: color-mix(in srgb, var(--accent-color), transparent 90%);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.search-section-count {
    font-size: 0.75rem;
    color: var(--muted-color);
    padding: 0.25rem 0.5rem;
    background: var(--background-color);
    border-radius: var(--radius-sm);
}

.search-section-link {
    font-size: 0.8125rem;
    color: var(--accent-color);
    margin-left: auto;
}

/*--------------------------------------------------------------
# Search Result Card
--------------------------------------------------------------*/
.search-result-card {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 0.75rem;
    transition: all 0.15s ease;
}

.search-result-card:last-child {
    margin-bottom: 0;
}

.search-result-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.search-result-card:hover .search-result-actions {
    opacity: 1;
}

.search-result-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.search-result-card-icon.primary {
    background: color-mix(in srgb, var(--accent-color), transparent 88%);
    color: var(--accent-color);
}

.search-result-card-icon.success {
    background: color-mix(in srgb, var(--success-color), transparent 88%);
    color: var(--success-color);
}

.search-result-card-icon.info {
    background: color-mix(in srgb, var(--info-color), transparent 88%);
    color: var(--info-color);
}

.search-result-card-icon.file-pdf {
    background: color-mix(in srgb, var(--danger-color), transparent 88%);
    color: var(--danger-color);
}

.search-result-card-icon.file-excel {
    background: color-mix(in srgb, var(--success-color), transparent 88%);
    color: var(--success-color);
}

.search-result-card-icon.file-image {
    background: color-mix(in srgb, var(--info-color), transparent 88%);
    color: var(--info-color);
}

.search-result-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    -o-object-fit: cover;
    object-fit: cover;
    flex-shrink: 0;
}

.search-result-card-body {
    flex: 1;
    min-width: 0;
}

.search-result-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.375rem;
}

.search-result-card-header h6 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.search-result-card-header h6 a {
    color: var(--heading-color);
    transition: color 0.15s ease;
}

.search-result-card-header h6 a:hover {
    color: var(--accent-color);
}

.badge-online {
    font-size: 0.6875rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    background: color-mix(in srgb, var(--success-color), transparent 85%);
    color: var(--success-color);
    border-radius: var(--radius-sm);
}

.search-result-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.search-action-btn {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    background: var(--background-color);
    border: none;
    color: var(--muted-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.search-action-btn:hover {
    background: var(--accent-color);
    color: white;
}

.search-result-role {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--accent-color);
    margin: 0 0 0.25rem;
}

.search-result-description {
    font-size: 0.8125rem;
    color: var(--muted-color);
    line-height: 1.6;
    margin: 0 0 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-result-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.search-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: var(--muted-color);
}

.search-meta-item i {
    font-size: 0.8125rem;
}

mark {
    background: color-mix(in srgb, var(--warning-color), transparent 70%);
    color: inherit;
    padding: 0 0.125rem;
    border-radius: 2px;
}

/*--------------------------------------------------------------
# Search Pagination
--------------------------------------------------------------*/
.search-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.search-pagination-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--default-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.search-pagination-btn:hover:not(:disabled) {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.search-pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.search-pagination-pages {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.search-pagination-page {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: transparent;
    border: 1px solid transparent;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--default-color);
    cursor: pointer;
    transition: all 0.15s ease;
}

.search-pagination-page:hover:not(.active) {
    background: var(--background-color);
}

.search-pagination-page.active {
    background: var(--accent-color);
    color: white;
}

.search-pagination-ellipsis {
    color: var(--muted-color);
    padding: 0 0.25rem;
}

/*--------------------------------------------------------------
# Sidebar Filters
--------------------------------------------------------------*/
.search-filter-group {
    margin-bottom: 1.5rem;
}

.search-filter-group:last-child {
    margin-bottom: 0;
}

.search-filter-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--heading-color);
    margin: 0 0 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.search-filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.search-filter-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.search-filter-checkbox input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.search-filter-checkmark {
    width: 18px;
    height: 18px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.search-filter-checkmark::after {
    content: "\f272";
    font-family: "bootstrap-icons";
    font-size: 0.625rem;
    color: white;
    opacity: 0;
    transform: scale(0);
    transition: all 0.15s ease;
}

.search-filter-checkbox input:checked + .search-filter-checkmark {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.search-filter-checkbox input:checked + .search-filter-checkmark::after {
    opacity: 1;
    transform: scale(1);
}

.search-filter-label {
    flex: 1;
    font-size: 0.875rem;
    color: var(--default-color);
}

.search-filter-count {
    font-size: 0.75rem;
    color: var(--muted-color);
}

.search-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.search-filter-btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--default-color);
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.15s ease;
}

.search-filter-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.search-filter-btn.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

/*--------------------------------------------------------------
# Search Tips
--------------------------------------------------------------*/
.search-tips-list {
    display: flex;
    flex-direction: column;
}

.search-tip-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.search-tip-item:last-child {
    border-bottom: none;
}

.search-tip-icon {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    background: var(--background-color);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.search-tip-content {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.search-tip-content code {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--heading-color);
    background: transparent;
}

.search-tip-content span {
    font-size: 0.75rem;
    color: var(--muted-color);
}

/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/
@media (max-width: 1199.98px) {
    .search-header {
        padding: 1.5rem;
    }
}

@media (max-width: 991.98px) {
    .search-tabs {
        gap: 0.375rem;
        padding: 0.5rem;
    }

    .search-tab {
        padding: 0.375rem 0.75rem;
        font-size: 0.8125rem;
    }

    .search-tab span:not(.search-tab-count) {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .search-header {
        padding: 1.25rem;
    }

    .search-header-title {
        font-size: 1.25rem;
    }

    .search-header .search-input-wrapper {
        padding: 0.375rem;
    }

    .search-header .search-input-icon {
        width: 40px;
        height: 40px;
    }

    .search-header .search-shortcuts {
        display: none;
    }

    .search-summary {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-result-card {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
    }

    .search-result-card-icon,
    .search-result-avatar {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .search-result-actions {
        opacity: 1;
    }

    .search-result-card-meta {
        flex-direction: column;
        gap: 0.375rem;
    }

    .search-filter-buttons {
        flex-direction: column;
    }

    .search-filter-btn {
        text-align: center;
    }
}

@media (max-width: 575.98px) {
    .search-pagination-page:not(.active):not(:first-child):not(:last-child) {
        display: none;
    }

    .search-pagination-ellipsis {
        display: none;
    }
}

.calendar-app {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.5rem;
    min-height: calc(100vh - 200px);
}

@media (max-width: 991.98px) {
    .calendar-app {
        grid-template-columns: 1fr;
    }
}

.calendar-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.calendar-sidebar .card {
    margin-bottom: 0;
}

.mini-calendar {
    padding: 0.5rem;
}

.mini-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
}

.mini-calendar-title {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--heading-color);
}

.mini-calendar-nav {
    display: flex;
    gap: 0.25rem;
}

.mini-calendar-nav button {
    background: none;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: var(--bs-border-radius);
    cursor: pointer;
    color: var(--muted-color);
    transition: all 0.2s;
}

.mini-calendar-nav button:hover {
    background: var(--accent-color);
    color: var(--contrast-color);
}

.mini-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    text-align: center;
}

.mini-calendar-day-header {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted-color);
    padding: 0.5rem 0;
}

.mini-calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    border-radius: var(--bs-border-radius);
    cursor: pointer;
    transition: all 0.2s;
    color: var(--default-color);
    position: relative;
}

.mini-calendar-day:hover {
    background: color-mix(in srgb, var(--accent-color), transparent 90%);
}

.mini-calendar-day.other-month {
    color: var(--muted-color);
    opacity: 0.5;
}

.mini-calendar-day.today {
    background: var(--accent-color);
    color: var(--contrast-color);
    font-weight: 600;
}

.mini-calendar-day.selected {
    background: color-mix(in srgb, var(--accent-color), transparent 80%);
    color: var(--accent-color);
    font-weight: 600;
}

.mini-calendar-day.has-event::after {
    content: "";
    position: absolute;
    bottom: 2px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent-color);
}

.event-categories {
    padding: 0;
}

.event-category-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.event-category-item:hover {
    background: color-mix(in srgb, var(--default-color), transparent 95%);
}

.event-category-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    flex-shrink: 0;
}

.event-category-name {
    flex: 1;
    font-size: 0.875rem;
    color: var(--default-color);
}

.event-category-count {
    font-size: 0.75rem;
    color: var(--muted-color);
    background: color-mix(in srgb, var(--default-color), transparent 90%);
    padding: 0.125rem 0.5rem;
    border-radius: 10px;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.calendar-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--heading-color);
    margin: 0;
    white-space: nowrap;
}

.calendar-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.calendar-nav-btn {
    background: none;
    border: 1px solid var(--border-color);
    width: 36px;
    height: 36px;
    border-radius: var(--bs-border-radius);
    cursor: pointer;
    color: var(--default-color);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-nav-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.calendar-today-btn {
    padding: 0 1rem;
    width: auto;
    min-width: -moz-max-content;
    min-width: max-content;
    white-space: nowrap;
}

.calendar-views-nav {
    border-bottom: none;
}

.calendar-views-nav .nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: var(--default-color);
    border: 1px solid var(--border-color);
    border-radius: 0;
    margin-left: -1px;
}

.calendar-views-nav .nav-link:hover {
    background: color-mix(in srgb, var(--accent-color), transparent 90%);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.calendar-views-nav .nav-link.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--contrast-color);
}

.calendar-views-nav .nav-item:first-child .nav-link {
    border-radius: var(--bs-border-radius) 0 0 var(--bs-border-radius);
    margin-left: 0;
}

.calendar-views-nav .nav-item:last-child .nav-link {
    border-radius: 0 var(--bs-border-radius) var(--bs-border-radius) 0;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(100px, 1fr));
    border: 1px solid var(--border-color);
    border-radius: var(--bs-border-radius);
    overflow: hidden;
}

.calendar-day-header {
    padding: 0.75rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--muted-color);
    background: color-mix(in srgb, var(--default-color), transparent 97%);
    border-bottom: 1px solid var(--border-color);
}

.calendar-day {
    min-height: 120px;
    padding: 0.5rem;
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: var(--surface-color);
    cursor: pointer;
    transition: background 0.2s;
}

.calendar-day:nth-child(7n) {
    border-right: none;
}

.calendar-day:hover {
    background: color-mix(in srgb, var(--accent-color), transparent 97%);
}

.calendar-day.other-month {
    background: color-mix(in srgb, var(--default-color), transparent 98%);
}

.calendar-day.other-month .day-number {
    color: var(--muted-color);
    opacity: 0.5;
}

.calendar-day.today {
    background: color-mix(in srgb, var(--accent-color), transparent 95%);
}

.calendar-day.today .day-number {
    background: var(--accent-color);
    color: var(--contrast-color);
}

.day-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 50%;
    margin-bottom: 0.25rem;
    color: var(--default-color);
}

.day-events {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.calendar-event {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.calendar-event:hover {
    opacity: 0.85;
}

.calendar-event.event-primary {
    background: color-mix(in srgb, var(--accent-color), transparent 80%);
    color: var(--accent-color);
    border-left: 3px solid var(--accent-color);
}

.calendar-event.event-success {
    background: color-mix(in srgb, var(--success-color), transparent 80%);
    color: var(--success-color);
    border-left: 3px solid var(--success-color);
}

.calendar-event.event-warning {
    background: color-mix(in srgb, var(--warning-color), transparent 80%);
    color: color-mix(in srgb, var(--warning-color), black 20%);
    border-left: 3px solid var(--warning-color);
}

.calendar-event.event-danger {
    background: color-mix(in srgb, var(--danger-color), transparent 80%);
    color: var(--danger-color);
    border-left: 3px solid var(--danger-color);
}

.calendar-event.event-info {
    background: color-mix(in srgb, var(--info-color), transparent 80%);
    color: color-mix(in srgb, var(--info-color), black 20%);
    border-left: 3px solid var(--info-color);
}

.more-events {
    font-size: 0.75rem;
    color: var(--muted-color);
    padding: 0.125rem 0.5rem;
    cursor: pointer;
}

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

.week-view {
    border: 1px solid var(--border-color);
    border-radius: var(--bs-border-radius);
    overflow: hidden;
}

.week-header {
    display: grid;
    grid-template-columns: 60px repeat(7, minmax(80px, 1fr));
    background: color-mix(in srgb, var(--default-color), transparent 97%);
    border-bottom: 1px solid var(--border-color);
}

.week-header-time {
    padding: 0.75rem 0.5rem;
    border-right: 1px solid var(--border-color);
}

.week-header-day {
    padding: 0.75rem 0.5rem;
    text-align: center;
    border-right: 1px solid var(--border-color);
}

.week-header-day:last-child {
    border-right: none;
}

.week-header-day .day-name {
    font-size: 0.75rem;
    color: var(--muted-color);
    font-weight: 600;
    text-transform: uppercase;
}

.week-header-day .day-num {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--heading-color);
}

.week-header-day.today .day-num {
    background: var(--accent-color);
    color: var(--contrast-color);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.week-body {
    display: grid;
    grid-template-columns: 60px repeat(7, minmax(80px, 1fr));
    max-height: 600px;
    overflow-y: auto;
}

.week-time-col {
    border-right: 1px solid var(--border-color);
}

.week-time-slot {
    height: 60px;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    color: var(--muted-color);
    border-bottom: 1px solid var(--border-color-light);
    text-align: right;
}

.week-day-col {
    border-right: 1px solid var(--border-color);
    position: relative;
}

.week-day-col:last-child {
    border-right: none;
}

.week-day-slot {
    height: 60px;
    border-bottom: 1px solid var(--border-color-light);
    position: relative;
}

.week-event {
    position: absolute;
    left: 2px;
    right: 2px;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    overflow: hidden;
    z-index: 1;
}

.week-event.event-primary {
    background: color-mix(in srgb, var(--accent-color), transparent 70%);
    border-left: 3px solid var(--accent-color);
    color: var(--accent-color);
}

.week-event.event-success {
    background: color-mix(in srgb, var(--success-color), transparent 70%);
    border-left: 3px solid var(--success-color);
    color: var(--success-color);
}

.week-event.event-warning {
    background: color-mix(in srgb, var(--warning-color), transparent 70%);
    border-left: 3px solid var(--warning-color);
    color: color-mix(in srgb, var(--warning-color), black 20%);
}

.week-event.event-danger {
    background: color-mix(in srgb, var(--danger-color), transparent 70%);
    border-left: 3px solid var(--danger-color);
    color: var(--danger-color);
}

.week-event.event-info {
    background: color-mix(in srgb, var(--info-color), transparent 70%);
    border-left: 3px solid var(--info-color);
    color: color-mix(in srgb, var(--info-color), black 20%);
}

.day-view {
    border: 1px solid var(--border-color);
    border-radius: var(--bs-border-radius);
    overflow: hidden;
}

.day-view-header {
    display: grid;
    grid-template-columns: 60px 1fr;
    background: color-mix(in srgb, var(--default-color), transparent 97%);
    border-bottom: 1px solid var(--border-color);
}

.day-view-header-time {
    padding: 0.75rem 0.5rem;
    border-right: 1px solid var(--border-color);
}

.day-view-header-info {
    padding: 0.75rem 1rem;
    text-align: center;
}

.day-view-header-info .day-name {
    font-size: 0.875rem;
    color: var(--muted-color);
    font-weight: 600;
}

.day-view-header-info .day-num {
    font-size: 2rem;
    font-weight: 700;
    color: var(--heading-color);
}

.day-view-header-info.today .day-num {
    background: var(--accent-color);
    color: var(--contrast-color);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.day-view-body {
    display: grid;
    grid-template-columns: 60px 1fr;
    max-height: 600px;
    overflow-y: auto;
}

.day-view-time-col {
    border-right: 1px solid var(--border-color);
}

.day-view-time-slot {
    height: 60px;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    color: var(--muted-color);
    border-bottom: 1px solid var(--border-color-light);
    text-align: right;
}

.day-view-events-col {
    position: relative;
}

.day-view-slot {
    height: 60px;
    border-bottom: 1px solid var(--border-color-light);
    position: relative;
}

.day-view-slot:hover {
    background: color-mix(in srgb, var(--accent-color), transparent 97%);
}

.day-event {
    position: absolute;
    left: 4px;
    right: 4px;
    padding: 0.5rem;
    font-size: 0.8125rem;
    border-radius: 4px;
    cursor: pointer;
    z-index: 1;
}

.day-event .event-title {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.day-event .event-time {
    font-size: 0.75rem;
    opacity: 0.8;
}

.day-event.event-primary {
    background: color-mix(in srgb, var(--accent-color), transparent 70%);
    border-left: 4px solid var(--accent-color);
    color: var(--accent-color);
}

.day-event.event-success {
    background: color-mix(in srgb, var(--success-color), transparent 70%);
    border-left: 4px solid var(--success-color);
    color: var(--success-color);
}

.day-event.event-warning {
    background: color-mix(in srgb, var(--warning-color), transparent 70%);
    border-left: 4px solid var(--warning-color);
    color: color-mix(in srgb, var(--warning-color), black 20%);
}

.day-event.event-danger {
    background: color-mix(in srgb, var(--danger-color), transparent 70%);
    border-left: 4px solid var(--danger-color);
    color: var(--danger-color);
}

.day-event.event-info {
    background: color-mix(in srgb, var(--info-color), transparent 70%);
    border-left: 4px solid var(--info-color);
    color: color-mix(in srgb, var(--info-color), black 20%);
}

.upcoming-events {
    max-height: 300px;
    overflow-y: auto;
}

.upcoming-event-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.2s;
}

.upcoming-event-item:last-child {
    border-bottom: none;
}

.upcoming-event-item:hover {
    background: color-mix(in srgb, var(--default-color), transparent 97%);
}

.upcoming-event-date {
    text-align: center;
    min-width: 45px;
}

.upcoming-event-day {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--heading-color);
    line-height: 1;
}

.upcoming-event-month {
    font-size: 0.75rem;
    color: var(--muted-color);
    text-transform: uppercase;
}

.upcoming-event-details {
    flex: 1;
    min-width: 0;
}

.upcoming-event-title {
    font-weight: 500;
    color: var(--default-color);
    margin-bottom: 0.125rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.upcoming-event-time {
    font-size: 0.8125rem;
    color: var(--muted-color);
}

.upcoming-event-color {
    width: 4px;
    border-radius: 2px;
    flex-shrink: 0;
}

.event-modal .modal-header {
    border-bottom: none;
    padding-bottom: 0;
}

.event-color-picker {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.event-color-option {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.event-color-option:hover,
.event-color-option.selected {
    transform: scale(1.15);
    border-color: var(--default-color);
}

.calendar-main {
    min-width: 0;
    container-type: inline-size;
}

.calendar-main .card {
    height: 100%;
}

@media (max-width: 1399.98px) {
    .calendar-main {
        overflow: hidden;
    }

    .calendar-main .card {
        max-width: 100%;
    }

    .calendar-main .card-body {
        max-width: 100%;
    }

    .calendar-scroll-wrapper {
        overflow-x: auto;
        max-width: 100%;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .calendar-scroll-wrapper::-webkit-scrollbar {
        height: 8px;
    }

    .calendar-scroll-wrapper::-webkit-scrollbar-track {
        background: var(--background-color);
        border-radius: 4px;
    }

    .calendar-scroll-wrapper::-webkit-scrollbar-thumb {
        background: var(--border-color);
        border-radius: 4px;
    }

    .calendar-scroll-wrapper::-webkit-scrollbar-thumb:hover {
        background: var(--muted-color);
    }

    .calendar-grid,
    .week-view,
    .day-view {
        min-width: 768px;
    }
}

@container (max-width: 700px) {
    .calendar-day {
        min-height: 100px;
        padding: 0.375rem;
    }

    .calendar-day-header {
        padding: 0.5rem 0.25rem;
        font-size: 0.75rem;
    }

    .day-number {
        width: 24px;
        height: 24px;
        font-size: 0.8125rem;
    }

    .calendar-event {
        padding: 0.125rem 0.375rem;
        font-size: 0.6875rem;
    }

    .more-events {
        font-size: 0.6875rem;
    }

    .week-header {
        grid-template-columns: 50px repeat(7, 1fr);
    }

    .week-body {
        grid-template-columns: 50px repeat(7, 1fr);
    }

    .week-header-day {
        padding: 0.5rem 0.25rem;
    }

    .week-header-day .day-name {
        font-size: 0.625rem;
    }

    .week-header-day .day-num {
        font-size: 1rem;
    }

    .week-time-slot,
    .week-day-slot {
        height: 50px;
    }

    .week-time-slot {
        font-size: 0.625rem;
        padding: 0.125rem 0.25rem;
    }

    .day-view-header {
        grid-template-columns: 50px 1fr;
    }

    .day-view-body {
        grid-template-columns: 50px 1fr;
    }

    .day-view-time-slot,
    .day-view-slot {
        height: 50px;
    }

    .day-view-time-slot {
        font-size: 0.625rem;
    }
}

@container (max-width: 550px) {
    .calendar-day {
        min-height: 70px;
        padding: 0.25rem;
    }

    .calendar-day-header {
        padding: 0.375rem 0.125rem;
        font-size: 0.6875rem;
    }

    .day-number {
        width: 20px;
        height: 20px;
        font-size: 0.75rem;
        margin-bottom: 0.125rem;
    }

    .calendar-event {
        padding: 0.0625rem 0.25rem;
        font-size: 0.625rem;
        border-left-width: 2px;
    }

    .day-events {
        gap: 1px;
    }

    .more-events {
        font-size: 0.5625rem;
        padding: 0.0625rem 0.125rem;
    }

    .week-header {
        grid-template-columns: 40px repeat(7, 1fr);
    }

    .week-body {
        grid-template-columns: 40px repeat(7, 1fr);
        max-height: 350px;
    }

    .week-header-day {
        padding: 0.375rem 0.125rem;
    }

    .week-header-day .day-name {
        font-size: 0.5625rem;
    }

    .week-header-day .day-num {
        font-size: 0.875rem;
    }

    .week-header-day.today .day-num {
        width: 24px;
        height: 24px;
    }

    .week-time-slot,
    .week-day-slot {
        height: 45px;
    }

    .week-time-slot {
        font-size: 0.5625rem;
        padding: 0.0625rem 0.125rem;
    }

    .week-event {
        padding: 0.0625rem 0.125rem;
        font-size: 0.5625rem;
    }

    .day-view-header {
        grid-template-columns: 40px 1fr;
    }

    .day-view-body {
        grid-template-columns: 40px 1fr;
        max-height: 400px;
    }

    .day-view-time-slot,
    .day-view-slot {
        height: 45px;
    }

    .day-view-time-slot {
        font-size: 0.5625rem;
    }

    .day-event {
        padding: 0.25rem;
        font-size: 0.6875rem;
        border-left-width: 2px;
    }

    .day-event .event-title {
        font-size: 0.6875rem;
        margin-bottom: 0;
    }

    .day-event .event-time {
        font-size: 0.5625rem;
    }
}

@container (max-width: 950px) {
    .card-header.calendar-header {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .card-header.calendar-header > .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.5rem !important;
        flex: 1;
        min-width: 0;
    }

    .calendar-title {
        font-size: 1.125rem;
        order: 1;
    }

    .calendar-nav {
        order: 2;
    }

    .calendar-nav-btn {
        width: 36px;
        height: 36px;
    }

    .calendar-views-nav {
        align-self: flex-start;
    }
}

@container (max-width: 750px) {
    .card-header.calendar-header {
        gap: 0.625rem;
    }

    .calendar-title {
        font-size: 1rem;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .calendar-views-nav {
        width: 100%;
        justify-content: center;
    }

    .calendar-views-nav .nav-link {
        flex: 1;
        justify-content: center;
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }
}

@container (max-width: 550px) {
    .card-header.calendar-header {
        padding: 0.75rem;
        gap: 0.5rem;
    }

    .calendar-title {
        font-size: 0.9375rem;
        text-align: center;
        width: 100%;
    }

    .calendar-nav {
        width: 100%;
        justify-content: space-between;
    }

    .calendar-nav-btn {
        width: 40px;
        height: 40px;
    }

    .calendar-today-btn {
        flex: 1;
        max-width: 120px;
        min-width: -moz-max-content;
        min-width: max-content;
    }

    .calendar-views-nav .nav-link {
        padding: 0.5rem 0.625rem;
        font-size: 0.8125rem;
        min-height: 40px;
    }
}

@container (max-width: 400px) {
    .calendar-title {
        font-size: 0.875rem;
    }

    .calendar-views-nav .nav-link {
        padding: 0.375rem 0.5rem;
        font-size: 0.75rem;
    }
}

.calendar-sidebar-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    min-height: 44px;
    padding: 0.625rem 1rem;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--bs-border-radius);
    color: var(--default-color);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.calendar-sidebar-toggle svg {
    width: 18px;
    height: 18px;
    stroke: var(--muted-color);
}

.calendar-sidebar-toggle:hover {
    background: color-mix(in srgb, var(--accent-color), transparent 95%);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.calendar-sidebar-toggle:hover svg {
    stroke: var(--accent-color);
}

.calendar-sidebar-toggle:active {
    background: color-mix(in srgb, var(--accent-color), transparent 90%);
}

.calendar-sidebar-close {
    display: none;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 44px;
    height: 44px;
    padding: 0;
    background: color-mix(in srgb, var(--default-color), transparent 95%);
    border: none;
    border-radius: var(--bs-border-radius);
    color: var(--muted-color);
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
}

.calendar-sidebar-close:hover {
    background: color-mix(in srgb, var(--danger-color), transparent 85%);
    color: var(--danger-color);
}

.calendar-sidebar-close:active {
    background: color-mix(in srgb, var(--danger-color), transparent 75%);
}

.calendar-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.calendar-sidebar-overlay.show {
    opacity: 1;
}

[data-theme="dark"] .calendar-sidebar-overlay {
    background: rgba(0, 0, 0, 0.7);
}

@media (max-width: 1279.98px) {
    .calendar-app {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .calendar-sidebar-toggle {
        display: flex;
    }

    .calendar-sidebar-overlay {
        display: block;
        pointer-events: none;
    }

    .calendar-sidebar-overlay.show {
        pointer-events: auto;
    }

    .calendar-sidebar-close {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 0.75rem;
        right: 0.75rem;
        z-index: 10;
    }

    .calendar-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 320px;
        max-width: 90vw;
        background: var(--surface-color);
        z-index: 1050;
        flex-direction: column;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 1rem;
        padding-top: 4rem;
        padding-bottom: calc(env(safe-area-inset-bottom) + 1rem);
        box-shadow: 4px 0 16px rgba(0, 0, 0, 0.15);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        display: flex;
    }

    .calendar-sidebar.show {
        transform: translateX(0);
    }

    .calendar-sidebar .card {
        min-width: auto;
        flex-shrink: 0;
    }

    body.calendar-sidebar-open {
        overflow: hidden;
    }

    .calendar-header {
        gap: 0.75rem;
        flex-wrap: nowrap;
    }

    .calendar-title {
        flex-shrink: 1;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .calendar-nav-btn {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }

    .calendar-views-nav {
        flex-shrink: 0;
    }

    .mini-calendar-nav button {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 767.98px) {
    .calendar-app {
        min-height: auto;
        gap: 0.75rem;
    }

    .calendar-header {
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
    }

    .calendar-title {
        font-size: 1rem;
        order: 1;
        flex: 1;
        text-align: center;
        width: 100%;
    }

    .calendar-nav {
        order: 3;
        width: 100%;
        justify-content: space-between;
    }

    .calendar-nav-btn {
        width: 44px;
        height: 44px;
    }

    .calendar-today-btn {
        flex: 1;
        max-width: 120px;
    }

    .calendar-views-nav {
        order: 2;
    }

    .calendar-views-nav .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .mini-calendar {
        padding: 0.375rem;
    }

    .mini-calendar-header {
        padding: 0.375rem;
        margin-bottom: 0.375rem;
    }

    .mini-calendar-title {
        font-size: 0.875rem;
    }

    .mini-calendar-nav {
        gap: 0.125rem;
    }

    .mini-calendar-nav button {
        width: 44px;
        height: 44px;
    }

    .mini-calendar-day-header {
        font-size: 0.6875rem;
        padding: 0.375rem 0;
    }

    .mini-calendar-day {
        font-size: 0.75rem;
    }

    .calendar-grid {
        border-radius: var(--bs-border-radius);
    }

    .calendar-day-header {
        padding: 0.5rem 0.25rem;
        font-size: 0.6875rem;
    }

    .calendar-day {
        min-height: 80px;
        padding: 0.25rem;
    }

    .day-number {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
    }

    .day-events {
        gap: 1px;
    }

    .calendar-event {
        padding: 0.125rem 0.25rem;
        font-size: 0.625rem;
        border-left-width: 2px;
    }

    .more-events {
        font-size: 0.625rem;
        padding: 0.125rem 0.25rem;
    }

    .week-header {
        grid-template-columns: 50px repeat(7, 1fr);
    }

    .week-header-time {
        padding: 0.5rem 0.25rem;
    }

    .week-header-day {
        padding: 0.5rem 0.25rem;
    }

    .week-header-day .day-name {
        font-size: 0.625rem;
    }

    .week-header-day .day-num {
        font-size: 1rem;
    }

    .week-header-day.today .day-num {
        width: 28px;
        height: 28px;
    }

    .week-body {
        grid-template-columns: 50px repeat(7, 1fr);
        max-height: 400px;
    }

    .week-time-slot {
        height: 50px;
        font-size: 0.625rem;
        padding: 0.125rem 0.25rem;
    }

    .week-day-slot {
        height: 50px;
    }

    .week-event {
        padding: 0.125rem 0.25rem;
        font-size: 0.625rem;
        border-left-width: 2px;
    }

    .day-view-header {
        grid-template-columns: 50px 1fr;
    }

    .day-view-header-time {
        padding: 0.5rem 0.25rem;
    }

    .day-view-header-info {
        padding: 0.5rem;
    }

    .day-view-header-info .day-name {
        font-size: 0.75rem;
    }

    .day-view-header-info .day-num {
        font-size: 1.5rem;
    }

    .day-view-header-info.today .day-num {
        width: 40px;
        height: 40px;
    }

    .day-view-body {
        grid-template-columns: 50px 1fr;
        max-height: 450px;
    }

    .day-view-time-slot {
        height: 50px;
        font-size: 0.625rem;
        padding: 0.125rem 0.25rem;
    }

    .day-view-slot {
        height: 50px;
    }

    .day-event {
        padding: 0.375rem;
        font-size: 0.75rem;
        border-left-width: 3px;
    }

    .day-event .event-title {
        font-size: 0.75rem;
        margin-bottom: 0.125rem;
    }

    .day-event .event-time {
        font-size: 0.625rem;
    }

    .upcoming-events {
        max-height: 200px;
    }

    .upcoming-event-item {
        padding: 0.625rem 0.75rem;
        gap: 0.5rem;
    }

    .upcoming-event-date {
        min-width: 40px;
    }

    .upcoming-event-day {
        font-size: 1rem;
    }

    .upcoming-event-month {
        font-size: 0.625rem;
    }

    .upcoming-event-title {
        font-size: 0.875rem;
    }

    .upcoming-event-time {
        font-size: 0.75rem;
    }

    .event-category-item {
        padding: 0.75rem;
        min-height: 44px;
    }

    .event-category-name {
        font-size: 0.8125rem;
    }

    .event-category-count {
        font-size: 0.6875rem;
    }

    .event-color-picker {
        gap: 0.625rem;
    }

    .event-color-option {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 575.98px) {
    .calendar-app {
        gap: 0.5rem;
    }

    .calendar-main .card {
        border-radius: var(--bs-border-radius);
    }

    .calendar-header {
        padding: 0.5rem 0.75rem;
        gap: 0.375rem;
    }

    .calendar-title {
        font-size: 0.9375rem;
    }

    .calendar-nav {
        gap: 0.25rem;
    }

    .calendar-nav-btn {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }

    .calendar-today-btn {
        font-size: 0.75rem;
        padding: 0 0.625rem;
    }

    .calendar-views-nav .nav-link {
        padding: 0.375rem 0.5rem;
        font-size: 0.75rem;
        min-height: 40px;
    }

    .mini-calendar {
        padding: 0.25rem;
    }

    .mini-calendar-header {
        padding: 0.25rem;
        margin-bottom: 0.25rem;
    }

    .mini-calendar-title {
        font-size: 0.8125rem;
    }

    .mini-calendar-nav button {
        width: 40px;
        height: 40px;
    }

    .mini-calendar-grid {
        gap: 1px;
    }

    .mini-calendar-day-header {
        font-size: 0.625rem;
        padding: 0.25rem 0;
    }

    .mini-calendar-day {
        font-size: 0.6875rem;
    }

    .mini-calendar-day.has-event::after {
        width: 3px;
        height: 3px;
        bottom: 1px;
    }

    .calendar-day-header {
        padding: 0.375rem 0.125rem;
        font-size: 0.5625rem;
    }

    .calendar-day-header::first-letter {
        text-transform: uppercase;
    }

    .calendar-day {
        min-height: 60px;
        padding: 0.125rem;
    }

    .day-number {
        width: 20px;
        height: 20px;
        font-size: 0.625rem;
        margin-bottom: 0.125rem;
    }

    .calendar-event {
        padding: 0.0625rem 0.125rem;
        font-size: 0.5625rem;
        border-left-width: 2px;
        border-radius: 2px;
    }

    .more-events {
        font-size: 0.5625rem;
        padding: 0.0625rem 0.125rem;
    }

    .week-header {
        grid-template-columns: 40px repeat(7, 1fr);
    }

    .week-header-time {
        padding: 0.375rem 0.125rem;
        font-size: 0.5625rem;
    }

    .week-header-day {
        padding: 0.375rem 0.125rem;
    }

    .week-header-day .day-name {
        font-size: 0.5625rem;
    }

    .week-header-day .day-num {
        font-size: 0.875rem;
    }

    .week-header-day.today .day-num {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
    }

    .week-body {
        grid-template-columns: 40px repeat(7, 1fr);
        max-height: 350px;
    }

    .week-time-slot {
        height: 45px;
        font-size: 0.5625rem;
        padding: 0.0625rem 0.125rem;
    }

    .week-day-slot {
        height: 45px;
    }

    .week-event {
        padding: 0.0625rem 0.125rem;
        font-size: 0.5625rem;
        left: 1px;
        right: 1px;
    }

    .day-view-header {
        grid-template-columns: 40px 1fr;
    }

    .day-view-header-time {
        padding: 0.375rem 0.125rem;
    }

    .day-view-header-info {
        padding: 0.375rem;
    }

    .day-view-header-info .day-name {
        font-size: 0.6875rem;
    }

    .day-view-header-info .day-num {
        font-size: 1.25rem;
    }

    .day-view-header-info.today .day-num {
        width: 36px;
        height: 36px;
    }

    .day-view-body {
        grid-template-columns: 40px 1fr;
        max-height: 400px;
    }

    .day-view-time-slot {
        height: 45px;
        font-size: 0.5625rem;
        padding: 0.0625rem 0.125rem;
    }

    .day-view-slot {
        height: 45px;
    }

    .day-event {
        left: 2px;
        right: 2px;
        padding: 0.25rem;
        font-size: 0.6875rem;
        border-left-width: 2px;
    }

    .day-event .event-title {
        font-size: 0.6875rem;
        margin-bottom: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .day-event .event-time {
        font-size: 0.5625rem;
    }

    .upcoming-events {
        max-height: 180px;
    }

    .upcoming-event-item {
        padding: 0.5rem 0.625rem;
        gap: 0.375rem;
    }

    .upcoming-event-date {
        min-width: 35px;
    }

    .upcoming-event-day {
        font-size: 0.9375rem;
    }

    .upcoming-event-month {
        font-size: 0.5625rem;
    }

    .upcoming-event-title {
        font-size: 0.8125rem;
    }

    .upcoming-event-time {
        font-size: 0.6875rem;
    }

    .upcoming-event-color {
        width: 3px;
    }

    .event-category-item {
        padding: 0.625rem 0.75rem;
        gap: 0.5rem;
        min-height: 44px;
    }

    .event-category-color {
        width: 10px;
        height: 10px;
    }

    .event-category-name {
        font-size: 0.75rem;
    }

    .event-category-count {
        font-size: 0.625rem;
        padding: 0.0625rem 0.375rem;
    }

    .event-modal .modal-header {
        padding: 0.75rem 1rem;
    }

    .event-modal .modal-body {
        padding: 0.75rem 1rem;
    }

    .event-modal .modal-footer {
        padding: 0.75rem 1rem;
        gap: 0.5rem;
    }

    .event-modal .modal-footer .btn {
        min-height: 44px;
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }

    .event-color-picker {
        gap: 0.5rem;
        justify-content: center;
    }

    .event-color-option {
        width: 40px;
        height: 40px;
    }
}

.kanban-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.kanban-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.kanban-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--heading-color);
    margin: 0;
}

.kanban-members {
    display: flex;
    align-items: center;
}

.kanban-member {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--surface-color);
    margin-left: -8px;
    -o-object-fit: cover;
    object-fit: cover;
}

.kanban-member:first-child {
    margin-left: 0;
}

.kanban-member-add {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px dashed var(--border-color);
    margin-left: -8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-color);
    font-size: 0.875rem;
    cursor: pointer;
    background: var(--surface-color);
    transition: all 0.2s;
}

.kanban-member-add:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.kanban-header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.kanban-board {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    min-height: calc(100vh - 280px);
}

.kanban-board::-webkit-scrollbar {
    height: 8px;
}

.kanban-board::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.kanban-board::-webkit-scrollbar-track {
    background: var(--background-color);
}

.kanban-column {
    flex: 0 0 320px;
    min-width: 320px;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--bs-border-radius-lg);
    max-height: calc(100vh - 280px);
    overflow: hidden;
}

.kanban-column[data-status="backlog"] .kanban-column-header {
    border-top: 3px solid var(--muted-color);
    border-radius: var(--bs-border-radius-lg) var(--bs-border-radius-lg) 0 0;
}

.kanban-column[data-status="todo"] .kanban-column-header {
    border-top: 3px solid var(--info-color);
    border-radius: var(--bs-border-radius-lg) var(--bs-border-radius-lg) 0 0;
}

.kanban-column[data-status="in-progress"] .kanban-column-header {
    border-top: 3px solid var(--warning-color);
    border-radius: var(--bs-border-radius-lg) var(--bs-border-radius-lg) 0 0;
}

.kanban-column[data-status="review"] .kanban-column-header {
    border-top: 3px solid var(--accent-color);
    border-radius: var(--bs-border-radius-lg) var(--bs-border-radius-lg) 0 0;
}

.kanban-column[data-status="done"] .kanban-column-header {
    border-top: 3px solid var(--success-color);
    border-radius: var(--bs-border-radius-lg) var(--bs-border-radius-lg) 0 0;
}

.kanban-column-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
}

.kanban-column-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--heading-color);
}

.kanban-column-count {
    background: var(--border-color);
    color: var(--muted-color);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.125rem 0.5rem;
    border-radius: 10px;
}

.kanban-column-actions {
    display: flex;
    gap: 0.25rem;
}

.kanban-column-btn {
    background: none;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: var(--bs-border-radius);
    color: var(--muted-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.kanban-column-btn:hover {
    background: var(--surface-color);
    color: var(--default-color);
}

.kanban-column-body {
    flex: 1;
    padding: 0.75rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: var(--surface-color);
}

.kanban-column-body::-webkit-scrollbar {
    width: 4px;
}

.kanban-column-body::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.kanban-column-body.drag-over {
    background: color-mix(in srgb, var(--accent-color), transparent 95%);
    border-radius: var(--bs-border-radius);
}

.kanban-card {
    background: var(--surface-color);
    border-radius: var(--bs-border-radius-lg);
    padding: 1rem;
    cursor: grab;
    border: 1px solid var(--border-color);
    transition:
        box-shadow 0.2s,
        transform 0.2s,
        border-color 0.2s;
}

.kanban-card:hover {
    box-shadow: var(--bs-box-shadow-sm);
}

.kanban-card.dragging {
    opacity: 0.5;
    transform: rotate(3deg);
}

.kanban-card[data-priority="high"] {
    border-left: 3px solid var(--danger-color);
}

.kanban-card[data-priority="medium"] {
    border-left: 3px solid var(--warning-color);
}

.kanban-card[data-priority="low"] {
    border-left: 3px solid var(--success-color);
}

.kanban-card-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}

.kanban-label {
    padding: 0.125rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 600;
    border-radius: 3px;
    text-transform: uppercase;
}

.kanban-label-feature {
    background: color-mix(in srgb, var(--accent-color), transparent 85%);
    color: var(--accent-color);
}

.kanban-label-bug {
    background: color-mix(in srgb, var(--danger-color), transparent 85%);
    color: var(--danger-color);
}

.kanban-label-enhancement {
    background: color-mix(in srgb, var(--success-color), transparent 85%);
    color: var(--success-color);
}

.kanban-label-design {
    background: color-mix(in srgb, var(--info-color), transparent 85%);
    color: var(--info-color);
}

.kanban-label-urgent {
    background: color-mix(in srgb, var(--warning-color), transparent 85%);
    color: color-mix(in srgb, var(--warning-color), black 20%);
}

.kanban-card-title {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--heading-color);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.kanban-card-title:hover {
    color: var(--accent-color);
    cursor: pointer;
}

.kanban-card-description {
    font-size: 0.8125rem;
    color: var(--muted-color);
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kanban-card-image {
    width: 100%;
    border-radius: var(--bs-border-radius);
    margin-bottom: 0.75rem;
}

.kanban-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.kanban-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.kanban-card-meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--muted-color);
}

.kanban-card-meta-item i {
    font-size: 0.875rem;
}

.kanban-card-assignees {
    display: flex;
}

.kanban-card-assignee {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--surface-color);
    margin-left: -6px;
    -o-object-fit: cover;
    object-fit: cover;
}

.kanban-card-assignee:first-child {
    margin-left: 0;
}

.kanban-card-progress {
    margin-bottom: 0.75rem;
}

.kanban-card-progress .progress {
    height: 4px;
}

.kanban-card-progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.25rem;
}

.kanban-card-progress-label {
    font-size: 0.75rem;
    color: var(--muted-color);
}

.kanban-card-progress-value {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--default-color);
}

.kanban-card-checklist {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--muted-color);
}

.kanban-card-checklist.complete {
    color: var(--success-color);
}

.kanban-due-date {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    border-radius: 3px;
}

.kanban-due-date.overdue {
    background: color-mix(in srgb, var(--danger-color), transparent 85%);
    color: var(--danger-color);
}

.kanban-due-date.due-soon {
    background: color-mix(in srgb, var(--warning-color), transparent 85%);
    color: color-mix(in srgb, var(--warning-color), black 20%);
}

.kanban-due-date.on-track {
    background: color-mix(in srgb, var(--success-color), transparent 85%);
    color: var(--success-color);
}

.kanban-add-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: none;
    border: 2px dashed var(--border-color);
    border-radius: var(--bs-border-radius);
    color: var(--muted-color);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.kanban-add-card:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: color-mix(in srgb, var(--accent-color), transparent 95%);
}

.kanban-add-column {
    flex: 0 0 320px;
    min-width: 320px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 1rem;
}

.kanban-add-column-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--surface-color);
    border: 2px dashed var(--border-color);
    border-radius: var(--bs-border-radius);
    color: var(--muted-color);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.kanban-add-column-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.kanban-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--muted-color);
}

.kanban-empty i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.kanban-empty p {
    font-size: 0.8125rem;
    margin: 0;
}

.task-modal .modal-body {
    padding: 1.5rem;
}

.task-detail-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.task-detail-icon {
    width: 24px;
    color: var(--muted-color);
    flex-shrink: 0;
    text-align: center;
}

.task-detail-content {
    flex: 1;
}

.task-detail-label {
    font-size: 0.75rem;
    color: var(--muted-color);
    margin-bottom: 0.25rem;
}

.task-detail-value {
    color: var(--default-color);
}

.chat-container {
    display: flex;
    height: calc(100vh - 200px);
    min-height: 500px;
    background: var(--surface-color);
    border-radius: var(--bs-border-radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.chat-sidebar {
    width: 340px;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.chat-sidebar-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.chat-sidebar-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 1rem;
}

.chat-search {
    position: relative;
}

.chat-search .form-control {
    padding-left: 2.5rem;
    background: var(--background-color);
    border-color: var(--border-color);
}

.chat-search .form-control:focus {
    background: var(--surface-color);
}

.chat-search-icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted-color);
}

.chat-tabs {
    display: flex;
    padding: 0.5rem 1.25rem;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.chat-tab {
    flex: 1;
    padding: 0.5rem;
    border: none;
    background: none;
    color: var(--muted-color);
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: var(--bs-border-radius);
    cursor: pointer;
    transition: all 0.2s;
}

.chat-tab:hover {
    background: var(--background-color);
    color: var(--default-color);
}

.chat-tab.active {
    background: color-mix(in srgb, var(--accent-color), transparent 90%);
    color: var(--accent-color);
}

.chat-tab .badge {
    margin-left: 0.25rem;
    font-size: 0.6875rem;
}

.chat-list {
    flex: 1;
    overflow-y: auto;
}

.chat-list::-webkit-scrollbar {
    width: 4px;
}

.chat-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.chat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    cursor: pointer;
    transition: background 0.2s;
    border-left: 3px solid transparent;
}

.chat-item:hover {
    background: var(--background-color);
}

.chat-item.active {
    background: color-mix(in srgb, var(--accent-color), transparent 95%);
    border-left-color: var(--accent-color);
}

.chat-item-avatar {
    position: relative;
    flex-shrink: 0;
}

.chat-item-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    -o-object-fit: cover;
    object-fit: cover;
}

.chat-item-status {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--surface-color);
}

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

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

.chat-item-status.offline {
    background: var(--muted-color);
}

.chat-item-status.busy {
    background: var(--danger-color);
}

.chat-item-content {
    flex: 1;
    min-width: 0;
}

.chat-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.chat-item-name {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--heading-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-item-time {
    font-size: 0.75rem;
    color: var(--muted-color);
    flex-shrink: 0;
}

.chat-item-message {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chat-item-message-text {
    font-size: 0.8125rem;
    color: var(--muted-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.chat-item-unread {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-color);
    color: var(--contrast-color);
    font-size: 0.6875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.chat-header-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chat-header-avatar {
    position: relative;
}

.chat-header-avatar img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    -o-object-fit: cover;
    object-fit: cover;
}

.chat-header-info h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--heading-color);
    margin: 0 0 0.125rem 0;
}

.chat-header-info span {
    font-size: 0.8125rem;
    color: var(--success-color);
}

.chat-header-actions {
    display: flex;
    gap: 0.5rem;
}

.chat-header-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--background-color);
    color: var(--muted-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.chat-header-btn:hover {
    background: var(--border-color);
    color: var(--default-color);
}

.chat-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.message-group {
    display: flex;
    gap: 0.75rem;
}

.message-group.sent {
    flex-direction: row-reverse;
}

.message-group.sent .message-content {
    align-items: flex-end;
}

.message-group.sent .message-bubble {
    background: var(--accent-color);
    color: var(--contrast-color);
    border-bottom-right-radius: 0.25rem;
}

.message-group.received .message-bubble {
    border-bottom-left-radius: 0.25rem;
}

.message-avatar img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    -o-object-fit: cover;
    object-fit: cover;
}

.message-content {
    max-width: 70%;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.message-bubble {
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    background: var(--background-color);
    color: var(--default-color);
    font-size: 0.9375rem;
    line-height: 1.5;
    word-wrap: break-word;
}

.message-time {
    font-size: 0.6875rem;
    color: var(--muted-color);
    padding: 0 0.5rem;
}

.message-status {
    font-size: 0.75rem;
    color: var(--muted-color);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.message-status.seen {
    color: var(--accent-color);
}

.message-date-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0.5rem 0;
}

.message-date-divider::before,
.message-date-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.message-date-divider span {
    font-size: 0.75rem;
    color: var(--muted-color);
    white-space: nowrap;
}

.message-image {
    max-width: 280px;
    border-radius: 0.75rem;
    overflow: hidden;
    margin-top: 0.25rem;
}

.message-image img {
    width: 100%;
    display: block;
}

.message-file {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--background-color);
    border-radius: 0.75rem;
    margin-top: 0.25rem;
    border: 1px solid var(--border-color);
}

.message-file-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--bs-border-radius);
    background: color-mix(in srgb, var(--accent-color), transparent 90%);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.message-file-info {
    flex: 1;
}

.message-file-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--heading-color);
}

.message-file-size {
    font-size: 0.75rem;
    color: var(--muted-color);
}

.message-file-download {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    color: var(--muted-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.message-file-download:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--contrast-color);
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.typing-indicator img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.typing-dots {
    display: flex;
    gap: 4px;
    padding: 0.75rem 1rem;
    background: var(--background-color);
    border-radius: 1rem;
    border-bottom-left-radius: 0.25rem;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--muted-color);
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingBounce {
    0%,
    80%,
    100% {
        transform: scale(0.6);
        opacity: 0.5;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.chat-input {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border-color);
    background: var(--surface-color);
}

.chat-input-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    background: var(--background-color);
    border-radius: var(--bs-border-radius-lg);
    padding: 0.5rem;
}

.chat-input-actions {
    display: flex;
    gap: 0.25rem;
}

.chat-input-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: none;
    color: var(--muted-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.chat-input-btn:hover {
    background: var(--border-color);
    color: var(--default-color);
}

.chat-input-field {
    flex: 1;
}

.chat-input-field textarea {
    width: 100%;
    border: none;
    background: none;
    resize: none;
    padding: 0.5rem;
    font-size: 0.9375rem;
    color: var(--default-color);
    max-height: 120px;
    line-height: 1.5;
}

.chat-input-field textarea:focus {
    outline: none;
}

.chat-input-field textarea::-moz-placeholder {
    color: var(--muted-color);
}

.chat-input-field textarea::placeholder {
    color: var(--muted-color);
}

.chat-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--accent-color);
    color: var(--contrast-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.chat-send-btn:hover {
    background: color-mix(in srgb, var(--accent-color), black 15%);
}

.chat-send-btn:disabled {
    background: var(--border-color);
    color: var(--muted-color);
    cursor: not-allowed;
}

.chat-info {
    width: 300px;
    border-left: 1px solid var(--border-color);
    display: none;
    flex-direction: column;
}

.chat-info.show {
    display: flex;
}

.chat-info-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-info-header h6 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--heading-color);
    margin: 0;
}

.chat-info-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: none;
    color: var(--muted-color);
    cursor: pointer;
    transition: all 0.2s;
}

.chat-info-close:hover {
    background: var(--background-color);
    color: var(--default-color);
}

.chat-info-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem;
}

.chat-info-profile {
    text-align: center;
    margin-bottom: 1.5rem;
}

.chat-info-profile img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    -o-object-fit: cover;
    object-fit: cover;
    margin-bottom: 0.75rem;
}

.chat-info-profile h5 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--heading-color);
    margin: 0 0 0.25rem 0;
}

.chat-info-profile span {
    font-size: 0.875rem;
    color: var(--muted-color);
}

.chat-info-section {
    margin-bottom: 1.5rem;
}

.chat-info-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.chat-info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.chat-info-item i {
    width: 20px;
    color: var(--muted-color);
    text-align: center;
}

.chat-info-item span {
    font-size: 0.875rem;
    color: var(--default-color);
}

.chat-info-media {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.chat-info-media img {
    width: 100%;
    aspect-ratio: 1;
    -o-object-fit: cover;
    object-fit: cover;
    border-radius: var(--bs-border-radius);
    cursor: pointer;
    transition: opacity 0.2s;
}

.chat-info-media img:hover {
    opacity: 0.8;
}

.chat-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--muted-color);
    padding: 2rem;
    text-align: center;
}

.chat-empty-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--background-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.chat-empty h5 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--heading-color);
    margin: 0 0 0.5rem 0;
}

.chat-empty p {
    font-size: 0.875rem;
    margin: 0;
}

.chat-sidebar-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: var(--background-color);
    border: none;
    border-radius: 50%;
    color: var(--muted-color);
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.chat-sidebar-toggle:hover {
    background: var(--border-color);
    color: var(--default-color);
}

.chat-sidebar-close {
    display: none;
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 44px;
    height: 44px;
    padding: 0;
    background: color-mix(in srgb, var(--default-color), transparent 95%);
    border: none;
    border-radius: var(--bs-border-radius);
    color: var(--muted-color);
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
}

.chat-sidebar-close:hover {
    background: color-mix(in srgb, var(--danger-color), transparent 85%);
    color: var(--danger-color);
}

.chat-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.chat-sidebar-overlay.show {
    opacity: 1;
}

[data-theme="dark"] .chat-sidebar-overlay {
    background: rgba(0, 0, 0, 0.7);
}

@media (max-width: 1279.98px) {
    .chat-sidebar-toggle {
        display: flex;
    }

    .chat-sidebar-overlay {
        display: block;
        pointer-events: none;
    }

    .chat-sidebar-overlay.show {
        pointer-events: auto;
    }

    .chat-sidebar-close {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .chat-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 340px;
        max-width: 90vw;
        height: 100vh;
        height: 100dvh;
        background: var(--surface-color);
        z-index: 1050;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        padding-top: 3.5rem;
        box-shadow: 4px 0 16px rgba(0, 0, 0, 0.15);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .chat-sidebar.show {
        transform: translateX(0);
    }

    .chat-sidebar-header {
        flex-shrink: 0;
    }

    .chat-tabs {
        flex-shrink: 0;
    }

    .chat-list {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        max-height: none;
        scrollbar-width: thin;
    }

    .chat-list::-webkit-scrollbar {
        width: 4px;
    }

    .chat-list::-webkit-scrollbar-track {
        background: var(--background-color);
    }

    .chat-list::-webkit-scrollbar-thumb {
        background: var(--border-color);
        border-radius: 2px;
    }

    .chat-list::-webkit-scrollbar-thumb:hover {
        background: var(--muted-color);
    }

    body.chat-sidebar-open {
        overflow: hidden;
    }

    .chat-info {
        display: none !important;
    }
}

@media (max-width: 991.98px) {
    .chat-info {
        display: none !important;
    }
}

@media (max-width: 767.98px) {
    .chat-container {
        min-height: calc(100vh - 180px);
    }

    .message-content {
        max-width: 80%;
    }

    .chat-messages {
        padding: 1rem;
        gap: 1rem;
    }

    .chat-input {
        padding: 0.75rem 1rem;
    }

    .chat-input-wrapper {
        padding: 0.375rem;
    }
}

@media (max-width: 575.98px) {
    .chat-container {
        border-radius: 0;
        border-left: none;
        border-right: none;
        min-height: calc(100vh - 160px);
    }

    .chat-sidebar-header {
        padding: 0.75rem 1rem;
    }

    .chat-sidebar-title {
        font-size: 1.125rem;
        margin-bottom: 0.75rem;
    }

    .chat-tabs {
        padding: 0.375rem 0.75rem;
    }

    .chat-tab {
        padding: 0.625rem 0.5rem;
        min-height: 44px;
        font-size: 0.75rem;
    }

    .chat-item {
        padding: 0.75rem 1rem;
        min-height: 64px;
    }

    .chat-item-avatar img {
        width: 44px;
        height: 44px;
    }

    .chat-item-name {
        font-size: 0.875rem;
    }

    .chat-item-message-text {
        font-size: 0.75rem;
    }

    .chat-item-time {
        font-size: 0.6875rem;
    }

    .chat-header {
        padding: 0.75rem 1rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .chat-header-user {
        flex: 1;
        min-width: 0;
    }

    .chat-header-avatar img {
        width: 40px;
        height: 40px;
    }

    .chat-header-info {
        min-width: 0;
    }

    .chat-header-info h5 {
        font-size: 0.9375rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .chat-header-info span {
        font-size: 0.75rem;
    }

    .chat-header-actions {
        gap: 0.25rem;
    }

    .chat-header-btn[title="Voice Call"],
    .chat-header-btn[title="Video Call"] {
        display: none;
    }

    .message-content {
        max-width: 85%;
    }

    .message-avatar img {
        width: 32px;
        height: 32px;
    }

    .message-bubble {
        padding: 0.625rem 0.875rem;
        font-size: 0.875rem;
    }

    .message-time {
        font-size: 0.625rem;
    }

    .message-image {
        max-width: 220px;
    }

    .message-file {
        padding: 0.5rem 0.75rem;
    }

    .message-file-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .message-file-name {
        font-size: 0.8125rem;
    }

    .message-file-download {
        width: 44px;
        height: 44px;
    }

    .chat-input {
        padding: 0.5rem 0.75rem;
    }

    .chat-input-wrapper {
        gap: 0.5rem;
        padding: 0.25rem;
    }

    .chat-input-actions {
        gap: 0;
    }

    .chat-input-btn {
        width: 44px;
        height: 44px;
    }

    .chat-input-field textarea {
        font-size: 0.875rem;
        padding: 0.375rem 0.5rem;
    }

    .chat-send-btn {
        width: 44px;
        height: 44px;
    }

    .typing-indicator img {
        width: 28px;
        height: 28px;
    }

    .typing-dots {
        padding: 0.625rem 0.875rem;
    }

    .typing-dots span {
        width: 6px;
        height: 6px;
    }

    .chat-empty {
        padding: 1.5rem;
    }

    .chat-empty-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .chat-empty h5 {
        font-size: 1rem;
    }

    .chat-empty p {
        font-size: 0.8125rem;
    }
}

.contacts-container {
    display: flex;
    min-height: calc(100vh - 200px);
    background: var(--surface-color);
    border-radius: var(--bs-border-radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.contacts-sidebar {
    width: 320px;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.contacts-sidebar-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.contacts-nav {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.contacts-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1.25rem;
    color: var(--default-color);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.contacts-nav-item i {
    font-size: 1.125rem;
    color: var(--muted-color);
    width: 20px;
    text-align: center;
}

.contacts-nav-item span:first-of-type {
    flex: 1;
}

.contacts-nav-item .badge {
    background: var(--background-color);
    color: var(--muted-color);
    font-weight: 500;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

.contacts-nav-item:hover {
    background: var(--background-color);
    color: var(--heading-color);
}

.contacts-nav-item:hover i {
    color: var(--accent-color);
}

.contacts-nav-item.active {
    background: color-mix(in srgb, var(--accent-color), transparent 90%);
    color: var(--accent-color);
}

.contacts-nav-item.active i {
    color: var(--accent-color);
}

.contacts-nav-item.active .badge {
    background: color-mix(in srgb, var(--accent-color), transparent 80%);
    color: var(--accent-color);
}

.contacts-groups {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.contacts-groups-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted-color);
}

.contacts-groups-add {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: none;
    background: none;
    color: var(--muted-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.contacts-groups-add:hover {
    background: var(--background-color);
    color: var(--accent-color);
}

.contacts-groups-list {
    display: flex;
    flex-direction: column;
}

.contacts-group-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 1.25rem;
    color: var(--default-color);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.contacts-group-item .badge {
    background: var(--background-color);
    color: var(--muted-color);
    font-weight: 500;
    font-size: 0.6875rem;
    padding: 0.125rem 0.375rem;
    margin-left: auto;
}

.contacts-group-item:hover {
    background: var(--background-color);
}

.contacts-group-item.active {
    background: color-mix(in srgb, var(--accent-color), transparent 90%);
    color: var(--accent-color);
}

.contacts-group-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.contacts-tags {
    padding: 1rem 1.25rem;
}

.contacts-tags-header {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted-color);
    margin-bottom: 0.75rem;
}

.contacts-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.contacts-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    background: var(--background-color);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--muted-color);
    cursor: pointer;
    transition: all 0.2s;
}

.contacts-tag:hover {
    background: color-mix(in srgb, var(--accent-color), transparent 90%);
    color: var(--accent-color);
}

.contacts-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.contacts-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.contacts-search {
    flex: 1;
    position: relative;
    max-width: 400px;
}

.contacts-search i {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted-color);
}

.contacts-search .form-control {
    padding-left: 2.5rem;
    background: var(--background-color);
    border-color: transparent;
}

.contacts-search .form-control:focus {
    background: var(--surface-color);
    border-color: var(--accent-color);
}

.contacts-view-toggle {
    display: flex;
    background: var(--background-color);
    border-radius: var(--bs-border-radius);
    padding: 2px;
}

.contacts-view-btn {
    width: 36px;
    height: 32px;
    border: none;
    background: none;
    color: var(--muted-color);
    border-radius: var(--bs-border-radius);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contacts-view-btn:hover {
    color: var(--default-color);
}

.contacts-view-btn.active {
    background: var(--surface-color);
    color: var(--accent-color);
    box-shadow: var(--shadow-sm);
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
    padding: 1.25rem;
    overflow-y: auto;
    flex: 1;
}

.contacts-grid::-webkit-scrollbar {
    width: 6px;
}

.contacts-grid::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.contact-card {
    position: relative;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--bs-border-radius-lg);
    text-align: center;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
}

.contact-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 4px 12px
        color-mix(in srgb, var(--accent-color), transparent 90%);
}

.contact-card:hover .contact-card-actions {
    opacity: 1;
}

.contact-card-body {
    padding: 1.5rem 1.5rem 0;
    cursor: pointer;
    flex: 1;
}

.contact-card-actions {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    left: 0.75rem;
    display: flex;
    justify-content: space-between;
    opacity: 0;
    transition: opacity 0.2s;
}

.contact-favorite {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--background-color);
    color: var(--muted-color);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-favorite:hover {
    background: var(--warning-color-light);
    color: var(--warning-color);
}

.contact-favorite.active {
    background: var(--warning-color-light);
    color: var(--warning-color);
    opacity: 1;
}

.contact-menu {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--background-color);
    color: var(--muted-color);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-menu:hover {
    background: var(--border-color);
    color: var(--default-color);
}

.contact-card-avatar {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
}

.contact-card-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    -o-object-fit: cover;
    object-fit: cover;
}

.contact-avatar-initial {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
}

.contact-status {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--surface-color);
}

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

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

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

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

.contact-card-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--heading-color);
    margin: 0 0 0.25rem;
}

.contact-card-role {
    font-size: 0.8125rem;
    color: var(--muted-color);
    margin: 0 0 0.125rem;
}

.contact-card-company {
    font-size: 0.75rem;
    color: var(--light-color);
    margin: 0 0 0.75rem;
}

.contact-card-tags {
    display: flex;
    justify-content: center;
    gap: 0.375rem;
    margin-bottom: 1rem;
}

.contact-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.1875rem 0.5rem;
    background: var(--background-color);
    border-radius: 20px;
    font-size: 0.6875rem;
    color: var(--muted-color);
}

.contact-card-info {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
}

.contact-info-item {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--background-color);
    color: var(--muted-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    text-decoration: none;
}

.contact-info-item:hover {
    background: var(--accent-color);
    color: var(--contrast-color);
}

.contacts-list {
    flex: 1;
    overflow-y: auto;
    padding: 0 1.25rem;
}

.contacts-list::-webkit-scrollbar {
    width: 6px;
}

.contacts-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.contacts-table {
    margin: 0;
}

.contacts-table th {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted-color);
    background: var(--background-color);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.contacts-table td {
    padding: 0.875rem 1rem;
    vertical-align: middle;
    font-size: 0.875rem;
    color: var(--default-color);
    border-bottom: 1px solid var(--border-color);
}

.contacts-table tr:hover td {
    background: var(--background-color);
}

.contact-list-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-list-user img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    -o-object-fit: cover;
    object-fit: cover;
}

.contact-list-name {
    font-weight: 600;
    color: var(--heading-color);
}

.contact-list-role {
    font-size: 0.75rem;
    color: var(--muted-color);
}

.contact-list-actions {
    display: flex;
    gap: 0.25rem;
}

.contact-list-actions .btn-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    color: var(--muted-color);
    border-radius: var(--bs-border-radius);
    cursor: pointer;
}

.contact-list-actions .btn-icon:hover {
    background: var(--background-color);
    color: var(--accent-color);
}

.contact-list-actions .btn-icon.text-danger:hover {
    background: var(--danger-color-light);
    color: var(--danger-color);
}

.contacts-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border-color);
}

.contacts-pagination-info {
    font-size: 0.8125rem;
    color: var(--muted-color);
}

.contact-avatar-upload {
    position: relative;
    display: inline-block;
}

.contact-avatar-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--background-color);
    border: 2px dashed var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.contact-avatar-preview i {
    font-size: 2.5rem;
    color: var(--muted-color);
}

.contact-avatar-preview img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}

.contact-avatar-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-color);
    color: var(--contrast-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.contact-avatar-btn:hover {
    background: color-mix(in srgb, var(--accent-color), black 15%);
}

.contact-detail {
    padding: 0;
}

.contact-detail-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.contact-detail-avatar {
    position: relative;
    flex-shrink: 0;
}

.contact-detail-avatar img,
.contact-detail-avatar .contact-avatar-initial {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    -o-object-fit: cover;
    object-fit: cover;
}

.contact-detail-avatar .contact-avatar-initial {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 600;
}

.contact-detail-avatar .contact-status {
    width: 18px;
    height: 18px;
    bottom: 6px;
    right: 6px;
    border-width: 3px;
}

.contact-detail-info {
    flex: 1;
    min-width: 0;
}

.contact-detail-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--heading-color);
    margin: 0 0 0.25rem;
}

.contact-detail-role {
    font-size: 0.9375rem;
    color: var(--muted-color);
    margin: 0 0 0.75rem;
}

.contact-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.contact-detail-tags .contact-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
}

.contact-detail-actions {
    display: flex;
    gap: 0.5rem;
}

.contact-detail-actions .btn {
    width: 44px;
    height: 44px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.contact-detail-actions .btn i {
    font-size: 1.125rem;
}

.contact-detail-body {
    padding: 1.5rem 0 0;
}

.contact-detail-section {
    margin-bottom: 1.5rem;
}

.contact-detail-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted-color);
    margin-bottom: 1rem;
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.625rem 0;
}

.contact-detail-item:not(:last-child) {
    border-bottom: 1px solid var(--border-color-light);
}

.contact-detail-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--background-color);
    color: var(--muted-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-detail-content {
    flex: 1;
    min-width: 0;
}

.contact-detail-label {
    display: block;
    font-size: 0.75rem;
    color: var(--muted-color);
    margin-bottom: 0.125rem;
}

.contact-detail-value {
    display: block;
    font-size: 0.875rem;
    color: var(--default-color);
    text-decoration: none;
    word-break: break-word;
}

.contact-detail-value:hover {
    color: var(--accent-color);
}

.contact-detail-quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.contact-quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--background-color);
    border-radius: var(--bs-border-radius-lg);
    color: var(--default-color);
    text-decoration: none;
    transition: all 0.2s;
}

.contact-quick-action i {
    font-size: 1.25rem;
    color: var(--accent-color);
}

.contact-quick-action span {
    font-size: 0.8125rem;
}

.contact-quick-action:hover {
    background: color-mix(in srgb, var(--accent-color), transparent 90%);
    color: var(--accent-color);
}

.contact-detail-notes {
    background: var(--background-color);
    border-radius: var(--bs-border-radius-lg);
    padding: 1rem;
}

.contact-detail-notes p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--default-color);
    line-height: 1.6;
}

.contact-activity-timeline {
    position: relative;
}

.contact-activity-item {
    display: flex;
    gap: 1rem;
    padding: 0.75rem 0;
    position: relative;
}

.contact-activity-item:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 36px;
    bottom: -0.75rem;
    width: 2px;
    background: var(--border-color);
}

.contact-activity-item:first-child {
    padding-top: 0;
}

.contact-activity-item:first-child::before {
    top: 36px;
}

.contact-activity-item:last-child {
    padding-bottom: 0;
}

.contact-activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.contact-activity-icon i {
    font-size: 0.875rem;
}

.contact-activity-content {
    flex: 1;
    min-width: 0;
    padding-top: 0.375rem;
}

.contact-activity-text {
    margin: 0 0 0.25rem;
    font-size: 0.875rem;
    color: var(--default-color);
}

.contact-activity-time {
    font-size: 0.75rem;
    color: var(--muted-color);
}

.contacts-sidebar-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: var(--background-color);
    border: none;
    border-radius: 50%;
    color: var(--muted-color);
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.contacts-sidebar-toggle:hover {
    background: var(--border-color);
    color: var(--default-color);
}

.contacts-sidebar-close {
    display: none;
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 44px;
    height: 44px;
    padding: 0;
    background: color-mix(in srgb, var(--default-color), transparent 95%);
    border: none;
    border-radius: var(--bs-border-radius);
    color: var(--muted-color);
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
}

.contacts-sidebar-close:hover {
    background: color-mix(in srgb, var(--danger-color), transparent 85%);
    color: var(--danger-color);
}

.contacts-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contacts-sidebar-overlay.show {
    opacity: 1;
}

[data-theme="dark"] .contacts-sidebar-overlay {
    background: rgba(0, 0, 0, 0.7);
}

@media (max-width: 1279.98px) {
    .contacts-sidebar-toggle {
        display: flex;
    }

    .contacts-sidebar-overlay {
        display: block;
        pointer-events: none;
    }

    .contacts-sidebar-overlay.show {
        pointer-events: auto;
    }

    .contacts-sidebar-close {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .contacts-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 320px;
        max-width: 90vw;
        height: 100vh;
        height: 100dvh;
        background: var(--surface-color);
        z-index: 1050;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        padding-top: 3.5rem;
        box-shadow: 4px 0 16px rgba(0, 0, 0, 0.15);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .contacts-sidebar.show {
        transform: translateX(0);
    }

    .contacts-sidebar-header {
        flex-shrink: 0;
    }

    .contacts-nav {
        flex-shrink: 0;
    }

    .contacts-groups {
        flex: 1;
        overflow-y: auto;
    }

    .contacts-tags {
        flex-shrink: 0;
    }

    body.contacts-sidebar-open {
        overflow: hidden;
    }
}

@media (max-width: 991.98px) {
    .contacts-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 767.98px) {
    .contacts-container {
        min-height: auto;
    }

    .contacts-header {
        flex-wrap: wrap;
    }

    .contacts-header .contacts-search {
        order: 3;
        width: 100%;
        max-width: none;
        margin-top: 0.5rem;
    }

    .contacts-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    .contact-card {
        padding: 1rem;
    }

    .contact-card-avatar {
        width: 60px;
        height: 60px;
    }

    .contact-avatar-initial {
        width: 60px;
        height: 60px;
        font-size: 1.25rem;
    }

    .contacts-pagination {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .contacts-table th:nth-child(n + 4),
    .contacts-table td:nth-child(n + 4) {
        display: none;
    }

    .contact-detail-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .contact-detail-tags {
        justify-content: center;
    }

    .contact-detail-actions {
        margin-top: 1rem;
    }

    .contact-detail-quick-actions {
        grid-template-columns: repeat(4, 1fr);
    }

    .contact-quick-action {
        padding: 0.75rem 0.5rem;
    }

    .contact-quick-action span {
        font-size: 0.6875rem;
    }
}

.file-manager {
    display: flex;
    height: calc(100vh - 200px);
    min-height: 500px;
    background: var(--surface-color);
    border-radius: var(--bs-border-radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.fm-sidebar {
    width: 280px;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    background: var(--surface-color);
}

.fm-sidebar-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.fm-upload-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--accent-color);
    color: var(--contrast-color);
    border: none;
    border-radius: var(--bs-border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.fm-upload-btn:hover {
    background: color-mix(in srgb, var(--accent-color), black 15%);
}

.fm-nav {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
}

.fm-nav-title {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted-color);
    padding: 0.5rem 1.25rem;
    margin-top: 0.5rem;
}

.fm-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1.25rem;
    color: var(--default-color);
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.fm-nav-item:hover {
    background: var(--background-color);
    color: var(--default-color);
}

.fm-nav-item.active {
    background: color-mix(in srgb, var(--accent-color), transparent 90%);
    color: var(--accent-color);
}

.fm-nav-item i {
    font-size: 1.125rem;
    width: 20px;
    text-align: center;
}

.fm-nav-item span:not(.badge) {
    flex: 1;
    font-size: 0.875rem;
}

.fm-nav-item .badge {
    font-size: 0.6875rem;
    padding: 0.2rem 0.5rem;
    flex: 0 0 auto;
    min-width: auto;
}

.fm-storage {
    padding: 1.25rem;
    border-top: 1px solid var(--border-color);
}

.fm-storage .progress {
    height: 6px;
    margin-bottom: 0.5rem;
}

.fm-storage-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.fm-storage-label {
    font-size: 0.8125rem;
    color: var(--default-color);
}

.fm-storage-value {
    font-size: 0.8125rem;
    color: var(--muted-color);
}

.fm-storage-detail {
    font-size: 0.75rem;
    color: var(--muted-color);
}

.fm-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.fm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    gap: 1rem;
    flex-wrap: wrap;
}

.fm-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
}

.fm-breadcrumb a {
    color: var(--muted-color);
    text-decoration: none;
    transition: color 0.2s;
}

.fm-breadcrumb a:hover {
    color: var(--accent-color);
}

.fm-breadcrumb span {
    color: var(--default-color);
    font-weight: 500;
}

.fm-breadcrumb i {
    color: var(--muted-color);
    font-size: 0.75rem;
}

.fm-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.fm-search {
    position: relative;
    width: 240px;
}

.fm-search .form-control {
    padding-left: 2.5rem;
    background: var(--background-color);
    border-color: var(--border-color);
}

.fm-search .form-control:focus {
    background: var(--surface-color);
}

.fm-search-icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted-color);
}

.fm-view-toggle {
    display: flex;
    background: var(--background-color);
    border-radius: var(--bs-border-radius);
    padding: 0.25rem;
}

.fm-view-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    color: var(--muted-color);
    border-radius: var(--bs-border-radius);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fm-view-btn:hover {
    color: var(--default-color);
}

.fm-view-btn.active {
    background: var(--surface-color);
    color: var(--accent-color);
    box-shadow: var(--bs-box-shadow-sm);
}

.fm-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem;
}

.fm-content::-webkit-scrollbar {
    width: 6px;
}

.fm-content::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.fm-section-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 1rem;
}

.fm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.fm-grid.active {
    display: grid;
}

.fm-grid:not(.active) {
    display: none;
}

.fm-item {
    background: var(--background-color);
    border-radius: var(--bs-border-radius-lg);
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
    position: relative;
}

.fm-item:hover {
    background: color-mix(in srgb, var(--accent-color), transparent 95%);
    border-color: color-mix(in srgb, var(--accent-color), transparent 80%);
}

.fm-item:hover .fm-item-checkbox {
    opacity: 1;
}

.fm-item.selected {
    background: color-mix(in srgb, var(--accent-color), transparent 90%);
    border-color: var(--accent-color);
}

.fm-item.selected .fm-item-checkbox {
    opacity: 1;
}

.fm-item-checkbox {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.fm-item-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.fm-item-icon.folder {
    color: #fbbf24;
}

.fm-item-icon.image {
    color: var(--success-color);
}

.fm-item-icon.document {
    color: var(--accent-color);
}

.fm-item-icon.pdf {
    color: var(--danger-color);
}

.fm-item-icon.spreadsheet {
    color: var(--success-color);
}

.fm-item-icon.video {
    color: var(--info-color);
}

.fm-item-icon.audio {
    color: #a855f7;
}

.fm-item-icon.archive {
    color: var(--warning-color);
}

.fm-item-icon.code {
    color: #6366f1;
}

.fm-item-name {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--heading-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.25rem;
}

.fm-item-meta {
    font-size: 0.6875rem;
    color: var(--muted-color);
}

.fm-item-thumbnail {
    width: 100%;
    height: 80px;
    border-radius: var(--bs-border-radius);
    -o-object-fit: cover;
    object-fit: cover;
    margin-bottom: 0.75rem;
}

.fm-list {
    display: none;
}

.fm-list.active {
    display: block;
}

.fm-list-table {
    width: 100%;
}

.fm-list-table th {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.fm-list-table th.sortable {
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

.fm-list-table th.sortable:hover {
    color: var(--default-color);
}

.fm-list-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.875rem;
    vertical-align: middle;
}

.fm-list-table tr:hover {
    background: var(--background-color);
}

.fm-list-table tr:hover .fm-list-actions {
    opacity: 1;
}

.fm-list-table tr.selected {
    background: color-mix(in srgb, var(--accent-color), transparent 90%);
}

.fm-list-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.fm-list-icon {
    font-size: 1.5rem;
    width: 32px;
    text-align: center;
}

.fm-list-name {
    font-weight: 500;
    color: var(--heading-color);
}

.fm-list-actions {
    display: flex;
    gap: 0.25rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.fm-list-action-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: none;
    color: var(--muted-color);
    border-radius: var(--bs-border-radius);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fm-list-action-btn:hover {
    background: var(--surface-color);
    color: var(--default-color);
}

.fm-quick-access {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.fm-quick-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--background-color);
    border-radius: var(--bs-border-radius-lg);
    cursor: pointer;
    transition: all 0.2s;
}

.fm-quick-item:hover {
    background: color-mix(in srgb, var(--accent-color), transparent 95%);
}

.fm-quick-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--bs-border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.fm-quick-icon.documents {
    background: color-mix(in srgb, var(--accent-color), transparent 85%);
    color: var(--accent-color);
}

.fm-quick-icon.images {
    background: color-mix(in srgb, var(--success-color), transparent 85%);
    color: var(--success-color);
}

.fm-quick-icon.videos {
    background: color-mix(in srgb, var(--info-color), transparent 85%);
    color: var(--info-color);
}

.fm-quick-icon.music {
    background: color-mix(in srgb, #a855f7, transparent 85%);
    color: #a855f7;
}

.fm-quick-info h6 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--heading-color);
    margin: 0 0 0.125rem 0;
}

.fm-quick-info span {
    font-size: 0.75rem;
    color: var(--muted-color);
}

.fm-context-menu {
    position: fixed;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--bs-border-radius);
    box-shadow: var(--bs-box-shadow-lg);
    padding: 0.5rem 0;
    min-width: 180px;
    z-index: 1050;
    display: none;
}

.fm-context-menu.show {
    display: block;
}

.fm-context-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: var(--default-color);
    cursor: pointer;
    transition: background 0.2s;
}

.fm-context-item:hover {
    background: var(--background-color);
}

.fm-context-item i {
    width: 16px;
    color: var(--muted-color);
}

.fm-context-item.danger {
    color: var(--danger-color);
}

.fm-context-item.danger i {
    color: var(--danger-color);
}

.fm-context-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.5rem 0;
}

.fm-empty {
    text-align: center;
    padding: 3rem;
    color: var(--muted-color);
}

.fm-empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.fm-empty h5 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--heading-color);
    margin: 0 0 0.5rem 0;
}

.fm-empty p {
    font-size: 0.875rem;
    margin: 0;
}

.fm-sidebar-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: var(--background-color);
    border: none;
    border-radius: 50%;
    color: var(--muted-color);
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.fm-sidebar-toggle:hover {
    background: var(--border-color);
    color: var(--default-color);
}

.fm-sidebar-close {
    display: none;
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 44px;
    height: 44px;
    padding: 0;
    background: color-mix(in srgb, var(--default-color), transparent 95%);
    border: none;
    border-radius: var(--bs-border-radius);
    color: var(--muted-color);
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
}

.fm-sidebar-close:hover {
    background: color-mix(in srgb, var(--danger-color), transparent 85%);
    color: var(--danger-color);
}

.fm-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fm-sidebar-overlay.show {
    opacity: 1;
}

[data-theme="dark"] .fm-sidebar-overlay {
    background: rgba(0, 0, 0, 0.7);
}

@media (max-width: 1279.98px) {
    .fm-sidebar-toggle {
        display: flex;
    }

    .fm-sidebar-overlay {
        display: block;
        pointer-events: none;
    }

    .fm-sidebar-overlay.show {
        pointer-events: auto;
    }

    .fm-sidebar-close {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .fm-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 280px;
        max-width: 90vw;
        height: 100vh;
        height: 100dvh;
        background: var(--surface-color);
        z-index: 1050;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        padding-top: 3.5rem;
        box-shadow: 4px 0 16px rgba(0, 0, 0, 0.15);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .fm-sidebar.show {
        transform: translateX(0);
    }

    .fm-sidebar-header {
        flex-shrink: 0;
    }

    .fm-nav {
        flex: 1;
        overflow-y: auto;
    }

    .fm-storage {
        flex-shrink: 0;
    }

    body.fm-sidebar-open {
        overflow: hidden;
    }
}

@media (max-width: 991.98px) {
    .fm-search {
        width: 180px;
    }
}

@media (max-width: 767.98px) {
    .file-manager {
        min-height: auto;
    }

    .fm-header {
        flex-direction: column;
        align-items: stretch;
    }

    .fm-search {
        width: 100%;
    }

    .fm-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}

.email-container {
    display: flex;
    height: calc(100vh - 200px);
    min-height: 500px;
    background: var(--surface-color);
    border-radius: var(--bs-border-radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.email-sidebar {
    width: 280px;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.email-sidebar-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.email-nav {
    padding: 0.75rem 0;
}

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

.email-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1.25rem;
    color: var(--default-color);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.email-nav-item i {
    font-size: 1.125rem;
    width: 20px;
    text-align: center;
    color: var(--muted-color);
}

.email-nav-item span:first-of-type {
    flex: 1;
}

.email-nav-item:hover {
    background: var(--background-color);
}

.email-nav-item.active {
    background: color-mix(in srgb, var(--accent-color), transparent 92%);
    border-left-color: var(--accent-color);
    color: var(--accent-color);
    font-weight: 500;
}

.email-nav-item.active i {
    color: var(--accent-color);
}

.email-nav-badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.125rem 0.5rem;
    border-radius: 10px;
    background: var(--accent-color);
    color: var(--contrast-color);
}

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

.email-labels {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border-color);
}

.email-labels-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.email-labels-header span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.email-labels-add {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: none;
    color: var(--muted-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.email-labels-add:hover {
    background: var(--background-color);
    color: var(--default-color);
}

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

.email-label-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0;
    font-size: 0.8125rem;
    color: var(--default-color);
    cursor: pointer;
    border-radius: var(--bs-border-radius);
}

.email-label-item:hover {
    color: var(--accent-color);
}

.email-label-item.active {
    color: var(--accent-color);
    font-weight: 500;
}

.email-label-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.email-storage {
    padding: 1rem 1.25rem;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
}

.email-storage-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--muted-color);
    margin-bottom: 0.5rem;
}

.email-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.email-list-view {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.email-list-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.email-list-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.email-list-actions .form-check {
    margin: 0;
    padding-left: 0;
}

.email-list-actions .form-check .form-check-input {
    margin: 0;
}

.email-action-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--bs-border-radius);
    border: none;
    background: none;
    color: var(--muted-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.email-action-btn:hover {
    background: var(--background-color);
    color: var(--default-color);
}

.email-search {
    flex: 1;
    position: relative;
    max-width: 400px;
}

.email-search .form-control {
    padding-left: 2.5rem;
    background: var(--background-color);
    border-color: transparent;
}

.email-search .form-control:focus {
    background: var(--surface-color);
    border-color: var(--border-color);
}

.email-search-icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted-color);
}

.email-list-pagination {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.email-pagination-info {
    font-size: 0.8125rem;
    color: var(--muted-color);
}

.email-pagination-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--bs-border-radius);
    border: 1px solid var(--border-color);
    background: var(--surface-color);
    color: var(--muted-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.email-pagination-btn:hover:not(:disabled) {
    background: var(--background-color);
    color: var(--default-color);
}

.email-pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.email-list {
    flex: 1;
    overflow-y: auto;
}

.email-list::-webkit-scrollbar {
    width: 6px;
}

.email-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.email-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.2s;
}

.email-item:hover {
    background: var(--background-color);
}

.email-item.unread {
    background: color-mix(in srgb, var(--accent-color), transparent 97%);
}

.email-item.unread .email-item-sender,
.email-item.unread .email-item-subject {
    font-weight: 600;
}

.email-item.unread:hover {
    background: color-mix(in srgb, var(--accent-color), transparent 94%);
}

.email-item-select {
    flex-shrink: 0;
}

.email-item-select .form-check-input {
    margin: 0;
}

.email-item-star {
    flex-shrink: 0;
    background: none;
    border: none;
    color: var(--muted-color);
    cursor: pointer;
    padding: 0;
    font-size: 1rem;
    transition: color 0.2s;
}

.email-item-star:hover {
    color: var(--warning-color);
}

.email-item-star.starred {
    color: var(--warning-color);
}

.email-item-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
}

.email-item-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    -o-object-fit: cover;
    object-fit: cover;
}

.email-item-content {
    flex: 1;
    min-width: 0;
}

.email-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.125rem;
}

.email-item-sender {
    font-size: 0.875rem;
    color: var(--heading-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.email-item-time {
    font-size: 0.75rem;
    color: var(--muted-color);
    flex-shrink: 0;
    margin-left: 0.5rem;
}

.email-item-subject {
    font-size: 0.8125rem;
    color: var(--default-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.125rem;
}

.email-item-preview {
    font-size: 0.8125rem;
    color: var(--muted-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.email-item-labels {
    display: flex;
    gap: 0.25rem;
    flex-shrink: 0;
}

.email-item-label {
    font-size: 0.6875rem;
    padding: 0.125rem 0.5rem;
    border-radius: 10px;
    color: var(--contrast-color);
    font-weight: 500;
}

.email-item-attachment {
    color: var(--muted-color);
    flex-shrink: 0;
}

.email-detail-view {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.email-detail-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.email-back-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--bs-border-radius);
    border: none;
    background: none;
    color: var(--muted-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.email-back-btn:hover {
    background: var(--background-color);
    color: var(--default-color);
}

.email-detail-actions {
    display: flex;
    gap: 0.25rem;
}

.email-detail-nav {
    display: flex;
    gap: 0.25rem;
    margin-left: auto;
}

.email-detail-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.email-detail-content::-webkit-scrollbar {
    width: 6px;
}

.email-detail-content::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.email-detail-subject {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.email-detail-subject h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--heading-color);
    margin: 0;
    line-height: 1.4;
}

.email-detail-labels {
    display: flex;
    gap: 0.25rem;
    flex-shrink: 0;
}

.email-message {
    background: var(--background-color);
    border-radius: var(--bs-border-radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.email-message-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.email-message-sender {
    display: flex;
    gap: 0.75rem;
}

.email-message-sender img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    -o-object-fit: cover;
    object-fit: cover;
}

.email-message-sender-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.email-message-sender-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--heading-color);
}

.email-message-sender-email {
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--muted-color);
    margin-left: 0.25rem;
}

.email-message-recipients {
    font-size: 0.8125rem;
    color: var(--muted-color);
}

.email-message-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.email-message-date {
    font-size: 0.8125rem;
    color: var(--muted-color);
}

.email-star-btn.starred {
    color: var(--warning-color);
}

.email-message-body {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--default-color);
}

.email-message-body p {
    margin-bottom: 1rem;
}

.email-message-body p:last-child {
    margin-bottom: 0;
}

.email-message-body ul,
.email-message-body ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.email-message-body ul li,
.email-message-body ol li {
    margin-bottom: 0.5rem;
}

.email-attachments {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.email-attachments-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.email-attachments-header i {
    color: var(--muted-color);
}

.email-attachments-header span {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--heading-color);
    flex: 1;
}

.email-attachments-download {
    font-size: 0.8125rem;
    color: var(--accent-color);
    text-decoration: none;
}

.email-attachments-download:hover {
    text-decoration: underline;
}

.email-attachments-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.email-attachment-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--bs-border-radius);
}

.email-attachment-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--bs-border-radius);
    background: color-mix(in srgb, var(--accent-color), transparent 90%);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.email-attachment-info {
    flex: 1;
    min-width: 0;
}

.email-attachment-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--heading-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.email-attachment-size {
    font-size: 0.75rem;
    color: var(--muted-color);
}

.email-attachment-actions {
    display: flex;
    gap: 0.25rem;
}

.email-attachment-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--bs-border-radius);
    border: none;
    background: none;
    color: var(--muted-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.email-attachment-btn:hover {
    background: var(--background-color);
    color: var(--accent-color);
}

.email-quick-reply {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--background-color);
    border-radius: var(--bs-border-radius-lg);
}

.email-quick-reply img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    -o-object-fit: cover;
    object-fit: cover;
}

.email-quick-reply .btn {
    flex-shrink: 0;
}

.email-quick-reply-input {
    flex: 1;
}

.email-quick-reply-input textarea {
    width: 100%;
    border: 1px solid var(--border-color);
    background: var(--surface-color);
    border-radius: var(--bs-border-radius);
    padding: 0.75rem;
    font-size: 0.875rem;
    color: var(--default-color);
    resize: none;
    min-height: 80px;
}

.email-quick-reply-input textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.email-quick-reply-input textarea::-moz-placeholder {
    color: var(--muted-color);
}

.email-quick-reply-input textarea::placeholder {
    color: var(--muted-color);
}

.email-compose-form .form-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--heading-color);
}

.email-compose-form .form-control {
    font-size: 0.875rem;
}

.email-compose-form textarea.form-control {
    resize: none;
}

.email-compose-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.email-compose-attachment {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    background: var(--background-color);
    border-radius: var(--bs-border-radius);
    font-size: 0.8125rem;
    color: var(--default-color);
}

.email-compose-attachment i {
    color: var(--muted-color);
}

.email-compose-attachment-remove {
    background: none;
    border: none;
    padding: 0;
    color: var(--muted-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.email-compose-attachment-remove:hover {
    color: var(--danger-color);
}

.email-compose-tools {
    display: flex;
    gap: 0.25rem;
}

.email-compose-tool {
    width: 36px;
    height: 36px;
    border-radius: var(--bs-border-radius);
    border: none;
    background: none;
    color: var(--muted-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.email-compose-tool:hover {
    background: var(--background-color);
    color: var(--default-color);
}

.email-sidebar-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: var(--background-color);
    border: none;
    border-radius: 50%;
    color: var(--muted-color);
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.email-sidebar-toggle:hover {
    background: var(--border-color);
    color: var(--default-color);
}

.email-sidebar-close {
    display: none;
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 44px;
    height: 44px;
    padding: 0;
    background: color-mix(in srgb, var(--default-color), transparent 95%);
    border: none;
    border-radius: var(--bs-border-radius);
    color: var(--muted-color);
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
}

.email-sidebar-close:hover {
    background: color-mix(in srgb, var(--danger-color), transparent 85%);
    color: var(--danger-color);
}

.email-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.email-sidebar-overlay.show {
    opacity: 1;
}

[data-theme="dark"] .email-sidebar-overlay {
    background: rgba(0, 0, 0, 0.7);
}

@media (max-width: 1279.98px) {
    .email-sidebar-toggle {
        display: flex;
    }

    .email-sidebar-overlay {
        display: block;
        pointer-events: none;
    }

    .email-sidebar-overlay.show {
        pointer-events: auto;
    }

    .email-sidebar-close {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .email-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 280px;
        max-width: 90vw;
        height: 100vh;
        height: 100dvh;
        background: var(--surface-color);
        z-index: 1050;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        padding-top: 3.5rem;
        box-shadow: 4px 0 16px rgba(0, 0, 0, 0.15);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .email-sidebar.show {
        transform: translateX(0);
    }

    .email-sidebar-header {
        flex-shrink: 0;
    }

    .email-nav {
        flex-shrink: 0;
    }

    .email-labels {
        flex: 1;
        overflow-y: auto;
    }

    .email-storage {
        flex-shrink: 0;
    }

    body.email-sidebar-open {
        overflow: hidden;
    }
}

@media (max-width: 991.98px) {
    .email-message-meta {
        flex-wrap: wrap;
    }
}

@media (max-width: 767.98px) {
    .email-container {
        min-height: calc(100vh - 180px);
    }

    .email-list-header {
        flex-wrap: wrap;
    }

    .email-search {
        order: 1;
        flex-basis: 100%;
        max-width: none;
        margin-top: 0.5rem;
    }

    .email-list-pagination {
        margin-left: 0;
    }

    .email-item-preview {
        display: none;
    }

    .email-detail-content {
        padding: 1rem;
    }

    .email-message {
        padding: 1rem;
    }

    .email-message-header {
        flex-direction: column;
        gap: 1rem;
    }

    .email-message-meta {
        width: 100%;
        justify-content: flex-start;
    }
}

.todo-container {
    display: flex;
    height: calc(100vh - 200px);
    min-height: 500px;
    background: var(--surface-color);
    border-radius: var(--bs-border-radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.todo-sidebar {
    width: 280px;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.todo-sidebar-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.todo-nav {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.todo-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1.25rem;
    color: var(--default-color);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.todo-nav-item i {
    font-size: 1.125rem;
    width: 20px;
    text-align: center;
    color: var(--muted-color);
}

.todo-nav-item span:first-of-type {
    flex: 1;
}

.todo-nav-item:hover {
    background: var(--background-color);
}

.todo-nav-item.active {
    background: color-mix(in srgb, var(--accent-color), transparent 92%);
    border-left-color: var(--accent-color);
    color: var(--accent-color);
    font-weight: 500;
}

.todo-nav-item.active i {
    color: var(--accent-color);
}

.todo-nav-count {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.125rem 0.5rem;
    border-radius: 10px;
    background: var(--background-color);
    color: var(--muted-color);
}

.todo-projects {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.todo-projects-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.todo-projects-header span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.todo-projects-add {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: none;
    color: var(--muted-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.todo-projects-add:hover {
    background: var(--background-color);
    color: var(--default-color);
}

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

.todo-project-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0.5rem;
    font-size: 0.8125rem;
    color: var(--default-color);
    cursor: pointer;
    border-radius: var(--bs-border-radius);
    margin: 0 -0.5rem;
}

.todo-project-item span:nth-child(2) {
    flex: 1;
}

.todo-project-item:hover {
    background: var(--background-color);
}

.todo-project-item.active {
    background: color-mix(in srgb, var(--accent-color), transparent 92%);
    color: var(--accent-color);
    font-weight: 500;
}

.todo-project-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.todo-tags {
    padding: 1rem 1.25rem;
}

.todo-tags-header {
    margin-bottom: 0.75rem;
}

.todo-tags-header span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.todo-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.todo-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.625rem;
    border-radius: 10px;
    background: var(--background-color);
    color: var(--muted-color);
    cursor: pointer;
    transition: all 0.2s;
}

.todo-tag:hover {
    background: color-mix(in srgb, var(--accent-color), transparent 90%);
    color: var(--accent-color);
}

.todo-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.todo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.todo-header-title h5 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--heading-color);
    margin: 0;
}

.todo-header-count {
    font-size: 0.8125rem;
    color: var(--muted-color);
}

.todo-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.todo-search {
    position: relative;
    width: 200px;
}

.todo-search .form-control {
    padding-left: 2.25rem;
    background: var(--background-color);
    border-color: transparent;
    font-size: 0.875rem;
}

.todo-search .form-control:focus {
    background: var(--surface-color);
    border-color: var(--border-color);
}

.todo-search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted-color);
    font-size: 0.875rem;
}

.todo-filter-btn {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--bs-border-radius);
    border: 1px solid var(--border-color);
    background: var(--surface-color);
    color: var(--muted-color);
    font-size: 0.8125rem;
    cursor: pointer;
    transition: all 0.2s;
}

.todo-filter-btn:hover {
    background: var(--background-color);
    color: var(--default-color);
}

.todo-view-toggle {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: var(--bs-border-radius);
    overflow: hidden;
}

.todo-view-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--surface-color);
    color: var(--muted-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.todo-view-btn:not(:last-child) {
    border-right: 1px solid var(--border-color);
}

.todo-view-btn:hover {
    background: var(--background-color);
    color: var(--default-color);
}

.todo-view-btn.active {
    background: var(--accent-color);
    color: var(--contrast-color);
}

.todo-list {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
}

.todo-list::-webkit-scrollbar {
    width: 6px;
}

.todo-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.todo-section {
    margin-bottom: 1rem;
}

.todo-section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    position: sticky;
    top: 0;
    background: var(--surface-color);
    z-index: 1;
}

.todo-section-header h6 {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--heading-color);
    margin: 0;
    flex: 1;
}

.todo-section-toggle {
    width: 24px;
    height: 24px;
    border-radius: var(--bs-border-radius);
    border: none;
    background: none;
    color: var(--muted-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.todo-section-toggle:hover {
    background: var(--background-color);
    color: var(--default-color);
}

.todo-section-count {
    font-size: 0.75rem;
    color: var(--muted-color);
    background: var(--background-color);
    padding: 0.125rem 0.5rem;
    border-radius: 10px;
}

.todo-section-content {
    padding: 0.25rem 0;
}

.todo-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    transition: background 0.2s;
    border-left: 3px solid transparent;
}

.todo-item:hover {
    background: var(--background-color);
}

.todo-item.selected {
    background: color-mix(in srgb, var(--accent-color), transparent 95%);
    border-left-color: var(--accent-color);
}

.todo-item.completed .todo-item-title {
    text-decoration: line-through;
    color: var(--muted-color);
}

.todo-item.completed .todo-item-content {
    opacity: 0.7;
}

.todo-item-check {
    padding-top: 0.125rem;
}

.todo-item-check .todo-checkbox {
    display: none;
}

.todo-item-check .todo-checkbox + label {
    display: block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color-dark);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.todo-item-check .todo-checkbox + label:hover {
    border-color: var(--accent-color);
}

.todo-item-check .todo-checkbox + label::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-color);
    transition: transform 0.2s;
}

.todo-item-check .todo-checkbox:checked + label {
    border-color: var(--accent-color);
    background: var(--accent-color);
}

.todo-item-check .todo-checkbox:checked + label::after {
    content: "";
    width: 5px;
    height: 9px;
    border: solid var(--contrast-color);
    border-width: 0 2px 2px 0;
    border-radius: 0;
    background: transparent;
    transform: translate(-50%, -60%) rotate(45deg);
}

.todo-item-content {
    flex: 1;
    min-width: 0;
}

.todo-item-title {
    font-size: 0.9375rem;
    color: var(--default-color);
    margin-bottom: 0.375rem;
    line-height: 1.4;
}

.todo-item-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.todo-item-project {
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    background: color-mix(
        in srgb,
        var(--project-color, var(--accent-color)),
        transparent 85%
    );
    color: var(--project-color, var(--accent-color));
    font-weight: 500;
}

.todo-item-due {
    font-size: 0.75rem;
    color: var(--muted-color);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.todo-item-due i {
    font-size: 0.6875rem;
}

.todo-item-tag {
    font-size: 0.6875rem;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    background: var(--background-color);
    color: var(--muted-color);
}

.todo-item-completed-date {
    font-size: 0.75rem;
    color: var(--muted-color);
}

.todo-item-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.todo-item-star {
    background: none;
    border: none;
    padding: 0;
    color: var(--muted-color);
    cursor: pointer;
    font-size: 1rem;
    opacity: 0;
    transition: all 0.2s;
}

.todo-item-star:hover {
    color: var(--warning-color);
}

.todo-item-star.starred {
    color: var(--warning-color);
    opacity: 1;
}

.todo-item:hover .todo-item-star {
    opacity: 1;
}

.todo-item-priority {
    font-size: 0.6875rem;
    font-weight: 500;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
}

.todo-item-priority.high {
    background: var(--danger-color-light);
    color: var(--danger-color);
}

.todo-item-priority.medium {
    background: var(--warning-color-light);
    color: var(--warning-color);
}

.todo-item-priority.low {
    background: var(--success-color-light);
    color: var(--success-color);
}

.todo-item-more {
    width: 28px;
    height: 28px;
    border-radius: var(--bs-border-radius);
    border: none;
    background: none;
    color: var(--muted-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s;
}

.todo-item-more:hover {
    background: var(--background-color);
    color: var(--default-color);
}

.todo-item:hover .todo-item-more {
    opacity: 1;
}

.todo-quick-add {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border-color);
    background: var(--surface-color);
}

.todo-quick-add-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: var(--bs-border-radius);
    border: 1px dashed var(--border-color);
    background: none;
    color: var(--muted-color);
    font-size: 0.875rem;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s;
}

.todo-quick-add-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: color-mix(in srgb, var(--accent-color), transparent 95%);
}

.todo-quick-add-form .form-control {
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
}

.todo-quick-add-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.todo-color-picker {
    display: flex;
    gap: 0.5rem;
}

.todo-color-option {
    cursor: pointer;
}

.todo-color-option input {
    display: none;
}

.todo-color-option input:checked + span {
    transform: scale(1.1);
    box-shadow: 0 0 0 3px
        color-mix(in srgb, var(--accent-color), transparent 70%);
}

.todo-color-option span {
    display: block;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    transition: all 0.2s;
}

.todo-color-option span:hover {
    transform: scale(1.1);
}

.todo-view-task {
    padding: 0.5rem 0;
}

.todo-view-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.todo-view-check {
    padding-top: 0.25rem;
}

.todo-view-title-wrapper {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.todo-view-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--heading-color);
    margin: 0;
    line-height: 1.4;
}

.todo-view-star {
    background: none;
    border: none;
    padding: 0.25rem;
    color: var(--muted-color);
    cursor: pointer;
    font-size: 1.25rem;
    transition: color 0.2s;
}

.todo-view-star:hover {
    color: var(--warning-color);
}

.todo-view-star.starred {
    color: var(--warning-color);
}

.todo-view-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
    background: var(--background-color);
    border-radius: var(--bs-border-radius);
    margin-bottom: 1.5rem;
}

.todo-view-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--default-color);
}

.todo-view-meta-item i {
    color: var(--muted-color);
}

.todo-view-project {
    font-size: 0.75rem;
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
    background: color-mix(
        in srgb,
        var(--project-color, var(--accent-color)),
        transparent 85%
    );
    color: var(--project-color, var(--accent-color));
    font-weight: 500;
}

.todo-view-section {
    margin-bottom: 1.5rem;
}

.todo-view-section h6 {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.todo-view-section p {
    font-size: 0.9375rem;
    color: var(--default-color);
    line-height: 1.6;
    margin: 0;
}

.todo-view-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.todo-subtasks {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.todo-subtask {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.todo-subtask label {
    font-size: 0.9375rem;
    color: var(--default-color);
    cursor: pointer;
}

.todo-subtask input:checked + label {
    text-decoration: line-through;
    color: var(--muted-color);
}

.todo-subtask-check {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent-color);
}

.todo-activity {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.todo-activity-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.todo-activity-item img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    -o-object-fit: cover;
    object-fit: cover;
}

.todo-activity-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.todo-activity-text {
    font-size: 0.875rem;
    color: var(--default-color);
}

.todo-activity-text strong {
    font-weight: 600;
}

.todo-activity-time {
    font-size: 0.75rem;
    color: var(--muted-color);
}

.todo-edit-subtasks {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.todo-edit-subtask {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.todo-edit-subtask .form-control {
    flex: 1;
}

.todo-edit-subtask-remove {
    width: 32px;
    height: 32px;
    border-radius: var(--bs-border-radius);
    border: none;
    background: none;
    color: var(--muted-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.todo-edit-subtask-remove:hover {
    background: var(--danger-color-light);
    color: var(--danger-color);
}

.todo-list.board-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    padding: 1rem 1.25rem;
}

.todo-list.board-view .todo-section {
    display: contents;
}

.todo-list.board-view .todo-section-header {
    display: none;
}

.todo-list.board-view .todo-section-content {
    display: contents;
    padding: 0;
}

.todo-list.board-view .todo-item {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--bs-border-radius-lg);
    border-left: 4px solid var(--accent-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
}

.todo-list.board-view .todo-item:hover {
    background: var(--surface-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.todo-list.board-view .todo-item.selected {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px
        color-mix(in srgb, var(--accent-color), transparent 70%);
}

.todo-list.board-view .todo-item[data-priority="high"] {
    border-left-color: var(--danger-color);
}

.todo-list.board-view .todo-item[data-priority="medium"] {
    border-left-color: var(--warning-color);
}

.todo-list.board-view .todo-item[data-priority="low"] {
    border-left-color: var(--success-color);
}

.todo-list.board-view .todo-item-check {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding-top: 0;
}

.todo-list.board-view .todo-item-content {
    order: 1;
    padding-right: 2rem;
}

.todo-list.board-view .todo-item-title {
    font-size: 0.9375rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.todo-list.board-view .todo-item-meta {
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.todo-list.board-view .todo-item-actions {
    order: 2;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
    justify-content: space-between;
}

.todo-list.board-view .todo-item-actions .todo-item-star,
.todo-list.board-view .todo-item-actions .todo-item-more {
    opacity: 1;
}

.todo-list.board-view .todo-item-priority {
    margin-left: 0;
}

.todo-list.board-view .todo-item {
    position: relative;
}

.todo-sidebar-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: var(--accent-color);
    border: none;
    border-radius: 50%;
    color: var(--background-color);
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.todo-sidebar-toggle:hover {
    background: var(--border-color);
    color: var(--default-color);
}

.todo-sidebar-close {
    display: none;
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 44px;
    height: 44px;
    padding: 0;
    background: color-mix(in srgb, var(--default-color), transparent 95%);
    border: none;
    border-radius: var(--bs-border-radius);
    color: var(--muted-color);
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
}

.todo-sidebar-close:hover {
    background: color-mix(in srgb, var(--danger-color), transparent 85%);
    color: var(--danger-color);
}

.todo-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.todo-sidebar-overlay.show {
    opacity: 1;
}

[data-theme="dark"] .todo-sidebar-overlay {
    background: rgba(0, 0, 0, 0.7);
}

@media (max-width: 1279.98px) {
    .todo-sidebar-toggle {
        display: flex;
    }

    .todo-sidebar-overlay {
        display: block;
        pointer-events: none;
    }

    .todo-sidebar-overlay.show {
        pointer-events: auto;
    }

    .todo-sidebar-close {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .todo-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 280px;
        max-width: 90vw;
        height: 100vh;
        height: 100dvh;
        background: var(--surface-color);
        z-index: 1050;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        padding-top: 3.5rem;
        box-shadow: 4px 0 16px rgba(0, 0, 0, 0.15);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .todo-sidebar.show {
        transform: translateX(0);
    }

    .todo-sidebar-header {
        flex-shrink: 0;
    }

    .todo-nav {
        flex-shrink: 0;
    }

    .todo-projects {
        flex: 1;
        overflow-y: auto;
    }

    .todo-tags {
        flex-shrink: 0;
    }

    body.todo-sidebar-open {
        overflow: hidden;
    }
}

@media (max-width: 991.98px) {
    .todo-search {
        width: 150px;
    }
}

@media (max-width: 767.98px) {
    .todo-container {
        min-height: calc(100vh - 180px);
    }

    .todo-header {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .todo-header-title {
        width: 100%;
    }

    .todo-search {
        flex: 1;
        width: auto;
        min-width: 120px;
    }

    .todo-item-actions {
        flex-wrap: wrap;
    }

    .todo-item-priority {
        display: none;
    }

    .todo-item-star,
    .todo-item-more {
        opacity: 1;
    }
}

.support-container {
    display: flex;
    min-height: calc(100vh - 200px);
    background: var(--surface-color);
    border-radius: var(--bs-border-radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.support-sidebar {
    width: 280px;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    overflow-y: auto;
}

.support-sidebar-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.support-nav,
.support-status-nav,
.support-categories {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.support-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted-color);
}

.support-nav-add {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: none;
    background: none;
    color: var(--muted-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.support-nav-add:hover {
    background: var(--background-color);
    color: var(--accent-color);
}

.support-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1.25rem;
    color: var(--default-color);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.support-nav-item > i {
    font-size: 1.125rem;
    color: var(--muted-color);
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.support-nav-item > span:not(.badge):not(.support-status-dot) {
    flex: 1;
    min-width: 0;
}

.support-nav-item .badge {
    background: var(--background-color);
    color: var(--muted-color);
    font-weight: 500;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    flex-shrink: 0;
    margin-left: auto;
}

.support-nav-item:hover {
    background: var(--background-color);
    color: var(--heading-color);
}

.support-nav-item:hover > i {
    color: var(--accent-color);
}

.support-nav-item.active {
    background: color-mix(in srgb, var(--accent-color), transparent 90%);
    color: var(--accent-color);
}

.support-nav-item.active > i {
    color: var(--accent-color);
}

.support-nav-item.active .badge {
    background: color-mix(in srgb, var(--accent-color), transparent 80%);
    color: var(--accent-color);
}

.support-status-dot {
    width: 10px;
    height: 10px;
    min-width: 10px;
    max-width: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-block;
}

.support-status-dot.open {
    background: var(--info-color);
}

.support-status-dot.in-progress {
    background: var(--accent-color);
}

.support-status-dot.pending {
    background: var(--warning-color);
}

.support-status-dot.resolved {
    background: var(--success-color);
}

.support-status-dot.closed {
    background: var(--muted-color);
}

.support-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.support-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.support-search {
    flex: 1;
    position: relative;
    max-width: 400px;
}

.support-search i {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted-color);
}

.support-search .form-control {
    padding-left: 2.5rem;
    background: var(--background-color);
    border-color: transparent;
}

.support-search .form-control:focus {
    background: var(--surface-color);
    border-color: var(--accent-color);
}

.support-header-actions {
    display: flex;
    gap: 0.5rem;
}

.support-tickets {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.support-tickets::-webkit-scrollbar {
    width: 6px;
}

.support-tickets::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.ticket-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s;
}

.ticket-item:hover {
    background: var(--background-color);
}

.ticket-item:last-child {
    border-bottom: none;
}

.ticket-checkbox {
    padding-top: 0.25rem;
}

.ticket-content {
    flex: 1;
    min-width: 0;
}

.ticket-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.ticket-id {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted-color);
    font-family: monospace;
}

.ticket-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--heading-color);
    margin: 0 0 0.375rem;
    line-height: 1.4;
}

.ticket-item:hover .ticket-title {
    color: var(--accent-color);
}

.ticket-excerpt {
    font-size: 0.8125rem;
    color: var(--muted-color);
    margin: 0 0 0.75rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ticket-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.75rem;
    color: var(--muted-color);
}

.ticket-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ticket-user img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    -o-object-fit: cover;
    object-fit: cover;
}

.ticket-user span {
    font-weight: 500;
    color: var(--default-color);
}

.ticket-user-initial {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    font-weight: 600;
}

.ticket-category,
.ticket-time,
.ticket-replies {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.ticket-assignee {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
}

.ticket-assignee img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}

.ticket-assignee.unassigned {
    background: var(--background-color);
    border: 2px dashed var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-color);
}

.ticket-assignee.unassigned i {
    font-size: 1rem;
}

.priority-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.1875rem 0.5rem;
    border-radius: 20px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.priority-badge.urgent {
    background: var(--danger-color-light);
    color: var(--danger-color);
}

.priority-badge.high {
    background: var(--warning-color-light);
    color: color-mix(in srgb, var(--warning-color), black 15%);
}

.priority-badge.medium {
    background: var(--info-color-light);
    color: var(--info-color);
}

.priority-badge.low {
    background: var(--success-color-light);
    color: var(--success-color);
}

.ticket-status {
    display: inline-flex;
    align-items: center;
    padding: 0.1875rem 0.5rem;
    border-radius: 20px;
    font-size: 0.6875rem;
    font-weight: 600;
}

.ticket-status.open {
    background: var(--info-color-light);
    color: var(--info-color);
}

.ticket-status.in-progress {
    background: color-mix(in srgb, var(--accent-color), transparent 85%);
    color: var(--accent-color);
}

.ticket-status.pending {
    background: var(--warning-color-light);
    color: color-mix(in srgb, var(--warning-color), black 15%);
}

.ticket-status.resolved {
    background: var(--success-color-light);
    color: var(--success-color);
}

.ticket-status.closed {
    background: var(--background-color);
    color: var(--muted-color);
}

.support-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border-color);
}

.support-pagination-info {
    font-size: 0.8125rem;
    color: var(--muted-color);
}

.support-attachment-zone {
    border: 2px dashed var(--border-color);
    border-radius: var(--bs-border-radius-lg);
    padding: 2rem;
    text-align: center;
    transition: all 0.2s;
}

.support-attachment-zone:hover,
.support-attachment-zone.highlight {
    border-color: var(--accent-color);
    background: color-mix(in srgb, var(--accent-color), transparent 95%);
}

.support-attachment-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--muted-color);
}

.support-attachment-label i {
    font-size: 2rem;
    color: var(--accent-color);
}

.support-attachment-label span {
    font-weight: 500;
    color: var(--default-color);
}

.support-attachment-label small {
    font-size: 0.75rem;
}

.ticket-detail-header-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ticket-detail {
    padding: 0;
}

.ticket-detail-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--heading-color);
    margin: 0 0 1.5rem;
    line-height: 1.4;
}

.ticket-message {
    background: var(--background-color);
    border-radius: var(--bs-border-radius-lg);
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.ticket-message.original {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
}

.ticket-message.staff {
    background: color-mix(in srgb, var(--accent-color), transparent 95%);
    border-left: 3px solid var(--accent-color);
}

.ticket-message-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.ticket-message-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ticket-message-user img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    -o-object-fit: cover;
    object-fit: cover;
}

.ticket-message-user strong {
    display: block;
    font-size: 0.9375rem;
    color: var(--heading-color);
}

.ticket-message-user .badge {
    font-size: 0.6875rem;
    margin-left: 0.5rem;
}

.ticket-message-time {
    font-size: 0.75rem;
    color: var(--muted-color);
}

.ticket-message-body {
    font-size: 0.875rem;
    color: var(--default-color);
    line-height: 1.6;
}

.ticket-message-body p {
    margin: 0 0 0.75rem;
}

.ticket-message-body p:last-child {
    margin-bottom: 0;
}

.ticket-message-body ul,
.ticket-message-body ol {
    margin: 0.75rem 0;
    padding-left: 1.5rem;
}

.ticket-message-body ul li,
.ticket-message-body ol li {
    margin-bottom: 0.375rem;
}

.ticket-message-attachments {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ticket-attachment {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--bs-border-radius);
    font-size: 0.8125rem;
    color: var(--default-color);
    cursor: pointer;
    transition: all 0.2s;
}

.ticket-attachment i {
    color: var(--accent-color);
}

.ticket-attachment small {
    color: var(--muted-color);
}

.ticket-attachment:hover {
    border-color: var(--accent-color);
    background: color-mix(in srgb, var(--accent-color), transparent 95%);
}

.ticket-reply-form {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.ticket-reply-form h6 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 1rem;
}

.ticket-reply-editor .form-control {
    border-radius: var(--bs-border-radius-lg) var(--bs-border-radius-lg) 0 0;
    border-bottom: none;
    resize: none;
}

.ticket-reply-editor .form-control:focus {
    box-shadow: none;
    border-color: var(--accent-color);
}

.ticket-reply-editor .form-control:focus + .ticket-reply-actions {
    border-color: var(--accent-color);
}

.ticket-reply-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 0 0 var(--bs-border-radius-lg) var(--bs-border-radius-lg);
}

.ticket-reply-attachments {
    display: flex;
    gap: 0.25rem;
}

.ticket-detail-sidebar {
    background: var(--background-color);
    border-radius: var(--bs-border-radius-lg);
    padding: 1.25rem;
}

.ticket-detail-section {
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.ticket-detail-section:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
}

.ticket-detail-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted-color);
    margin-bottom: 1rem;
}

.ticket-detail-requester {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.ticket-detail-requester img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    -o-object-fit: cover;
    object-fit: cover;
}

.ticket-detail-requester strong {
    display: block;
    font-size: 0.9375rem;
    color: var(--heading-color);
}

.ticket-detail-requester span {
    font-size: 0.75rem;
    color: var(--muted-color);
}

.ticket-detail-requester-stats {
    display: flex;
    gap: 1.5rem;
}

.ticket-detail-requester-stats .stat {
    display: flex;
    flex-direction: column;
}

.ticket-detail-requester-stats .stat-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--heading-color);
}

.ticket-detail-requester-stats .stat-label {
    font-size: 0.6875rem;
    color: var(--muted-color);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.ticket-detail-assignee {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ticket-detail-assignee img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    -o-object-fit: cover;
    object-fit: cover;
}

.ticket-detail-assignee div {
    flex: 1;
}

.ticket-detail-assignee div strong {
    display: block;
    font-size: 0.875rem;
    color: var(--heading-color);
}

.ticket-detail-assignee div span {
    font-size: 0.75rem;
    color: var(--muted-color);
}

.ticket-detail-assignee .btn-link {
    font-size: 0.75rem;
    padding: 0;
    text-decoration: none;
}

.ticket-detail-assignee .btn-link:hover {
    text-decoration: underline;
}

.ticket-detail-info-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ticket-detail-info-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ticket-detail-info-item .label {
    font-size: 0.8125rem;
    color: var(--muted-color);
}

.ticket-detail-info-item .value {
    font-size: 0.8125rem;
    color: var(--default-color);
    font-weight: 500;
}

.ticket-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ticket-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--default-color);
}

.ticket-tag-add {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px dashed var(--border-color);
    background: none;
    color: var(--muted-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.ticket-tag-add:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.ticket-activity {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ticket-activity-item {
    display: flex;
    gap: 0.75rem;
    font-size: 0.8125rem;
}

.ticket-activity-item i {
    font-size: 1rem;
    margin-top: 0.125rem;
}

.ticket-activity-item div {
    flex: 1;
}

.ticket-activity-item div span {
    display: block;
    color: var(--default-color);
    line-height: 1.4;
}

.ticket-activity-item div small {
    font-size: 0.6875rem;
    color: var(--muted-color);
}

.support-sidebar-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: var(--background-color);
    border: none;
    border-radius: 50%;
    color: var(--muted-color);
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.support-sidebar-toggle:hover {
    background: var(--border-color);
    color: var(--default-color);
}

.support-sidebar-close {
    display: none;
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 44px;
    height: 44px;
    padding: 0;
    background: color-mix(in srgb, var(--default-color), transparent 95%);
    border: none;
    border-radius: var(--bs-border-radius);
    color: var(--muted-color);
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
}

.support-sidebar-close:hover {
    background: color-mix(in srgb, var(--danger-color), transparent 85%);
    color: var(--danger-color);
}

.support-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.support-sidebar-overlay.show {
    opacity: 1;
}

[data-theme="dark"] .support-sidebar-overlay {
    background: rgba(0, 0, 0, 0.7);
}

@media (max-width: 1279.98px) {
    .support-sidebar-toggle {
        display: flex;
    }

    .support-sidebar-overlay {
        display: block;
        pointer-events: none;
    }

    .support-sidebar-overlay.show {
        pointer-events: auto;
    }

    .support-sidebar-close {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .support-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 280px;
        max-width: 90vw;
        height: 100vh;
        height: 100dvh;
        background: var(--surface-color);
        z-index: 1050;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        padding-top: 3.5rem;
        box-shadow: 4px 0 16px rgba(0, 0, 0, 0.15);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .support-sidebar.show {
        transform: translateX(0);
    }

    .support-sidebar-header {
        flex-shrink: 0;
    }

    .support-nav {
        flex-shrink: 0;
    }

    .support-status-nav {
        flex-shrink: 0;
    }

    .support-categories {
        flex: 1;
        overflow-y: auto;
    }

    body.support-sidebar-open {
        overflow: hidden;
    }
}

@media (max-width: 1199.98px) {
    .ticket-detail .row {
        flex-direction: column;
    }

    .ticket-detail-sidebar {
        margin-top: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .support-container {
        min-height: auto;
    }

    .support-header {
        flex-wrap: wrap;
    }

    .support-header .support-search {
        order: 3;
        width: 100%;
        max-width: none;
        margin-top: 0.5rem;
    }

    .ticket-item {
        flex-wrap: wrap;
    }

    .ticket-assignee {
        order: -1;
        margin-left: auto;
    }

    .ticket-meta {
        gap: 0.75rem;
    }

    .support-pagination {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .ticket-message-user {
        flex-wrap: wrap;
    }

    .ticket-message-user .badge {
        margin-left: 0;
    }
}

/*--------------------------------------------------------------
# Widget Cards Page Styles
--------------------------------------------------------------*/
/* Blog / Article Cards */
.widget-blog-card {
    overflow: hidden;
}

.widget-blog-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.widget-blog-image img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    transition: transform var(--transition-base);
}

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

.widget-blog-read-time {
    position: absolute;
    bottom: var(--spacing-md);
    right: var(--spacing-md);
    background: var(--accent-color);
    color: var(--contrast-color);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.6875rem;
    font-weight: 500;
}

.widget-blog-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: var(--spacing-sm);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.widget-blog-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    font-size: 0.75rem;
    color: var(--muted-color);
}

.widget-blog-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.widget-blog-meta i {
    font-size: 0.8125rem;
}

/* Product Cards */
.widget-product-card {
    overflow: hidden;
}

.widget-product-image {
    position: relative;
    height: 200px;
    background: var(--background-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.widget-product-image img {
    max-width: 80%;
    max-height: 80%;
    -o-object-fit: contain;
    object-fit: contain;
    transition: transform var(--transition-base);
}

.widget-product-image:hover img {
    transform: scale(1.05);
}

.widget-product-wishlist {
    position: absolute;
    bottom: var(--spacing-md);
    right: var(--spacing-md);
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: var(--surface-color);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-color);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.widget-product-wishlist:hover {
    color: var(--danger-color);
}

.widget-product-wishlist.active {
    color: var(--danger-color);
}

.widget-product-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: var(--spacing-xs);
}

.widget-product-price {
    margin-bottom: var(--spacing-xs);
}

.widget-product-price .current-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--heading-color);
}

.widget-product-price .original-price {
    font-size: 0.8125rem;
    color: var(--muted-color);
    text-decoration: line-through;
    margin-left: var(--spacing-xs);
}

.widget-product-rating {
    display: flex;
    gap: 2px;
}

.widget-product-rating i {
    font-size: 0.75rem;
    color: var(--warning-color);
}

.widget-product-rating i.bi-star {
    color: var(--border-color);
}

/* Music Player Cards */
.widget-music-card {
    overflow: hidden;
}

.widget-music-content {
    display: flex;
    align-items: center;
    padding: var(--spacing-md);
}

.widget-music-info {
    flex: 1;
    padding-right: var(--spacing-md);
}

.widget-music-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 2px;
}

.widget-music-artist {
    font-size: 0.8125rem;
    color: var(--muted-color);
    margin-bottom: var(--spacing-md);
}

.widget-music-controls {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.widget-music-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    border: none;
    background: transparent;
    color: var(--muted-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.widget-music-btn:hover {
    color: var(--accent-color);
}

.widget-music-btn.play {
    background: var(--accent-color);
    color: var(--contrast-color);
}

.widget-music-btn.play:hover {
    background: color-mix(in srgb, var(--accent-color), black 10%);
    color: var(--contrast-color);
}

.widget-music-image {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    flex-shrink: 0;
}

.widget-music-image img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}

/* User Profile Cards (Horizontal) */
.widget-user-card-horizontal .card-body {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.widget-user-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    -o-object-fit: cover;
    object-fit: cover;
    flex-shrink: 0;
}

.widget-user-info {
    flex: 1;
    min-width: 0;
}

.widget-user-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 2px;
}

.widget-user-location {
    font-size: 0.75rem;
    color: var(--muted-color);
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
}

.widget-user-location i {
    font-size: 0.6875rem;
}

/* Friend Suggestion Cards */
.widget-friend-card .card-body {
    padding: var(--spacing-lg);
}

.widget-friend-avatar {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    -o-object-fit: cover;
    object-fit: cover;
    margin-bottom: var(--spacing-md);
}

.widget-friend-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: var(--spacing-sm);
}

.widget-friend-mutual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.widget-friend-mutual span {
    font-size: 0.75rem;
    color: var(--muted-color);
}

.widget-friend-mutual-avatars {
    display: flex;
}

.widget-friend-mutual-avatars img {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    border: 2px solid var(--surface-color);
    margin-left: -8px;
}

.widget-friend-mutual-avatars img:first-child {
    margin-left: 0;
}

.widget-friend-actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

/* Profile Info Cards */
.widget-profile-card .card-body {
    padding: var(--spacing-lg);
}

.widget-profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    -o-object-fit: cover;
    object-fit: cover;
    margin-bottom: var(--spacing-md);
}

.widget-profile-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 4px;
}

.widget-profile-role {
    font-size: 0.8125rem;
    color: var(--muted-color);
    margin-bottom: var(--spacing-md);
}

.widget-profile-social {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
}

.widget-social-link {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    transition: all var(--transition-fast);
}

.widget-social-link.facebook {
    color: #1877f2;
}

.widget-social-link.facebook:hover {
    background: rgba(24, 119, 242, 0.1);
}

.widget-social-link.instagram {
    color: #e1306c;
}

.widget-social-link.instagram:hover {
    background: rgba(225, 48, 108, 0.1);
}

.widget-social-link.github {
    color: var(--default-color);
}

.widget-social-link.github:hover {
    background: var(--background-color);
}

.widget-social-link.twitter {
    color: var(--default-color);
}

.widget-social-link.twitter:hover {
    background: var(--background-color);
}

/* Settings Card */
.widget-settings-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) 0;
}

.widget-settings-item:not(:last-child) {
    border-bottom: 1px solid var(--border-color-light);
}

.widget-settings-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.widget-settings-icon.primary {
    background: color-mix(in srgb, var(--accent-color), transparent 90%);
    color: var(--accent-color);
}

.widget-settings-icon.info {
    background: var(--info-color-light);
    color: var(--info-color);
}

.widget-settings-info {
    flex: 1;
    min-width: 0;
}

.widget-settings-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--heading-color);
    display: block;
}

.widget-settings-desc {
    font-size: 0.75rem;
    color: var(--muted-color);
    display: block;
}

.widget-settings-slider {
    margin-top: var(--spacing-xs);
}

.widget-settings-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--heading-color);
    min-width: 40px;
    text-align: right;
}

.widget-settings-actions {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: flex-end;
    margin-top: var(--spacing-md);
}

/* Gift Card */
.widget-gift-card .card-body {
    padding: var(--spacing-md);
}

.widget-gift-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.widget-gift-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--heading-color);
    margin: 0;
}

.widget-gift-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    border: none;
    background: color-mix(in srgb, var(--accent-color), transparent 90%);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.widget-gift-image {
    height: 140px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.widget-gift-image img {
    max-width: 70%;
    max-height: 70%;
    -o-object-fit: contain;
    object-fit: contain;
}

/* Payment Items */
.widget-payment-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) 0;
}

.widget-payment-item:not(:last-child) {
    border-bottom: 1px solid var(--border-color-light);
}

.widget-payment-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.widget-payment-icon.paypal {
    background: rgba(0, 112, 186, 0.1);
    color: #0070ba;
}

.widget-payment-icon.wallet {
    background: var(--warning-color-light);
    color: var(--warning-color);
}

.widget-payment-icon.credit {
    background: var(--success-color-light);
    color: var(--success-color);
}

.widget-payment-icon.refund {
    background: var(--danger-color-light);
    color: var(--danger-color);
}

.widget-payment-info {
    flex: 1;
    min-width: 0;
}

.widget-payment-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--heading-color);
    display: block;
}

.widget-payment-subtitle {
    font-size: 0.75rem;
    color: var(--muted-color);
    display: block;
}

.widget-payment-amount {
    font-size: 0.9375rem;
    font-weight: 600;
}

.widget-payment-amount.positive {
    color: var(--success-color);
}

.widget-payment-amount.negative {
    color: var(--danger-color);
}

/* Activity Items Alternative */
.widget-activity-item-alt {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) 0;
}

.widget-activity-item-alt:not(:last-child) {
    border-bottom: 1px solid var(--border-color-light);
}

.widget-activity-icon-alt {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.widget-activity-icon-alt.primary {
    background: color-mix(in srgb, var(--accent-color), transparent 90%);
    color: var(--accent-color);
}

.widget-activity-icon-alt.info {
    background: var(--info-color-light);
    color: var(--info-color);
}

.widget-activity-icon-alt.warning {
    background: var(--warning-color-light);
    color: var(--warning-color);
}

.widget-activity-icon-alt.success {
    background: var(--success-color-light);
    color: var(--success-color);
}

.widget-activity-icon-alt.muted {
    background: var(--background-color);
    color: var(--muted-color);
}

.widget-activity-info-alt {
    flex: 1;
    min-width: 0;
}

.widget-activity-title-alt {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--heading-color);
    display: block;
}

.widget-activity-status-alt {
    font-size: 0.75rem;
    color: var(--muted-color);
    display: block;
}

.widget-activity-time-alt {
    font-size: 0.75rem;
    color: var(--muted-color);
}

/* Timeline Widget */
.widget-timeline {
    position: relative;
}

.widget-timeline-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-md) 0;
    position: relative;
}

.widget-timeline-item:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 52px;
    top: 38px;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.widget-timeline-time {
    font-size: 0.75rem;
    color: var(--muted-color);
    min-width: 40px;
    text-align: right;
}

.widget-timeline-dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    flex-shrink: 0;
    margin-top: 4px;
}

.widget-timeline-dot.primary {
    background: var(--accent-color);
}

.widget-timeline-dot.success {
    background: var(--success-color);
}

.widget-timeline-dot.warning {
    background: var(--warning-color);
}

.widget-timeline-dot.danger {
    background: var(--danger-color);
}

.widget-timeline-dot.info {
    background: var(--info-color);
}

.widget-timeline-content {
    flex: 1;
    min-width: 0;
}

.widget-timeline-content p {
    font-size: 0.8125rem;
    color: var(--default-color);
    margin: 0;
}

.widget-timeline-content p a {
    color: var(--accent-color);
    font-weight: 500;
}

/* Products Table Widget */
.widget-products-table th {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted-color);
    text-transform: uppercase;
    border-bottom: 1px solid var(--border-color);
    padding: var(--spacing-md);
}

.widget-products-table td {
    padding: var(--spacing-md);
    vertical-align: middle;
}

.widget-product-cell {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.widget-product-thumb {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    -o-object-fit: cover;
    object-fit: cover;
}

.widget-product-name-sm {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--heading-color);
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.widget-product-payment {
    font-size: 0.8125rem;
}

.widget-product-payment strong {
    color: var(--heading-color);
}

.widget-payment-label {
    font-size: 0.6875rem;
    color: var(--muted-color);
    display: block;
}

/* Schedule Widget */
.widget-schedule-tabs {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.widget-schedule-tab {
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-full);
    border: none;
    background: transparent;
    font-size: 0.8125rem;
    color: var(--muted-color);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.widget-schedule-tab.active {
    background: var(--background-color);
    color: var(--heading-color);
    font-weight: 500;
}

.widget-schedule-tab:hover:not(.active) {
    color: var(--default-color);
}

.widget-schedule-list {
    display: flex;
    flex-direction: column;
}

.widget-schedule-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-sm) 0;
}

.widget-schedule-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.widget-schedule-icon.primary {
    background: color-mix(in srgb, var(--accent-color), transparent 90%);
    color: var(--accent-color);
}

.widget-schedule-icon.success {
    background: var(--success-color-light);
    color: var(--success-color);
}

.widget-schedule-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    flex-shrink: 0;
    margin-left: 14px;
}

.widget-schedule-dot.primary {
    background: var(--accent-color);
}

.widget-schedule-dot.info {
    background: var(--info-color);
}

.widget-schedule-dot.warning {
    background: var(--warning-color);
}

.widget-schedule-dot.danger {
    background: var(--danger-color);
}

.widget-schedule-info {
    flex: 1;
    min-width: 0;
}

.widget-schedule-title {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--heading-color);
    display: block;
}

.widget-schedule-subtitle {
    font-size: 0.6875rem;
    color: var(--muted-color);
    display: block;
}

/* Reviews Table Widget */
.widget-reviews-table th {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted-color);
    text-transform: uppercase;
    border-bottom: 1px solid var(--border-color);
    padding: var(--spacing-md);
}

.widget-reviews-table td {
    padding: var(--spacing-md);
    vertical-align: middle;
}

.widget-reviewer {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.widget-reviewer-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    -o-object-fit: cover;
    object-fit: cover;
}

.widget-reviewer-name {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--heading-color);
}

.widget-reviewer-email {
    font-size: 0.6875rem;
    color: var(--muted-color);
}

.widget-reviewer-rating {
    display: flex;
    gap: 2px;
    margin-top: 2px;
}

.widget-reviewer-rating i {
    font-size: 0.625rem;
    color: var(--warning-color);
}

.widget-reviewer-rating i.bi-star {
    color: var(--border-color);
}

.widget-review-text {
    font-size: 0.75rem;
    color: var(--muted-color);
    margin: 0;
    max-width: 250px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.widget-review-time {
    font-size: 0.75rem;
    color: var(--muted-color);
}

.widget-table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md);
    border-top: 1px solid var(--border-color-light);
}

/* Location Widget */
.widget-map-placeholder {
    height: 180px;
    background: var(--background-color);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.widget-map-placeholder i {
    font-size: 2rem;
    color: var(--muted-color);
}

.widget-map-placeholder span {
    font-size: 0.8125rem;
    color: var(--muted-color);
}

.widget-location-stats {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.widget-location-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.widget-location-code {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--heading-color);
    min-width: 24px;
}

.widget-location-bar {
    flex: 1;
    height: 6px;
    background: var(--background-color);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.widget-location-fill {
    height: 100%;
    border-radius: var(--radius-full);
}

.widget-location-percent {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--heading-color);
    min-width: 36px;
    text-align: right;
}

/* Credit Card Widget */
.widget-credit-cards {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.widget-credit-card {
    flex: 1;
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    color: white;
    min-height: 100px;
}

.widget-credit-card.visa {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

.widget-credit-card.mastercard {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: var(--heading-color);
}

.widget-credit-card-number {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
}

.widget-credit-card-logo {
    height: 16px;
    margin-bottom: var(--spacing-sm);
}

.widget-credit-card-mc-logo {
    display: flex;
    gap: -8px;
    margin-bottom: var(--spacing-sm);
}

.widget-credit-card-mc-logo .mc-circle {
    width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
}

.widget-credit-card-mc-logo .mc-circle.mc-red {
    background: #eb001b;
}

.widget-credit-card-mc-logo .mc-circle.mc-orange {
    background: #f79e1b;
    margin-left: -8px;
}

.widget-credit-card-balance .label {
    font-size: 0.6875rem;
    opacity: 0.8;
    display: block;
}

.widget-credit-card-balance .amount {
    font-size: 1rem;
    font-weight: 700;
}

.widget-transactions-mini {
    background: var(--background-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
}

.widget-transactions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.widget-transactions-header span {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--heading-color);
}

.widget-transactions-header a {
    font-size: 0.75rem;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 4px;
}

.widget-transaction-item-mini {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-sm) 0;
}

.widget-transaction-item-mini:not(:last-child) {
    border-bottom: 1px solid var(--border-color-light);
}

.widget-transaction-icon-mini {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6875rem;
    font-weight: 700;
    flex-shrink: 0;
}

.widget-transaction-icon-mini.netflix {
    background: #e50914;
    color: white;
}

.widget-transaction-icon-mini.upwork {
    background: #6fda44;
    color: white;
}

.widget-transaction-info-mini {
    flex: 1;
    min-width: 0;
}

.widget-transaction-title-mini {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--heading-color);
    display: block;
}

.widget-transaction-date-mini {
    font-size: 0.6875rem;
    color: var(--muted-color);
    display: block;
}

.widget-transaction-amount-mini {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.widget-transaction-amount-mini .amount {
    font-size: 0.8125rem;
    font-weight: 600;
}

.widget-transaction-amount-mini .amount.positive {
    color: var(--success-color);
}

.widget-transaction-amount-mini .amount.negative {
    color: var(--danger-color);
}

.widget-transaction-amount-mini .bonus {
    font-size: 0.6875rem;
    color: var(--success-color);
}

/* Earning Report Widget */
.widget-earning-list {
    display: flex;
    flex-direction: column;
}

.widget-earning-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) 0;
}

.widget-earning-item:not(:last-child) {
    border-bottom: 1px solid var(--border-color-light);
}

.widget-earning-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.widget-earning-icon.primary {
    background: color-mix(in srgb, var(--accent-color), transparent 90%);
    color: var(--accent-color);
}

.widget-earning-icon.danger {
    background: var(--danger-color-light);
    color: var(--danger-color);
}

.widget-earning-icon.success {
    background: var(--success-color-light);
    color: var(--success-color);
}

.widget-earning-icon.warning {
    background: var(--warning-color-light);
    color: var(--warning-color);
}

.widget-earning-info {
    flex: 1;
    min-width: 0;
}

.widget-earning-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--heading-color);
    display: block;
}

.widget-earning-subtitle {
    font-size: 0.75rem;
    color: var(--muted-color);
    display: flex;
    align-items: center;
    gap: 4px;
}

.widget-earning-subtitle i {
    font-size: 0.6875rem;
}

.widget-earning-link {
    display: block;
    text-align: center;
    font-size: 0.8125rem;
    color: var(--accent-color);
    padding-top: var(--spacing-md);
}

/* Mini Stat Card */
.widget-mini-stat .card-body {
    padding: var(--spacing-lg);
}

.widget-mini-stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xs);
}

.widget-mini-stat-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--heading-color);
}

.widget-mini-stat-subtitle {
    font-size: 0.75rem;
    color: var(--muted-color);
    margin: 0 0 var(--spacing-md);
}

.widget-mini-stat-values {
    margin-bottom: var(--spacing-xs);
}

.widget-mini-stat-values .widget-mini-stat-current {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--heading-color);
}

.widget-mini-stat-values .widget-mini-stat-total {
    font-size: 1rem;
    color: var(--muted-color);
    margin-left: var(--spacing-sm);
}

.widget-mini-stat-info {
    font-size: 0.75rem;
    color: var(--muted-color);
    margin: 0 0 var(--spacing-md);
}

.widget-mini-stat-footer {
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color-light);
}

.widget-mini-stat-label {
    font-size: 0.75rem;
    color: var(--muted-color);
    display: block;
    margin-bottom: var(--spacing-sm);
}

.widget-mini-stat-avatars {
    display: flex;
    align-items: center;
}

.widget-mini-stat-avatars img {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    border: 2px solid var(--surface-color);
    margin-left: -8px;
}

.widget-mini-stat-avatars img:first-child {
    margin-left: 0;
}

.widget-mini-stat-more {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    background: var(--accent-color);
    color: var(--contrast-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6875rem;
    font-weight: 600;
    margin-left: -8px;
}

/* Color Stat Cards */
.widget-color-stat {
    overflow: hidden;
}

.widget-color-stat.primary .card-body {
    background: linear-gradient(
        135deg,
        var(--accent-color) 0%,
        color-mix(in srgb, var(--accent-color), black 15%) 100%
    );
    color: white;
}

.widget-color-stat.success .card-body {
    background: linear-gradient(
        135deg,
        var(--success-color) 0%,
        color-mix(in srgb, var(--success-color), black 15%) 100%
    );
    color: white;
}

.widget-color-stat.danger .card-body {
    background: linear-gradient(
        135deg,
        var(--danger-color) 0%,
        color-mix(in srgb, var(--danger-color), black 15%) 100%
    );
    color: white;
}

.widget-color-stat.warning .card-body {
    background: linear-gradient(
        135deg,
        var(--warning-color) 0%,
        color-mix(in srgb, var(--warning-color), black 15%) 100%
    );
    color: white;
}

.widget-color-stat.info .card-body {
    background: linear-gradient(
        135deg,
        var(--info-color) 0%,
        color-mix(in srgb, var(--info-color), black 15%) 100%
    );
    color: white;
}

.widget-color-stat .card-body {
    padding: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.widget-color-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.widget-color-stat-content {
    flex: 1;
}

.widget-color-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.widget-color-stat-change {
    font-size: 0.8125rem;
    font-weight: 500;
    opacity: 0.9;
}

.widget-color-stat-change.negative {
    opacity: 0.8;
}

.widget-color-stat-label {
    font-size: 0.8125rem;
    opacity: 0.9;
}

/*--------------------------------------------------------------
# Widget Banners Page Styles
--------------------------------------------------------------*/
/* Gradient Backgrounds */
.gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
}

.gradient-info {
    background: linear-gradient(135deg, var(--info-color) 0%, #0284c7 100%);
}

.gradient-danger {
    background: linear-gradient(135deg, var(--danger-color) 0%, #dc2626 100%);
}

.gradient-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #d97706 100%);
}

/* Welcome Banner */
.widget-banner-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    color: white;
    overflow: hidden;
    position: relative;
    min-height: 180px;
}

.widget-banner-content {
    flex: 1;
    z-index: 1;
}

.widget-banner-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.widget-banner-text {
    font-size: 0.9375rem;
    opacity: 0.9;
    margin-bottom: var(--spacing-md);
    max-width: 400px;
}

.widget-banner-image {
    position: relative;
    z-index: 1;
}

.widget-banner-image img {
    max-height: 160px;
    border-radius: var(--radius-lg);
    -o-object-fit: cover;
    object-fit: cover;
}

.widget-banner-image.bottom {
    align-self: flex-end;
    margin-bottom: calc(-1 * var(--spacing-xl));
}

.widget-banner-image.bottom img {
    max-height: 140px;
}

/* Achievement Banner */
.widget-banner-achievement .card-body {
    padding: var(--spacing-xl);
}

.widget-banner-label {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--muted-color);
    display: block;
    margin-bottom: var(--spacing-md);
}

.widget-banner-badge {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
}

.widget-banner-heading {
    font-size: 1rem;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: var(--spacing-xs);
}

.widget-banner-desc {
    font-size: 0.8125rem;
    color: var(--muted-color);
    margin-bottom: var(--spacing-md);
}

/* Promo Banner Light */
.widget-banner-promo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 180px;
}

.widget-banner-promo.light {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.widget-banner-promo .widget-banner-title {
    color: var(--heading-color);
    font-size: 1.25rem;
}

.widget-banner-promo .widget-banner-text {
    color: var(--muted-color);
    font-size: 0.875rem;
}

/* Friend Banner */
.widget-banner-friend .card-body {
    padding: var(--spacing-xl);
}

.widget-banner-avatar-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: var(--spacing-md);
}

.widget-banner-avatar {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    -o-object-fit: cover;
    object-fit: cover;
    border: 4px solid color-mix(in srgb, var(--accent-color), transparent 80%);
}

.widget-banner-notification {
    position: absolute;
    top: 0;
    right: 0;
    width: 24px;
    height: 24px;
    background: var(--danger-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--surface-color);
}

.widget-banner-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: var(--spacing-xs);
}

.widget-banner-actions {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
}

/* Status Banner */
.widget-banner-status .card-body {
    padding: var(--spacing-xl);
}

.widget-banner-icon-wrapper {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.widget-banner-illustration {
    max-height: 100%;
    border-radius: var(--radius-md);
}

.widget-banner-empty-cart {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--muted-color);
}

/* Stats Banner */
.widget-banner-stats {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    color: white;
    overflow: hidden;
    min-height: 200px;
}

.widget-banner-stat-group {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.widget-banner-stat {
    background: rgba(255, 255, 255, 0.2);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    text-align: center;
}

.widget-banner-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    display: block;
}

.widget-banner-stat-label {
    font-size: 0.6875rem;
    opacity: 0.9;
    display: block;
}

/* Alert Banners */
.widget-banner-alert {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-lg);
    position: relative;
}

.widget-banner-alert.success {
    background: var(--success-color-light);
    border-left: 4px solid var(--success-color);
}

.widget-banner-alert.success .widget-banner-alert-icon {
    color: var(--success-color);
}

.widget-banner-alert.warning {
    background: var(--warning-color-light);
    border-left: 4px solid var(--warning-color);
}

.widget-banner-alert.warning .widget-banner-alert-icon {
    color: var(--warning-color);
}

.widget-banner-alert.info {
    background: var(--info-color-light);
    border-left: 4px solid var(--info-color);
}

.widget-banner-alert.info .widget-banner-alert-icon {
    color: var(--info-color);
}

.widget-banner-alert.danger {
    background: var(--danger-color-light);
    border-left: 4px solid var(--danger-color);
}

.widget-banner-alert.danger .widget-banner-alert-icon {
    color: var(--danger-color);
}

.widget-banner-alert-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.widget-banner-alert-content {
    flex: 1;
}

.widget-banner-alert-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 4px;
}

.widget-banner-alert-text {
    font-size: 0.8125rem;
    color: var(--muted-color);
    margin: 0;
}

.widget-banner-alert-close {
    background: none;
    border: none;
    padding: 0;
    color: var(--muted-color);
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    transition: color var(--transition-fast);
}

.widget-banner-alert-close:hover {
    color: var(--danger-color);
}

/* CTA Banners */
.widget-banner-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    color: white;
}

.widget-banner-cta.horizontal .widget-banner-cta-content {
    flex: none;
}

.widget-banner-cta.horizontal .widget-banner-cta-buttons {
    margin-top: 0;
}

.widget-banner-cta-content {
    flex: 1;
}

.widget-banner-cta-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-sm);
}

.widget-banner-cta-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

.widget-banner-cta-text {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: var(--spacing-md);
}

.widget-banner-cta-buttons {
    display: flex;
    gap: var(--spacing-sm);
}

.widget-banner-cta-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
    margin-left: var(--spacing-lg);
}

/* Notification Banners */
.widget-banner-notification .card-body {
    padding: var(--spacing-lg);
}

.widget-banner-notif-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-md);
}

.widget-banner-notif-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
}

.widget-banner-notif-icon.primary {
    background: color-mix(in srgb, var(--accent-color), transparent 90%);
    color: var(--accent-color);
}

.widget-banner-notif-icon.success {
    background: var(--success-color-light);
    color: var(--success-color);
}

.widget-banner-notif-icon.warning {
    background: var(--warning-color-light);
    color: var(--warning-color);
}

.widget-banner-notif-time {
    font-size: 0.75rem;
    color: var(--muted-color);
}

.widget-banner-notif-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: var(--spacing-xs);
}

.widget-banner-notif-text {
    font-size: 0.8125rem;
    color: var(--muted-color);
    margin-bottom: var(--spacing-md);
}

.widget-banner-notif-actions {
    display: flex;
    gap: var(--spacing-sm);
}

/* Feature Banners */
.widget-banner-feature {
    display: flex;
    align-items: center;
    padding: var(--spacing-lg);
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.widget-banner-feature-badge {
    position: absolute;
    top: var(--spacing-md);
    left: var(--spacing-md);
    background: var(--accent-color);
    color: white;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.widget-banner-feature-badge.update {
    background: var(--info-color);
}

.widget-banner-feature-content {
    flex: 1;
    padding-top: var(--spacing-lg);
}

.widget-banner-feature-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: var(--spacing-xs);
}

.widget-banner-feature-text {
    font-size: 0.8125rem;
    color: var(--muted-color);
    margin-bottom: var(--spacing-sm);
}

.widget-banner-feature-link {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--accent-color);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.widget-banner-feature-link:hover {
    text-decoration: underline;
}

.widget-banner-feature-icon {
    width: 56px;
    height: 56px;
    background: color-mix(in srgb, var(--accent-color), transparent 90%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-color);
    flex-shrink: 0;
    margin-left: var(--spacing-lg);
}

/* Onboarding Banners */
.widget-banner-onboarding .card-body {
    padding: var(--spacing-xl);
}

.widget-banner-onboarding-step {
    width: 32px;
    height: 32px;
    background: var(--accent-color);
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    margin: 0 auto var(--spacing-md);
}

.widget-banner-onboarding-step.completed {
    background: var(--success-color);
}

.widget-banner-onboarding-icon {
    width: 64px;
    height: 64px;
    background: color-mix(in srgb, var(--accent-color), transparent 90%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--accent-color);
    margin: 0 auto var(--spacing-md);
}

.widget-banner-onboarding-icon.success {
    background: var(--success-color-light);
    color: var(--success-color);
}

.widget-banner-onboarding-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: var(--spacing-xs);
}

.widget-banner-onboarding-text {
    font-size: 0.8125rem;
    color: var(--muted-color);
    margin-bottom: var(--spacing-md);
}

/* Sale Banners */
.widget-banner-sale {
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    color: white;
    text-align: center;
}

.widget-banner-sale-content {
    position: relative;
    z-index: 1;
}

.widget-banner-sale-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-sm);
}

.widget-banner-sale-badge.dark {
    background: rgba(0, 0, 0, 0.2);
}

.widget-banner-sale-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-xs);
}

.widget-banner-sale-text {
    font-size: 0.9375rem;
    opacity: 0.9;
    margin-bottom: var(--spacing-md);
}

.widget-banner-sale-timer {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.widget-banner-timer-item {
    background: rgba(255, 255, 255, 0.2);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    min-width: 60px;
}

.widget-banner-timer-value {
    font-size: 1.25rem;
    font-weight: 700;
    display: block;
}

.widget-banner-timer-label {
    font-size: 0.6875rem;
    opacity: 0.9;
    display: block;
}

.widget-banner-sale-code {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: rgba(255, 255, 255, 0.2);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
}

.widget-banner-code {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.widget-banner-copy-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    color: white;
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.widget-banner-copy-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Cookie Banner */
.widget-banner-cookie {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    flex-wrap: wrap;
}

.widget-banner-cookie-icon {
    width: 48px;
    height: 48px;
    background: var(--warning-color-light);
    color: var(--warning-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.widget-banner-cookie-content {
    flex: 1;
    min-width: 200px;
}

.widget-banner-cookie-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 4px;
}

.widget-banner-cookie-text {
    font-size: 0.8125rem;
    color: var(--muted-color);
    margin: 0;
}

.widget-banner-cookie-actions {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

/* Newsletter Banner */
.widget-banner-newsletter {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.widget-banner-newsletter-icon {
    width: 48px;
    height: 48px;
    background: color-mix(in srgb, var(--accent-color), transparent 90%);
    color: var(--accent-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.widget-banner-newsletter-content {
    flex: 1;
}

.widget-banner-newsletter-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 4px;
}

.widget-banner-newsletter-text {
    font-size: 0.8125rem;
    color: var(--muted-color);
    margin-bottom: var(--spacing-sm);
}

.widget-banner-newsletter-form {
    display: flex;
    gap: var(--spacing-sm);
}

.widget-banner-newsletter-form input {
    flex: 1;
    max-width: 250px;
}

/* App Install Banner */
.widget-banner-app-install {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.widget-banner-app-icon {
    width: 48px;
    height: 48px;
    background: color-mix(in srgb, var(--accent-color), transparent 90%);
    color: var(--accent-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.widget-banner-app-content {
    flex: 1;
}

.widget-banner-app-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 4px;
}

.widget-banner-app-text {
    font-size: 0.8125rem;
    color: var(--muted-color);
    margin: 0;
}

.widget-banner-app-actions {
    display: flex;
    gap: var(--spacing-sm);
}

/* Responsive */
@media (max-width: 767px) {
    .widget-banner-welcome,
    .widget-banner-promo,
    .widget-banner-stats {
        flex-direction: column;
        text-align: center;
    }

    .widget-banner-welcome .widget-banner-content,
    .widget-banner-promo .widget-banner-content,
    .widget-banner-stats .widget-banner-content {
        order: 2;
    }

    .widget-banner-welcome .widget-banner-image,
    .widget-banner-promo .widget-banner-image,
    .widget-banner-stats .widget-banner-image {
        order: 1;
        margin-bottom: var(--spacing-md);
    }

    .widget-banner-welcome .widget-banner-image.bottom,
    .widget-banner-promo .widget-banner-image.bottom,
    .widget-banner-stats .widget-banner-image.bottom {
        margin-bottom: var(--spacing-md);
    }

    .widget-banner-welcome .widget-banner-text,
    .widget-banner-promo .widget-banner-text,
    .widget-banner-stats .widget-banner-text {
        max-width: none;
    }

    .widget-banner-cta {
        flex-direction: column;
        text-align: center;
    }

    .widget-banner-cta.horizontal .widget-banner-cta-buttons {
        margin-top: var(--spacing-md);
    }

    .widget-banner-cta .widget-banner-cta-icon {
        margin-left: 0;
        margin-bottom: var(--spacing-md);
    }

    .widget-banner-cookie {
        flex-direction: column;
        text-align: center;
    }

    .widget-banner-cookie .widget-banner-cookie-actions {
        justify-content: center;
    }

    .widget-banner-newsletter-form {
        flex-direction: column;
    }

    .widget-banner-newsletter-form input {
        max-width: none;
    }

    .widget-banner-app-install {
        flex-direction: column;
        text-align: center;
    }
}

/*--------------------------------------------------------------
# Widget Charts Page Styles
--------------------------------------------------------------*/
/* Mini Stat Cards with Sparklines */
.widget-chart-stat .card-body {
    padding: var(--spacing-lg);
}

.widget-chart-stat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-md);
}

.widget-chart-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--heading-color);
    line-height: 1.2;
}

.widget-chart-stat-label {
    font-size: 0.8125rem;
    color: var(--muted-color);
}

.widget-chart-stat-change {
    font-size: 0.75rem;
    font-weight: 500;
}

.widget-chart-stat-change.positive {
    color: var(--success-color);
}

.widget-chart-stat-change.negative {
    color: var(--danger-color);
}

.widget-chart-sparkline {
    height: 50px;
}

.widget-chart-sparkline svg {
    width: 100%;
    height: 100%;
}

.widget-chart-sparkline.primary {
    color: var(--accent-color);
}

.widget-chart-sparkline.warning {
    color: var(--warning-color);
}

.widget-chart-sparkline.success {
    color: var(--success-color);
}

.widget-chart-sparkline.info {
    color: var(--info-color);
}

.widget-chart-sparkline-bars {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 50px;
}

.widget-chart-sparkline-bars span {
    flex: 1;
    border-radius: 2px;
    min-width: 6px;
}

.widget-chart-sparkline-bars.info span {
    background: var(--info-color);
}

.widget-chart-sparkline-bars.dark span {
    background: var(--heading-color);
}

.widget-chart-sparkline-bars.primary span {
    background: var(--accent-color);
}

/* Balance Card */
.widget-balance-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-lg);
}

.widget-balance-label {
    font-size: 0.875rem;
    color: var(--muted-color);
    margin-bottom: var(--spacing-xs);
}

.widget-balance-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--heading-color);
}

.widget-balance-change {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 0.8125rem;
    margin-top: var(--spacing-xs);
}

.widget-balance-change i {
    color: var(--danger-color);
}

.widget-balance-change .negative {
    color: var(--danger-color);
}

.widget-balance-tabs {
    display: flex;
    gap: var(--spacing-xs);
}

.widget-balance-tabs button {
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    background: transparent;
    font-size: 0.8125rem;
    color: var(--muted-color);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.widget-balance-tabs button.active {
    background: var(--heading-color);
    color: var(--contrast-color);
    border-color: var(--heading-color);
}

.widget-balance-tabs button:hover:not(.active) {
    border-color: var(--heading-color);
}

.widget-balance-content {
    display: flex;
    gap: var(--spacing-lg);
}

.widget-balance-chart {
    flex: 1;
    min-width: 0;
}

.widget-balance-chart svg {
    width: 100%;
    height: 100px;
}

.widget-balance-chart-labels {
    display: flex;
    justify-content: space-between;
    margin-top: var(--spacing-sm);
}

.widget-balance-chart-labels span {
    font-size: 0.75rem;
    color: var(--muted-color);
}

.widget-balance-stats {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.widget-balance-stat-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.widget-balance-stat-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.widget-balance-stat-icon.primary {
    background: color-mix(in srgb, var(--accent-color), transparent 90%);
    color: var(--accent-color);
}

.widget-balance-stat-icon.success {
    background: var(--success-color-light);
    color: var(--success-color);
}

.widget-balance-stat-icon.info {
    background: var(--info-color-light);
    color: var(--info-color);
}

.widget-balance-stat-icon.warning {
    background: var(--warning-color-light);
    color: var(--warning-color);
}

.widget-balance-stat-label {
    font-size: 0.75rem;
    color: var(--muted-color);
}

.widget-balance-stat-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--heading-color);
}

/* ROI Card */
.widget-roi-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.widget-roi-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: color-mix(in srgb, var(--accent-color), transparent 90%);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.widget-roi-values {
    flex: 1;
}

.widget-roi-percent {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--heading-color);
}

.widget-roi-label {
    font-size: 0.75rem;
    color: var(--muted-color);
}

.widget-roi-change {
    text-align: right;
}

.widget-roi-change .positive {
    color: var(--success-color);
    font-weight: 600;
    display: block;
}

.widget-roi-change .text-muted {
    font-size: 0.75rem;
}

.widget-roi-chart {
    height: 150px;
}

.widget-roi-bars {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 100%;
    gap: var(--spacing-md);
}

.widget-roi-bar-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.widget-roi-bar-group span {
    font-size: 0.6875rem;
    color: var(--muted-color);
    margin-top: var(--spacing-xs);
}

.widget-roi-bar {
    width: 100%;
    max-width: 30px;
    background: var(--border-color);
    border-radius: var(--radius-sm);
    margin-top: auto;
}

.widget-roi-bar.highlight {
    background: var(--info-color);
}

/* Stat Chart Cards */
.widget-stat-chart .card-body {
    padding: var(--spacing-lg);
}

.widget-stat-chart-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.widget-stat-chart-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.widget-stat-chart-icon.primary {
    background: color-mix(in srgb, var(--accent-color), transparent 90%);
    color: var(--accent-color);
}

.widget-stat-chart-icon.success {
    background: var(--success-color-light);
    color: var(--success-color);
}

.widget-stat-chart-icon.info {
    background: var(--info-color-light);
    color: var(--info-color);
}

.widget-stat-chart-title {
    font-size: 0.875rem;
    color: var(--muted-color);
}

.widget-stat-chart-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: var(--spacing-md);
}

.widget-stat-chart-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--heading-color);
}

.widget-stat-chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 60px;
}

.widget-stat-chart-bars span {
    width: 8px;
    border-radius: 2px;
}

.widget-stat-chart-bars.primary span {
    background: var(--accent-color);
}

.widget-stat-chart-line {
    width: 100px;
    height: 50px;
}

.widget-stat-chart-line svg {
    width: 100%;
    height: 100%;
}

.widget-stat-chart-line.success {
    color: var(--success-color);
}

.widget-stat-chart-donut {
    width: 60px;
    height: 60px;
}

.widget-stat-chart-donut svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.widget-stat-chart-donut.info {
    color: var(--info-color);
}

.widget-stat-chart-footer {
    font-size: 0.8125rem;
}

.widget-stat-chart-footer.positive {
    color: var(--success-color);
}

.widget-stat-chart-footer.negative {
    color: var(--danger-color);
}

/* Current Value Card */
.widget-value-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget-value-tabs {
    display: flex;
    gap: var(--spacing-xs);
}

.widget-value-tabs button {
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-sm);
    border: none;
    font-size: 0.8125rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.widget-value-tabs button.active {
    background: var(--accent-color);
    color: var(--contrast-color);
}

.widget-value-tabs button:not(.active) {
    background: var(--background-color);
    color: var(--muted-color);
}

.widget-value-item {
    background: var(--background-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
}

.widget-value-item.highlight {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
}

.widget-value-chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 80px;
    margin-bottom: var(--spacing-md);
}

.widget-value-chart-bars span {
    flex: 1;
    border-radius: var(--radius-sm);
}

.widget-value-chart-bars.primary span {
    background: var(--accent-color);
}

.widget-value-chart-bars.info span {
    background: var(--info-color);
}

.widget-value-chart-area {
    position: relative;
    height: 80px;
    margin-bottom: var(--spacing-md);
}

.widget-value-chart-area svg {
    width: 100%;
    height: 100%;
}

.widget-value-chart-tooltip {
    position: absolute;
    top: 0;
    right: 20%;
    background: var(--accent-color);
    color: var(--contrast-color);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

.widget-value-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget-value-label {
    font-size: 0.8125rem;
    color: var(--muted-color);
}

.widget-value-amount .value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--heading-color);
}

.widget-value-amount .change {
    font-size: 0.75rem;
    margin-left: var(--spacing-sm);
}

.widget-value-amount .change.positive {
    color: var(--success-color);
}

.widget-value-amount .change.negative {
    color: var(--danger-color);
}

/* Yearly Cards */
.widget-yearly-title {
    font-size: 0.875rem;
    color: var(--muted-color);
    margin-bottom: var(--spacing-sm);
}

.widget-yearly-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: var(--spacing-sm);
}

.widget-yearly-change {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
}

.widget-yearly-change .positive {
    color: var(--success-color);
    font-weight: 500;
}

.widget-yearly-legend {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.widget-yearly-legend span {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--muted-color);
}

.widget-yearly-legend span i {
    font-size: 0.5rem;
}

.widget-yearly-donut {
    width: 100px;
    height: 100px;
    margin: 0 auto;
}

.widget-yearly-donut svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

/* Yearly Sales */
.widget-sales-header {
    margin-bottom: var(--spacing-md);
}

.widget-sales-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 2px;
}

.widget-sales-chart {
    height: 150px;
    margin-bottom: var(--spacing-md);
}

.widget-sales-bars {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 100%;
    gap: var(--spacing-sm);
}

.widget-sales-bar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.widget-sales-bar-item .bar {
    width: 100%;
    max-width: 24px;
    background: var(--info-color);
    border-radius: var(--radius-sm);
    margin-top: auto;
}

.widget-sales-bar-item span {
    font-size: 0.6875rem;
    color: var(--muted-color);
    margin-top: var(--spacing-xs);
}

.widget-sales-bar-item.highlight .bar {
    background: var(--accent-color);
}

.widget-sales-footer {
    display: flex;
    gap: var(--spacing-lg);
}

.widget-sales-stat {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.widget-sales-stat i {
    color: var(--muted-color);
}

.widget-sales-stat .label {
    font-size: 0.75rem;
    color: var(--muted-color);
}

.widget-sales-stat .value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--heading-color);
}

/* Revenue Updates */
.widget-revenue-header {
    margin-bottom: var(--spacing-sm);
}

.widget-revenue-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 2px;
}

.widget-revenue-legend {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.widget-revenue-legend span {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--muted-color);
}

.widget-revenue-legend span i {
    font-size: 0.5rem;
}

.widget-revenue-chart {
    display: flex;
    gap: var(--spacing-sm);
    height: 150px;
}

.widget-revenue-bars {
    flex: 1;
    display: flex;
    justify-content: space-between;
    gap: var(--spacing-sm);
}

.widget-revenue-bars .bar-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.widget-revenue-bars .bar-group .bar {
    width: 100%;
    max-width: 16px;
    border-radius: 2px;
}

.widget-revenue-bars .bar-group .bar.positive {
    background: var(--accent-color);
}

.widget-revenue-bars .bar-group .bar.negative {
    background: var(--info-color);
}

.widget-revenue-bars .bar-group span {
    font-size: 0.6875rem;
    color: var(--muted-color);
    margin-top: var(--spacing-xs);
}

.widget-revenue-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: var(--spacing-sm) 0;
}

.widget-revenue-axis span {
    font-size: 0.6875rem;
    color: var(--muted-color);
}

/* Monthly Earnings */
.widget-earnings .card-body {
    padding: var(--spacing-lg);
}

.widget-earnings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

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

.widget-earnings-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: var(--spacing-md);
}

.widget-earnings-chart {
    height: 60px;
}

.widget-earnings-chart svg {
    width: 100%;
    height: 100%;
}

/* Most Visited */
.widget-visited-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.widget-visited-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--heading-color);
    margin: 0;
}

.widget-visited-chart {
    display: flex;
    gap: var(--spacing-sm);
    height: 150px;
    margin-bottom: var(--spacing-md);
}

.widget-visited-bars {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: var(--spacing-md);
}

.widget-visited-bars .bar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.widget-visited-bars .bar-item .bar {
    width: 100%;
    max-width: 32px;
    background: var(--border-color);
    border-radius: var(--radius-sm);
    margin-top: auto;
}

.widget-visited-bars .bar-item.highlight .bar {
    background: var(--accent-color);
}

.widget-visited-bars .bar-item span {
    font-size: 0.75rem;
    color: var(--muted-color);
    margin-top: var(--spacing-xs);
}

.widget-visited-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.widget-visited-axis span {
    font-size: 0.6875rem;
    color: var(--muted-color);
}

.widget-visited-legend {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
}

.widget-visited-legend span {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--muted-color);
}

.widget-visited-legend span i {
    font-size: 0.5rem;
}

/* Page Impressions */
.widget-impressions-title {
    font-size: 0.875rem;
    color: var(--muted-color);
    margin-bottom: var(--spacing-xs);
}

.widget-impressions-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: var(--spacing-xs);
}

.widget-impressions-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.widget-impressions-chart {
    height: 60px;
    margin-bottom: var(--spacing-md);
}

.widget-impressions-chart svg {
    width: 100%;
    height: 100%;
}

.widget-impressions-stats {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.widget-impressions-stat {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.widget-impressions-stat .label {
    font-size: 0.75rem;
    color: var(--muted-color);
}

.widget-impressions-stat .value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--heading-color);
    margin-left: auto;
}

.widget-impressions-stat .badge {
    margin-left: var(--spacing-sm);
}

/* Delivery Analytics */
.widget-delivery-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.widget-delivery-tabs {
    display: flex;
    gap: var(--spacing-xs);
    margin-left: auto;
}

.widget-delivery-tabs button {
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    background: transparent;
    font-size: 0.75rem;
    color: var(--muted-color);
    cursor: pointer;
}

.widget-delivery-tabs button.active {
    background: var(--background-color);
    color: var(--heading-color);
}

.widget-delivery-content {
    display: flex;
    gap: var(--spacing-lg);
}

.widget-delivery-chart {
    flex: 1;
}

.widget-radar-chart {
    width: 100%;
    max-width: 200px;
    height: 200px;
}

.widget-delivery-info {
    flex: 1;
}

.widget-delivery-message {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: var(--background-color);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
}

.widget-delivery-message i {
    font-size: 1.25rem;
    color: var(--accent-color);
}

.widget-delivery-message strong {
    display: block;
    font-size: 0.875rem;
    color: var(--heading-color);
}

.widget-delivery-message span {
    font-size: 0.75rem;
    color: var(--muted-color);
}

.widget-delivery-stats {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.widget-delivery-stat {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.widget-delivery-stat .dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
}

.widget-delivery-stat .dot.primary {
    background: var(--accent-color);
}

.widget-delivery-stat .dot.info {
    background: var(--info-color);
}

.widget-delivery-stat .dot.danger {
    background: var(--danger-color);
}

.widget-delivery-stat .value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--heading-color);
}

.widget-delivery-stat .label {
    font-size: 0.75rem;
    color: var(--muted-color);
}

/* Marketing Report */
.widget-marketing-content {
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.widget-marketing-stats {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.widget-marketing-stat {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.widget-marketing-stat .label {
    font-size: 0.75rem;
    color: var(--muted-color);
    display: block;
}

.widget-marketing-stat .value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--heading-color);
}

.widget-marketing-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.widget-marketing-icon.primary {
    background: color-mix(in srgb, var(--accent-color), transparent 90%);
    color: var(--accent-color);
}

.widget-marketing-icon.warning {
    background: var(--warning-color-light);
    color: var(--warning-color);
}

.widget-marketing-icon.info {
    background: var(--info-color-light);
    color: var(--info-color);
}

.widget-marketing-icon.success {
    background: var(--success-color-light);
    color: var(--success-color);
}

.widget-marketing-chart {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.widget-gauge {
    position: relative;
    width: 150px;
    text-align: center;
}

.widget-gauge svg {
    width: 100%;
    height: auto;
}

.widget-gauge-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-top: var(--spacing-sm);
}

.widget-gauge-label {
    font-size: 0.75rem;
    color: var(--muted-color);
    margin-top: var(--spacing-xs);
}

.widget-marketing-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md);
    background: var(--background-color);
    border-radius: var(--radius-md);
}

.widget-marketing-tip {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.widget-marketing-tip i {
    color: var(--warning-color);
}

.widget-marketing-tip span {
    font-size: 0.8125rem;
    color: var(--muted-color);
}

/* Bottom Stats Cards */
.widget-bottom-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-md);
}

.widget-bottom-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 2px;
}

.widget-bottom-values {
    text-align: right;
}

.widget-bottom-values .value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--heading-color);
    display: block;
}

.widget-bottom-values .change {
    font-size: 0.75rem;
    font-weight: 500;
}

.widget-bottom-values .change.positive {
    color: var(--success-color);
}

.widget-bottom-values .change.negative {
    color: var(--danger-color);
}

.widget-bottom-chart {
    height: 80px;
    margin-bottom: var(--spacing-md);
}

.widget-bottom-chart svg {
    width: 100%;
    height: 100%;
}

.widget-bottom-chart.primary {
    color: var(--accent-color);
}

.widget-bottom-bars {
    display: flex;
    align-items: flex-end;
    gap: var(--spacing-md);
    height: 80px;
    margin-bottom: var(--spacing-md);
}

.widget-bottom-bars .bar-day {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.widget-bottom-bars .bar-day .bar-fill {
    width: 100%;
    max-width: 24px;
    background: var(--accent-color);
    border-radius: var(--radius-full);
    margin-top: auto;
}

.widget-bottom-bars .bar-day span {
    font-size: 0.75rem;
    color: var(--muted-color);
    margin-top: var(--spacing-xs);
}

.widget-bottom-donut {
    width: 100px;
    height: 100px;
    margin: 0 auto var(--spacing-md);
}

.widget-bottom-donut svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.widget-bottom-legend {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.widget-bottom-legend-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 0.8125rem;
    color: var(--muted-color);
}

.widget-bottom-legend-item .dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
}

.widget-bottom-legend-item .dot.primary {
    background: var(--accent-color);
}

.widget-bottom-legend-item .dot.muted {
    background: var(--border-color);
}

.widget-bottom-legend-item .value {
    margin-left: auto;
    font-weight: 500;
    color: var(--heading-color);
}

.widget-bottom-footer {
    text-align: center;
    padding-top: var(--spacing-md);
}

/* Sales Profit */
.widget-profit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.widget-profit-tabs {
    display: flex;
    gap: var(--spacing-xs);
}

.widget-profit-tabs button {
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    background: transparent;
    font-size: 0.8125rem;
    color: var(--muted-color);
    cursor: pointer;
}

.widget-profit-tabs button.active {
    background: var(--background-color);
    color: var(--heading-color);
}

.widget-profit-chart {
    position: relative;
    height: 150px;
    margin-bottom: var(--spacing-md);
}

.widget-profit-chart svg {
    width: 100%;
    height: 100%;
}

.widget-profit-labels {
    display: flex;
    justify-content: space-between;
    margin-top: var(--spacing-sm);
}

.widget-profit-labels span {
    font-size: 0.75rem;
    color: var(--muted-color);
}

.widget-profit-axis {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.widget-profit-axis span {
    font-size: 0.6875rem;
    color: var(--muted-color);
}

.widget-profit-footer {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color-light);
}

.widget-profit-stat {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.widget-profit-stat .value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--heading-color);
}

.widget-profit-stat .label {
    font-size: 0.75rem;
    color: var(--muted-color);
}

.widget-profit-stat-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-xs);
}

.widget-profit-stat-icon.primary {
    background: color-mix(in srgb, var(--accent-color), transparent 90%);
    color: var(--accent-color);
}

.widget-profit-stat-icon.warning {
    background: var(--warning-color-light);
    color: var(--warning-color);
}

/* Product Sales Donut */
.widget-product-donut {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto var(--spacing-md);
}

.widget-product-donut svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.widget-product-donut-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.widget-product-donut-center .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--heading-color);
    display: block;
}

.widget-product-legend {
    margin-bottom: var(--spacing-md);
}

.widget-product-legend-row {
    display: flex;
    justify-content: space-around;
    margin-bottom: var(--spacing-xs);
}

.widget-product-legend-row span {
    font-size: 0.75rem;
    color: var(--muted-color);
}

.widget-product-legend-row span i {
    font-size: 0.5rem;
}

.widget-product-note {
    font-size: 0.75rem;
}

/* Sales Overview */
.widget-overview-header {
    margin-bottom: var(--spacing-md);
}

.widget-overview-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 2px;
}

.widget-overview-donut {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto var(--spacing-md);
}

.widget-overview-donut svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.widget-overview-donut-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--heading-color);
}

.widget-overview-stats {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
}

.widget-overview-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
}

.widget-overview-stat i {
    color: var(--muted-color);
}

.widget-overview-stat .value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--heading-color);
}

.widget-overview-stat .label {
    font-size: 0.75rem;
    color: var(--muted-color);
}

/* Marketing Mini */
.widget-marketing-mini {
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.widget-marketing-mini-stats {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.widget-marketing-mini-stat {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.widget-marketing-mini-stat .icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.widget-marketing-mini-stat .icon.primary {
    background: color-mix(in srgb, var(--accent-color), transparent 90%);
    color: var(--accent-color);
}

.widget-marketing-mini-stat .icon.warning {
    background: var(--warning-color-light);
    color: var(--warning-color);
}

.widget-marketing-mini-stat .icon.success {
    background: var(--success-color-light);
    color: var(--success-color);
}

.widget-marketing-mini-stat .label {
    font-size: 0.75rem;
    color: var(--muted-color);
    display: block;
}

.widget-marketing-mini-stat .value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--heading-color);
}

.widget-marketing-mini-chart {
    position: relative;
    width: 80px;
    height: 80px;
}

.widget-marketing-mini-chart svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.widget-marketing-mini-chart .value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--heading-color);
}

.widget-marketing-mini-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md);
    background: var(--background-color);
    border-radius: var(--radius-md);
}

.widget-marketing-mini-footer span {
    font-size: 0.8125rem;
    color: var(--muted-color);
}

/* Annual Profit */
.widget-annual-chart {
    position: relative;
    margin-bottom: var(--spacing-md);
}

.widget-annual-chart svg {
    width: 100%;
    height: 60px;
}

.widget-annual-rate {
    position: absolute;
    top: 0;
    right: 0;
    text-align: right;
}

.widget-annual-rate .label {
    font-size: 0.75rem;
    color: var(--muted-color);
    display: block;
}

.widget-annual-rate .value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--heading-color);
}

.widget-annual-stats {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.widget-annual-stat .label {
    font-size: 0.8125rem;
    color: var(--heading-color);
    display: block;
}

.widget-annual-stat .sublabel {
    font-size: 0.75rem;
    color: var(--muted-color);
    display: block;
    margin-bottom: var(--spacing-xs);
}

.widget-annual-stat-value {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.widget-annual-stat-value .value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--heading-color);
}

.widget-annual-stat-value .change {
    font-size: 0.75rem;
    font-weight: 500;
}

.widget-annual-stat-value .change.positive {
    color: var(--success-color);
}

.widget-annual-stat-value .change.negative {
    color: var(--danger-color);
}

/*--------------------------------------------------------------
# Widget Apps Page Styles
--------------------------------------------------------------*/
.widget-comment-item {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.widget-comment-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.widget-comment-item:first-child {
    padding-top: 0;
}

.widget-comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
}

.widget-comment-content {
    flex: 1;
    min-width: 0;
}

.widget-comment-author {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 0.25rem;
}

.widget-comment-text {
    font-size: 0.8125rem;
    color: var(--muted-color);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.widget-comment-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.widget-comment-actions .btn-link {
    color: var(--muted-color);
}

.widget-comment-actions .btn-link:hover {
    color: var(--accent-color);
}

.widget-comment-date {
    position: absolute;
    top: 1rem;
    right: 0;
    font-size: 0.75rem;
    color: var(--muted-color);
}

.widget-todo-list .widget-todo-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.widget-todo-list .widget-todo-item:last-child {
    border-bottom: none;
}

.widget-todo-check {
    padding-top: 0.125rem;
}

.widget-todo-check .form-check-input {
    width: 18px;
    height: 18px;
}

.widget-todo-content {
    flex: 1;
    min-width: 0;
}

.widget-todo-title {
    font-size: 0.875rem;
    color: var(--heading-color);
    font-weight: 500;
    margin-bottom: 0.25rem;
    cursor: pointer;
}

.form-check-input:checked + .widget-todo-title {
    text-decoration: line-through;
    color: var(--muted-color);
}

.widget-todo-date {
    font-size: 0.75rem;
    color: var(--muted-color);
}

.widget-projects-table th {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--muted-color);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
}

.widget-projects-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.widget-projects-table tr:last-child td {
    border-bottom: none;
}

.widget-project-assignee {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.widget-project-initial {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

.widget-project-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--heading-color);
}

.widget-project-role {
    font-size: 0.75rem;
    color: var(--muted-color);
}

.widget-project-client {
    font-size: 0.875rem;
    color: var(--accent-color);
}

.widget-weather-main {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.widget-weather-icon {
    font-size: 3rem;
    color: var(--warning-color);
}

.widget-weather-temp {
    display: flex;
    align-items: flex-start;
}

.widget-weather-degree {
    font-size: 3rem;
    font-weight: 600;
    color: var(--heading-color);
    line-height: 1;
}

.widget-weather-unit {
    font-size: 1.5rem;
    color: var(--muted-color);
}

.widget-weather-info h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 0.25rem;
}

.widget-weather-info p {
    font-size: 0.875rem;
    color: var(--muted-color);
    margin: 0;
}

.widget-weather-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.widget-weather-detail {
    display: flex;
    justify-content: space-between;
}

.widget-weather-detail .label {
    font-size: 0.8125rem;
    color: var(--muted-color);
}

.widget-weather-detail .value {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--heading-color);
}

.widget-weather-forecast {
    display: flex;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.widget-weather-forecast-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.widget-weather-forecast-item .time {
    font-size: 0.75rem;
    color: var(--muted-color);
}

.widget-weather-forecast-item i {
    font-size: 1.25rem;
    color: var(--warning-color);
}

.widget-weather-forecast-item .temp {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--heading-color);
}

.widget-user-profile-full .card-body {
    padding: 2rem 1.5rem;
}

.widget-user-profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.widget-user-profile-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 0.25rem;
}

.widget-user-profile-email {
    font-size: 0.875rem;
    color: var(--muted-color);
    margin-bottom: 1rem;
}

.widget-user-profile-tags {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.widget-user-profile-actions {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.widget-message-list .widget-message-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.widget-message-list .widget-message-item:last-child {
    border-bottom: none;
}

.widget-message-list .widget-message-item:hover {
    background-color: var(--background-color);
}

.widget-message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
}

.widget-message-content {
    flex: 1;
    min-width: 0;
}

.widget-message-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--heading-color);
    margin-bottom: 0;
}

.widget-message-email {
    font-size: 0.75rem;
    color: var(--muted-color);
    margin: 0;
}

.widget-user-stats-card .card-body {
    padding: 1.5rem;
}

.widget-user-stats-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin-bottom: 0.75rem;
}

.widget-user-stats-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 0.25rem;
}

.widget-user-stats-role {
    font-size: 0.875rem;
    color: var(--accent-color);
    margin-bottom: 0.75rem;
}

.widget-user-stats-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.widget-user-stat {
    text-align: center;
}

.widget-user-stat-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--heading-color);
}

.widget-user-stat-label {
    font-size: 0.75rem;
    color: var(--muted-color);
}

.widget-description-text {
    font-size: 0.875rem;
    color: var(--muted-color);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.widget-description-actions {
    display: flex;
    gap: 0.5rem;
}

.widget-browser-list .widget-browser-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.widget-browser-list .widget-browser-item:last-child {
    border-bottom: none;
}

.widget-browser-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.widget-browser-icon.chrome {
    background-color: #4285f4;
    color: white;
}

.widget-browser-icon.firefox {
    background-color: #ff7139;
    color: white;
}

.widget-browser-icon.safari {
    background-color: #0fb5ee;
    color: white;
}

.widget-browser-icon.edge {
    background-color: #0078d4;
    color: white;
}

.widget-browser-icon.opera {
    background-color: #ff1b2d;
    color: white;
}

.widget-browser-icon.other {
    background-color: var(--muted-color);
    color: white;
}

.widget-browser-name {
    flex: 1;
    font-size: 0.875rem;
    color: var(--heading-color);
}

.widget-browser-percent {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--heading-color);
}

.widget-people-card .card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.widget-people-search {
    margin-bottom: 1rem;
}

.widget-people-list {
    margin-bottom: 1rem;
}

.widget-people-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.widget-people-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
}

.widget-people-name {
    flex: 1;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--heading-color);
}

.widget-people-actions {
    margin-top: 1rem;
}

.widget-currency-input {
    display: flex;
    gap: 0.5rem;
}

.widget-currency-input .form-control {
    flex: 1;
}

.widget-currency-input .form-select {
    width: 80px;
    flex-shrink: 0;
}

.widget-currency-swap {
    display: flex;
    justify-content: center;
    padding: 0.75rem 0;
}

.widget-social-profile .card-body {
    padding: 1.5rem;
}

.widget-social-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.widget-social-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 1rem;
}

.widget-social-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.widget-social-stat {
    text-align: center;
}

.widget-social-stat .value {
    display: block;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--heading-color);
}

.widget-social-stat .label {
    font-size: 0.75rem;
    color: var(--muted-color);
}

.widget-reviews-summary {
    text-align: center;
}

.widget-reviews-count {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 0.5rem;
}

.widget-order-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.widget-order-tab {
    flex: 1;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    background: transparent;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    color: var(--default-color);
    cursor: pointer;
    transition: all 0.2s;
}

.widget-order-tab.active {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

.widget-order-tab:hover:not(.active) {
    background-color: var(--background-color);
}

.widget-poll-question {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--heading-color);
    margin-bottom: 1rem;
}

.widget-poll-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.widget-poll-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.widget-poll-option label {
    font-size: 0.875rem;
    color: var(--default-color);
    cursor: pointer;
}

.widget-poll-option.selected label {
    color: var(--accent-color);
    font-weight: 500;
}

.widget-poll-results {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.widget-poll-result .widget-poll-result-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.8125rem;
    color: var(--default-color);
}

.widget-poll-result .progress {
    background-color: var(--background-color);
}

.widget-feeds-list .widget-feed-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.widget-feeds-list .widget-feed-item:last-child {
    border-bottom: none;
}

.widget-feed-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.widget-feed-icon.warning {
    background-color: color-mix(in srgb, var(--warning-color), transparent 85%);
    color: var(--warning-color);
}

.widget-feed-icon.danger {
    background-color: color-mix(in srgb, var(--danger-color), transparent 85%);
    color: var(--danger-color);
}

.widget-feed-icon.success {
    background-color: color-mix(in srgb, var(--success-color), transparent 85%);
    color: var(--success-color);
}

.widget-feed-icon.info {
    background-color: color-mix(in srgb, var(--info-color), transparent 85%);
    color: var(--info-color);
}

.widget-feed-icon.primary {
    background-color: color-mix(in srgb, var(--accent-color), transparent 85%);
    color: var(--accent-color);
}

.widget-feed-content {
    flex: 1;
    min-width: 0;
}

.widget-feed-text {
    font-size: 0.875rem;
    color: var(--default-color);
    margin: 0;
}

.widget-feed-time {
    font-size: 0.75rem;
    color: var(--muted-color);
    white-space: nowrap;
}

.widget-visits-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.widget-visit-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.widget-visit-info {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.widget-visit-count {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--heading-color);
    margin: 0;
}

.widget-visit-country {
    font-size: 0.875rem;
    color: var(--muted-color);
}

.widget-visit-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.widget-visit-bar .progress {
    flex: 1;
    background-color: var(--background-color);
}

.widget-visit-percent {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--heading-color);
    min-width: 40px;
    text-align: right;
}

.widget-earning-total {
    font-size: 2rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 1rem;
}

.widget-earning-users {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.widget-earning-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.widget-earning-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
}

.widget-earning-name {
    flex: 1;
    font-size: 0.875rem;
    color: var(--heading-color);
}

/*--------------------------------------------------------------
# Widget Data Page Styles
--------------------------------------------------------------*/
.widget-stat-progress .card-body {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
}

.widget-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.widget-stat-icon.primary {
    background-color: color-mix(in srgb, var(--accent-color), transparent 85%);
    color: var(--accent-color);
}

.widget-stat-icon.success {
    background-color: color-mix(in srgb, var(--success-color), transparent 85%);
    color: var(--success-color);
}

.widget-stat-icon.warning {
    background-color: color-mix(in srgb, var(--warning-color), transparent 85%);
    color: var(--warning-color);
}

.widget-stat-icon.danger {
    background-color: color-mix(in srgb, var(--danger-color), transparent 85%);
    color: var(--danger-color);
}

.widget-stat-icon.info {
    background-color: color-mix(in srgb, var(--info-color), transparent 85%);
    color: var(--info-color);
}

.widget-stat-icon.secondary {
    background-color: color-mix(in srgb, var(--muted-color), transparent 85%);
    color: var(--muted-color);
}

.widget-stat-content {
    flex: 1;
    min-width: 0;
}

.widget-stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--heading-color);
    line-height: 1.2;
}

.widget-stat-label {
    font-size: 0.8125rem;
    color: var(--muted-color);
}

.widget-stat-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.widget-stat-bar.primary {
    background-color: var(--accent-color);
}

.widget-stat-bar.success {
    background-color: var(--success-color);
}

.widget-stat-bar.warning {
    background-color: var(--warning-color);
}

.widget-stat-bar.danger {
    background-color: var(--danger-color);
}

.widget-stat-bar.info {
    background-color: var(--info-color);
}

.widget-stat-bar.secondary {
    background-color: var(--muted-color);
}

.widget-icon-stat .card-body {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
}

.widget-icon-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.widget-icon-stat-icon.primary {
    background-color: color-mix(in srgb, var(--accent-color), transparent 85%);
    color: var(--accent-color);
}

.widget-icon-stat-icon.success {
    background-color: color-mix(in srgb, var(--success-color), transparent 85%);
    color: var(--success-color);
}

.widget-icon-stat-icon.warning {
    background-color: color-mix(in srgb, var(--warning-color), transparent 85%);
    color: var(--warning-color);
}

.widget-icon-stat-icon.danger {
    background-color: color-mix(in srgb, var(--danger-color), transparent 85%);
    color: var(--danger-color);
}

.widget-icon-stat-icon.info {
    background-color: color-mix(in srgb, var(--info-color), transparent 85%);
    color: var(--info-color);
}

.widget-icon-stat-icon.secondary {
    background-color: color-mix(in srgb, var(--muted-color), transparent 85%);
    color: var(--muted-color);
}

.widget-icon-stat-content {
    flex: 1;
}

.widget-icon-stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--heading-color);
}

.widget-icon-stat-label {
    font-size: 0.875rem;
    color: var(--muted-color);
}

.widget-icon-left-stat .card-body {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
}

.widget-icon-left-icon {
    width: 44px;
    height: 44px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.widget-icon-left-icon.primary {
    background-color: color-mix(in srgb, var(--accent-color), transparent 85%);
    color: var(--accent-color);
}

.widget-icon-left-icon.success {
    background-color: color-mix(in srgb, var(--success-color), transparent 85%);
    color: var(--success-color);
}

.widget-icon-left-icon.warning {
    background-color: color-mix(in srgb, var(--warning-color), transparent 85%);
    color: var(--warning-color);
}

.widget-icon-left-icon.danger {
    background-color: color-mix(in srgb, var(--danger-color), transparent 85%);
    color: var(--danger-color);
}

.widget-icon-left-icon.info {
    background-color: color-mix(in srgb, var(--info-color), transparent 85%);
    color: var(--info-color);
}

.widget-icon-left-icon.secondary {
    background-color: color-mix(in srgb, var(--muted-color), transparent 85%);
    color: var(--muted-color);
}

.widget-icon-left-content {
    flex: 1;
}

.widget-icon-left-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--heading-color);
}

.widget-icon-left-label {
    font-size: 0.8125rem;
    color: var(--muted-color);
}

.widget-weather-image-card {
    overflow: hidden;
    border: none;
}

.widget-weather-image-bg {
    padding: 2rem;
    min-height: 200px;
    display: flex;
    align-items: flex-end;
    position: relative;
}

.widget-weather-image-content {
    color: white;
}

.widget-weather-location {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.widget-weather-temp-large {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.widget-weather-temp-large i {
    font-size: 2rem;
}

.widget-weather-temp-large span {
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1;
}

.widget-weather-temp-large span small {
    font-size: 1rem;
    opacity: 0.8;
}

.widget-weather-day {
    font-size: 0.875rem;
    opacity: 0.9;
}

.widget-weather-simple .card-body {
    padding: 1.5rem;
}

.widget-weather-simple-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.widget-weather-simple-temp {
    font-size: 2rem;
    font-weight: 700;
    color: var(--heading-color);
    margin: 0;
}

.widget-weather-simple-location {
    font-size: 0.875rem;
    color: var(--muted-color);
    margin: 0;
}

.widget-weather-simple-icon {
    font-size: 2.5rem;
    color: var(--info-color);
}

.widget-weather-simple-date {
    font-size: 0.8125rem;
    color: var(--muted-color);
}

.widget-weather-compact .card-body {
    padding: 1rem;
    text-align: center;
}

.widget-weather-compact-icon {
    font-size: 2rem;
    color: var(--warning-color);
    margin-bottom: 0.5rem;
}

.widget-weather-compact-temp {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 0.25rem;
}

.widget-weather-compact-temp small {
    font-size: 0.75rem;
    color: var(--muted-color);
}

.widget-weather-compact-date {
    font-size: 0.75rem;
    color: var(--muted-color);
}

.widget-weather-compact-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--muted-color);
    margin-bottom: 0.5rem;
}

.widget-weather-week {
    display: flex;
    justify-content: space-around;
    padding: 1rem 0;
}

.widget-weather-week-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
}

.widget-weather-week-item.active {
    background-color: var(--accent-color);
}

.widget-weather-week-item.active .day,
.widget-weather-week-item.active .temp {
    color: white;
}

.widget-weather-week-item.active i {
    color: white;
}

.widget-weather-week-item .day {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted-color);
    text-transform: uppercase;
}

.widget-weather-week-item i {
    font-size: 1.5rem;
    color: var(--warning-color);
}

.widget-weather-week-item .temp {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--heading-color);
}

.widget-crypto-card {
    border: none;
    color: white;
}

.widget-crypto-card.ethereum {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

.widget-crypto-card.dash {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
}

.widget-crypto-card.bitcoin {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
}

.widget-crypto-card.ripple {
    background: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
}

.widget-crypto-card .card-body {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
}

.widget-crypto-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
}

.widget-crypto-info {
    flex: 1;
}

.widget-crypto-name {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
}

.widget-crypto-value {
    font-size: 0.8125rem;
    opacity: 0.9;
}

.widget-crypto-stats {
    border: none;
    color: white;
}

.widget-crypto-stats.primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.widget-crypto-stats.success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.widget-crypto-stats.danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.widget-crypto-stats.info {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

.widget-crypto-stats.warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.widget-crypto-stats.secondary {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
}

.widget-crypto-stats .card-body {
    padding: 1.25rem;
}

.widget-crypto-stats-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.widget-crypto-stats-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
}

.widget-crypto-stats-info {
    flex: 1;
}

.widget-crypto-stats-name {
    display: block;
    font-size: 1rem;
    font-weight: 600;
}

.widget-crypto-stats-category {
    font-size: 0.8125rem;
    opacity: 0.8;
}

.widget-crypto-stats-grid {
    display: flex;
    justify-content: space-between;
}

.widget-crypto-stat-item {
    text-align: center;
}

.widget-crypto-stat-item .label {
    display: block;
    font-size: 0.75rem;
    opacity: 0.8;
    margin-bottom: 0.25rem;
}

.widget-crypto-stat-item .value {
    font-size: 0.875rem;
    font-weight: 500;
}

.widget-crypto-stat-item .value.up {
    color: #86efac;
}

.widget-crypto-stat-item .value.down {
    color: #fca5a5;
}

.widget-simple-stat .card-body {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
}

.widget-simple-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.widget-simple-stat-icon.primary {
    background-color: color-mix(in srgb, var(--accent-color), transparent 85%);
    color: var(--accent-color);
}

.widget-simple-stat-icon.success {
    background-color: color-mix(in srgb, var(--success-color), transparent 85%);
    color: var(--success-color);
}

.widget-simple-stat-icon.warning {
    background-color: color-mix(in srgb, var(--warning-color), transparent 85%);
    color: var(--warning-color);
}

.widget-simple-stat-icon.danger {
    background-color: color-mix(in srgb, var(--danger-color), transparent 85%);
    color: var(--danger-color);
}

.widget-simple-stat-content {
    flex: 1;
    min-width: 0;
}

.widget-simple-stat-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--heading-color);
}

.widget-simple-stat-sublabel {
    font-size: 0.75rem;
    color: var(--muted-color);
}

.widget-simple-stat-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--heading-color);
}

.widget-colored-stat {
    border: none;
    color: white;
}

.widget-colored-stat.primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.widget-colored-stat.success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.widget-colored-stat.info {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

.widget-colored-stat.danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.widget-colored-stat .card-body {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
}

.widget-colored-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 0.5rem;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.widget-colored-stat-content {
    flex: 1;
    min-width: 0;
}

.widget-colored-stat-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
}

.widget-colored-stat-sublabel {
    font-size: 0.75rem;
    opacity: 0.8;
}

.widget-colored-stat-value {
    font-size: 1.125rem;
    font-weight: 700;
}

.widget-product-item .card-body {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
}

.widget-product-item-image {
    width: 60px;
    height: 60px;
    border-radius: 0.5rem;
    overflow: hidden;
    flex-shrink: 0;
}

.widget-product-item-image img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}

.widget-product-item-content {
    flex: 1;
    min-width: 0;
}

.widget-product-item-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 0.25rem;
}

.widget-product-item-author {
    font-size: 0.8125rem;
    color: var(--muted-color);
    margin: 0;
}

.widget-info-stat .card-body {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
}

.widget-info-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.widget-info-stat-icon.primary {
    background-color: color-mix(in srgb, var(--accent-color), transparent 85%);
    color: var(--accent-color);
}

.widget-info-stat-icon.success {
    background-color: color-mix(in srgb, var(--success-color), transparent 85%);
    color: var(--success-color);
}

.widget-info-stat-icon.warning {
    background-color: color-mix(in srgb, var(--warning-color), transparent 85%);
    color: var(--warning-color);
}

.widget-info-stat-icon.danger {
    background-color: color-mix(in srgb, var(--danger-color), transparent 85%);
    color: var(--danger-color);
}

.widget-info-stat-content {
    flex: 1;
}

.widget-info-stat-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--heading-color);
}

.widget-info-stat-label {
    font-size: 0.8125rem;
    color: var(--muted-color);
}

.widget-progress-stat .card-body {
    padding: 1.25rem;
}

.widget-progress-stat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.widget-progress-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--heading-color);
}

.widget-progress-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.widget-progress-stat-icon.primary {
    background-color: color-mix(in srgb, var(--accent-color), transparent 85%);
    color: var(--accent-color);
}

.widget-progress-stat-icon.success {
    background-color: color-mix(in srgb, var(--success-color), transparent 85%);
    color: var(--success-color);
}

.widget-progress-stat-icon.info {
    background-color: color-mix(in srgb, var(--info-color), transparent 85%);
    color: var(--info-color);
}

.widget-progress-stat-icon.danger {
    background-color: color-mix(in srgb, var(--danger-color), transparent 85%);
    color: var(--danger-color);
}

.widget-progress-stat-label {
    display: block;
    font-size: 0.8125rem;
    color: var(--muted-color);
    margin-bottom: 0.75rem;
}

.widget-progress-bar {
    background-color: var(--background-color);
}

.widget-featured-card {
    overflow: hidden;
}

.widget-featured-image {
    height: 180px;
    overflow: hidden;
}

.widget-featured-image img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    transition: transform 0.3s;
}

.widget-featured-image:hover img {
    transform: scale(1.05);
}

.widget-featured-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.8125rem;
    color: var(--muted-color);
}

.widget-featured-meta i {
    margin-right: 0.25rem;
}

.widget-featured-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 0.5rem;
}

.widget-featured-desc {
    font-size: 0.875rem;
    color: var(--muted-color);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.widget-bottom-progress .card-body {
    padding: 1.25rem;
}

.widget-bottom-progress-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--heading-color);
}

.widget-bottom-progress-label {
    display: block;
    font-size: 0.8125rem;
    color: var(--muted-color);
    margin-bottom: 0.75rem;
}

/*--------------------------------------------------------------
# Responsive Tables Page Styles
--------------------------------------------------------------*/
/* Stacked Table Pattern - transforms to card-like layout on mobile */
@media (max-width: 767.98px) {
    .table-stacked thead {
        display: none;
    }

    .table-stacked tbody tr {
        display: block;
        margin-bottom: var(--spacing-md);
        padding: var(--spacing-md);
        background-color: var(--surface-color);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-lg);
    }

    .table-stacked tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: var(--spacing-sm) 0;
        border: none;
        border-bottom: 1px solid var(--border-color-light);
    }

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

    .table-stacked tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--muted-color);
        margin-right: var(--spacing-md);
    }
}

/* Scroll Indicator Wrapper */
.table-scroll-wrapper {
    position: relative;
}

.table-scroll-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(to right, transparent, var(--surface-color));
    pointer-events: none;
    opacity: 1;
    transition: opacity var(--transition-fast);
}

.table-scroll-wrapper.scrolled-end::after {
    opacity: 0;
}

/* Sticky Column Table */
.table-sticky-col .sticky-col {
    position: sticky;
    left: 0;
    background-color: var(--surface-color);
    z-index: 1;
    min-width: 200px;
}

.table-sticky-col .sticky-col::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 1px;
    background-color: var(--border-color);
}

.table-sticky-col thead .sticky-col {
    background-color: var(--table-header-bg);
    z-index: 2;
}

.table-sticky-col tbody tr:hover .sticky-col {
    background-color: var(--table-hover-bg);
}

/* Dark mode adjustments */
[data-theme="dark"] .table-scroll-wrapper::after {
    background: linear-gradient(to right, transparent, var(--surface-color));
}

[data-theme="dark"] .table-sticky-col .sticky-col {
    background-color: var(--surface-color);
}

[data-theme="dark"] .table-sticky-col thead .sticky-col {
    background-color: var(--table-header-bg);
}

[data-theme="dark"] .table-sticky-col tbody tr:hover .sticky-col {
    background-color: var(--table-hover-bg);
}

/*--------------------------------------------------------------
# Form Wizard Styles
--------------------------------------------------------------*/
/* Horizontal Wizard Steps */
.wizard-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.wizard-steps::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--border-color);
    z-index: 0;
}

.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.wizard-step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--surface-color);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--muted-color);
    transition: all var(--transition-base);
}

.wizard-step-number {
    font-size: 0.875rem;
}

.wizard-step-check {
    display: none;
}

.wizard-step-label {
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    color: var(--muted-color);
    font-weight: 500;
    transition: color var(--transition-base);
}

.wizard-step.active .wizard-step-icon {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--contrast-color);
}

.wizard-step.active .wizard-step-label {
    color: var(--accent-color);
}

.wizard-step.completed .wizard-step-icon {
    background: var(--success-color);
    border-color: var(--success-color);
    color: var(--contrast-color);
}

.wizard-step.completed .wizard-step-number {
    display: none;
}

.wizard-step.completed .wizard-step-check {
    display: block;
}

.wizard-step.completed .wizard-step-label {
    color: var(--success-color);
}

/* Wizard Content */
.wizard-content {
    display: none;
    padding: 1.5rem 0;
}

.wizard-content.active {
    display: block;
}

/* Wizard Actions */
.wizard-actions {
    display: flex;
    justify-content: space-between;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    margin-top: 1.5rem;
}

/* Wizard Finish Icon */
.wizard-finish-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--accent-color), transparent 90%);
    color: var(--accent-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.wizard-finish-icon.success {
    background: color-mix(in srgb, var(--success-color), transparent 90%);
    color: var(--success-color);
}

/* Vertical Wizard */
.wizard-steps-vertical {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    padding-left: 1rem;
}

.wizard-steps-vertical::before {
    content: "";
    position: absolute;
    left: calc(1rem + 15px);
    top: 30px;
    bottom: 30px;
    width: 2px;
    background: var(--border-color);
}

.wizard-step-v {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    position: relative;
}

.wizard-step-v-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background: var(--surface-color);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--muted-color);
    transition: all var(--transition-base);
    z-index: 1;
}

.wizard-step-v-content {
    flex: 1;
}

.wizard-step-v-title {
    font-weight: 600;
    color: var(--muted-color);
    font-size: 0.9375rem;
    transition: color var(--transition-base);
}

.wizard-step-v-desc {
    font-size: 0.8125rem;
    color: var(--light-color);
}

.wizard-step-v.active .wizard-step-v-icon {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--contrast-color);
}

.wizard-step-v.active .wizard-step-v-title {
    color: var(--heading-color);
}

.wizard-step-v.completed .wizard-step-v-icon {
    background: var(--success-color);
    border-color: var(--success-color);
    color: var(--contrast-color);
}

.wizard-step-v.completed .wizard-step-v-title {
    color: var(--success-color);
}

.wizard-content-v {
    display: none;
}

.wizard-content-v.active {
    display: block;
}

/* Plan Cards */
.plan-card {
    position: relative;
}

.plan-card .btn-check:checked + .plan-card-label {
    border-color: var(--accent-color);
    background: color-mix(in srgb, var(--accent-color), transparent 95%);
}

.plan-card-label {
    display: block;
    padding: 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    height: 100%;
}

.plan-card-label:hover {
    border-color: var(--accent-color);
}

.plan-card-label.featured {
    border-color: var(--accent-color);
}

.plan-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: var(--contrast-color);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.plan-card-header {
    text-align: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.plan-card-header h6 {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.plan-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--heading-color);
}

.plan-price small {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--muted-color);
}

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

.plan-features li {
    padding: 0.375rem 0;
    font-size: 0.875rem;
}

.plan-features li i {
    margin-right: 0.5rem;
}

/* Order Summary */
.order-summary {
    background: var(--background-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.order-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.order-total {
    padding-top: 1rem;
}

/* Progress Bar Wizard */
.wizard-progress {
    margin-bottom: 2rem;
}

.wizard-content-p {
    display: none;
    min-height: 200px;
}

.wizard-content-p.active {
    display: block;
}

/* Pills Wizard */
.wizard-pills {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.wizard-pills .nav-item {
    flex: 1;
    min-width: 120px;
    max-width: 200px;
}

.wizard-pills .nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--surface-color);
    color: var(--muted-color);
    width: 100%;
    transition: all var(--transition-base);
}

.wizard-pills .nav-link:hover:not(:disabled) {
    border-color: var(--accent-color);
}

.wizard-pills .nav-link.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--contrast-color);
}

.wizard-pills .nav-link.active .wizard-pill-number {
    background: rgba(255, 255, 255, 0.2);
    color: var(--contrast-color);
}

.wizard-pills .nav-link.completed {
    border-color: var(--success-color);
    color: var(--success-color);
}

.wizard-pills .nav-link.completed .wizard-pill-number {
    background: var(--success-color);
    color: var(--contrast-color);
}

.wizard-pills .nav-link:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.wizard-pill-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--background-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

.wizard-pill-text {
    font-weight: 500;
    font-size: 0.875rem;
}

/* Icon Steps Wizard */
.wizard-icon-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.wizard-icon-steps::before {
    content: "";
    position: absolute;
    top: 24px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--border-color);
}

.wizard-icon-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.wizard-icon-step-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--surface-color);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--muted-color);
    transition: all var(--transition-base);
}

.wizard-icon-step-label {
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    color: var(--muted-color);
    font-weight: 500;
    text-align: center;
}

.wizard-icon-step.active .wizard-icon-step-icon {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--contrast-color);
}

.wizard-icon-step.active .wizard-icon-step-label {
    color: var(--accent-color);
}

.wizard-icon-step.completed .wizard-icon-step-icon {
    background: var(--success-color);
    border-color: var(--success-color);
    color: var(--contrast-color);
}

.wizard-icon-step.completed .wizard-icon-step-label {
    color: var(--success-color);
}

.wizard-content-i {
    display: none;
    padding: 1.5rem 0;
}

.wizard-content-i.active {
    display: block;
}

/* Responsive */
@media (max-width: 767.98px) {
    .wizard-steps {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .wizard-steps::before {
        display: none;
    }

    .wizard-step {
        flex: 0 0 calc(50% - 0.5rem);
    }

    .wizard-icon-steps {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .wizard-icon-steps::before {
        display: none;
    }

    .wizard-icon-step {
        flex: 0 0 calc(33.333% - 0.75rem);
    }

    .wizard-pills .nav-item {
        min-width: 100%;
        max-width: 100%;
    }
}

/*--------------------------------------------------------------
# Rich Text Editors Styles
--------------------------------------------------------------*/
/* Quill Editor Overrides */
.ql-toolbar.ql-snow {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    background: var(--background-color);
}

.ql-container.ql-snow {
    border: 1px solid var(--border-color);
    border-top: 0;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    font-family: inherit;
    font-size: 0.9375rem;
}

.ql-editor {
    min-height: 200px;
    color: var(--default-color);
}

.ql-editor.ql-blank::before {
    color: var(--light-color);
    font-style: normal;
}

.ql-snow .ql-stroke {
    stroke: var(--default-color);
}

.ql-snow .ql-fill,
.ql-snow .ql-stroke.ql-fill {
    fill: var(--default-color);
}

.ql-snow .ql-picker {
    color: var(--default-color);
}

.ql-snow .ql-picker-options {
    background-color: var(--surface-color);
    border-color: var(--border-color);
}

.ql-snow .ql-picker.ql-expanded .ql-picker-options {
    border-color: var(--border-color);
}

/* Quill Bubble Theme */
.ql-container.ql-bubble {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.ql-bubble .ql-editor {
    min-height: 200px;
    padding: 1rem;
}

.ql-bubble .ql-tooltip {
    background-color: var(--heading-color);
    border-radius: var(--radius-md);
    z-index: 1050;
}

/* TinyMCE Overrides */
.tox-tinymce {
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-md) !important;
}

.tox .tox-toolbar,
.tox .tox-toolbar__overflow,
.tox .tox-toolbar__primary {
    background-color: var(--background-color) !important;
}

.tox:not(.tox-tinymce-inline) .tox-editor-header {
    border-bottom: 1px solid var(--border-color) !important;
}

/* Markdown Editor */
.markdown-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.markdown-preview {
    min-height: 200px;
    padding: 1rem;
    background: var(--background-color);
    border-radius: var(--radius-md);
    overflow-y: auto;
    max-height: 400px;
}

.markdown-preview h1,
.markdown-preview h2,
.markdown-preview h3,
.markdown-preview h4,
.markdown-preview h5,
.markdown-preview h6 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: var(--heading-color);
}

.markdown-preview h1 {
    font-size: 1.75rem;
}

.markdown-preview h2 {
    font-size: 1.5rem;
}

.markdown-preview h3 {
    font-size: 1.25rem;
}

.markdown-preview p {
    margin-bottom: 0.75rem;
}

.markdown-preview code {
    padding: 0.125rem 0.375rem;
    background: color-mix(in srgb, var(--accent-color), transparent 90%);
    color: var(--accent-color);
    border-radius: var(--radius-sm);
    font-family:
        "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.875em;
}

.markdown-preview pre {
    background: var(--heading-color);
    color: var(--background-color);
    padding: 1rem;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin-bottom: 1rem;
}

.markdown-preview pre code {
    padding: 0;
    background: transparent;
    color: inherit;
    border-radius: 0;
}

.markdown-preview blockquote {
    border-left: 4px solid var(--accent-color);
    padding-left: 1rem;
    margin-left: 0;
    color: var(--muted-color);
    font-style: italic;
}

.markdown-preview ul,
.markdown-preview ol {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
}

.markdown-preview li {
    margin-bottom: 0.25rem;
}

.markdown-preview a {
    color: var(--accent-color);
    text-decoration: underline;
}

.markdown-preview a:hover {
    color: color-mix(in srgb, var(--accent-color), black 15%);
}

.markdown-preview img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}

/* Code Editor */
.code-editor-wrapper {
    display: flex;
    background: #1e1e1e;
    border-radius: var(--radius-md);
    overflow: hidden;
    font-family:
        "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.875rem;
    line-height: 1.6;
}

.code-editor-lines {
    display: flex;
    flex-direction: column;
    padding: 1rem 0.5rem;
    background: #252526;
    color: #858585;
    text-align: right;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    min-width: 40px;
    overflow: hidden;
}

.code-editor-lines span {
    display: block;
    height: 1.6em;
}

.code-editor {
    flex: 1;
    padding: 1rem;
    background: #1e1e1e;
    color: #d4d4d4;
    border: none;
    outline: none;
    resize: none;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    min-height: 300px;
    -moz-tab-size: 2;
    -o-tab-size: 2;
    tab-size: 2;
}

.code-editor::-moz-placeholder {
    color: #858585;
}

.code-editor::placeholder {
    color: #858585;
}

/* Dark Mode Adjustments */
[data-theme="dark"] .ql-toolbar.ql-snow {
    background: var(--surface-color);
}

[data-theme="dark"] .ql-snow .ql-stroke {
    stroke: var(--default-color);
}

[data-theme="dark"] .ql-snow .ql-fill,
[data-theme="dark"] .ql-snow .ql-stroke.ql-fill {
    fill: var(--default-color);
}

[data-theme="dark"] .ql-snow .ql-picker {
    color: var(--default-color);
}

[data-theme="dark"] .ql-snow .ql-picker-options {
    background-color: var(--surface-color);
}

[data-theme="dark"] .ql-editor {
    background: var(--surface-color);
}

[data-theme="dark"] .markdown-preview {
    background: var(--surface-color);
}

[data-theme="dark"] .markdown-preview pre {
    background: #0d1117;
}

/* Responsive */
@media (max-width: 767.98px) {
    .markdown-toolbar .btn-group {
        margin-bottom: 0.25rem;
    }

    .code-editor-lines {
        display: none;
    }

    .code-editor {
        border-radius: var(--radius-md);
    }
}

/*--------------------------------------------------------------
# Advanced Select / Choices.js Styles
--------------------------------------------------------------*/
/* Choices.js Container */
.choices {
    margin-bottom: 0;
    font-size: 0.9375rem;
}

.choices__inner {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.375rem 0.75rem;
    min-height: calc(2.5rem + 2px);
    font-size: inherit;
    transition: border-color var(--transition-base);
}

.is-focused .choices__inner {
    border-color: var(--accent-color);
}

.is-disabled .choices__inner {
    background-color: var(--background-color);
    cursor: not-allowed;
}

/* Placeholder */
.choices__placeholder {
    color: var(--muted-color);
    opacity: 1;
}

/* Input */
.choices__input {
    background-color: transparent;
    color: var(--default-color);
    font-size: inherit;
    margin-bottom: 0;
    padding: 0;
}

.choices__input::-moz-placeholder {
    color: var(--muted-color);
}

.choices__input::placeholder {
    color: var(--muted-color);
}

.choices__input--cloned {
    margin-bottom: 0 !important;
}

/* Dropdown List */
.choices__list--dropdown {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-top: 4px;
    box-shadow: var(--shadow-lg);
    z-index: 1050;
}

.choices__list--dropdown .choices__item {
    padding: 0.5rem 0.75rem;
    font-size: 0.9375rem;
    color: var(--default-color);
}

.choices__list--dropdown .choices__item--selectable:hover,
.choices__list--dropdown .choices__item--selectable.is-highlighted {
    background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
    color: var(--accent-color);
}

.choices__list--dropdown .choices__item--disabled {
    color: var(--muted-color);
    cursor: not-allowed;
    opacity: 0.6;
}

.choices__list--dropdown .choices__item--disabled:hover {
    background-color: transparent;
}

.choices__list--dropdown .choices__item--choice.is-selected {
    background-color: color-mix(in srgb, var(--accent-color), transparent 85%);
    color: var(--accent-color);
}

.choices__list--dropdown {
    /* Search Input in Dropdown */
}

.choices__list--dropdown .choices__input {
    background-color: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem 0.75rem;
    margin: 0;
}

.choices__list--dropdown {
    /* No Results */
}

.choices__list--dropdown .choices__item--disabled.has-no-results {
    color: var(--muted-color);
    text-align: center;
    font-style: italic;
}

/* Single Select */
.choices__list--single {
    padding: 0;
}

.choices__list--single .choices__item {
    color: var(--default-color);
}

/* Multiple Select - Tags */
.choices__list--multiple {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0;
}

.choices__list--multiple .choices__item {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    margin: 0;
    background-color: var(--accent-color);
    color: var(--contrast-color);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 500;
}

.choices__list--multiple .choices__item.is-highlighted {
    background-color: color-mix(in srgb, var(--accent-color), black 15%);
}

/* Remove Button */
.choices__button {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23fff' d='M6 4.586L9.293 1.293a1 1 0 1 1 1.414 1.414L7.414 6l3.293 3.293a1 1 0 0 1-1.414 1.414L6 7.414l-3.293 3.293a1 1 0 0 1-1.414-1.414L4.586 6 1.293 2.707a1 1 0 0 1 1.414-1.414L6 4.586z'/%3E%3C/svg%3E");
    background-size: 8px;
    background-repeat: no-repeat;
    background-position: center;
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    margin-left: 0.375rem;
    padding-left: 0.375rem;
    width: 16px;
    opacity: 0.8;
    transition: opacity var(--transition-base);
}

.choices__button:hover {
    opacity: 1;
}

/* Single Select Remove Button */
.choices[data-type*="select-one"] .choices__button {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 4.586L9.293 1.293a1 1 0 1 1 1.414 1.414L7.414 6l3.293 3.293a1 1 0 0 1-1.414 1.414L6 7.414l-3.293 3.293a1 1 0 0 1-1.414-1.414L4.586 6 1.293 2.707a1 1 0 0 1 1.414-1.414L6 4.586z'/%3E%3C/svg%3E");
    border-left: none;
    margin-left: 0;
    padding: 0 0.5rem;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* Arrow Icon for Single Select */
.choices[data-type*="select-one"]::after {
    border-color: var(--muted-color) transparent transparent;
    border-style: solid;
    border-width: 5px 5px 0;
    content: "";
    height: 0;
    margin-top: -2.5px;
    pointer-events: none;
    position: absolute;
    right: 0.75rem;
    top: 50%;
    width: 0;
}

.choices[data-type*="select-one"].is-open::after {
    border-width: 0 5px 5px;
    border-color: transparent transparent var(--muted-color);
}

/* Group Headings */
.choices__heading {
    border-bottom: 1px solid var(--border-color);
    color: var(--heading-color);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    padding: 0.5rem 0.75rem;
    background-color: var(--background-color);
}

.choices__group .choices__item {
    padding-left: 1rem;
}

/* Loading State */
.choices.is-loading::after {
    border-color: var(--accent-color) transparent transparent;
}

/* Sizing Variants */
.form-select-sm + .choices .choices__inner,
.choices--sm .choices__inner {
    padding: 0.25rem 0.5rem;
    min-height: calc(1.875rem + 2px);
    font-size: 0.8125rem;
}

.form-select-sm + .choices .choices__list--multiple .choices__item,
.choices--sm .choices__list--multiple .choices__item {
    font-size: 0.75rem;
    padding: 0.0625rem 0.375rem;
}

.form-select-lg + .choices .choices__inner,
.choices--lg .choices__inner {
    padding: 0.5rem 1rem;
    min-height: calc(3rem + 2px);
    font-size: 1rem;
}

.form-select-lg + .choices .choices__list--multiple .choices__item,
.choices--lg .choices__list--multiple .choices__item {
    font-size: 0.875rem;
    padding: 0.1875rem 0.625rem;
}

/* Validation States */
.is-valid + .choices .choices__inner,
.was-validated select:valid + .choices .choices__inner {
    border-color: var(--success-color);
}

.is-focused .is-valid + .choices .choices__inner,
.is-focused .was-validated select:valid + .choices .choices__inner {
    box-shadow: 0 0 0 0.2rem
        color-mix(in srgb, var(--success-color), transparent 75%);
}

.is-invalid + .choices .choices__inner,
.was-validated select:invalid + .choices .choices__inner {
    border-color: var(--danger-color);
}

.is-focused .is-invalid + .choices .choices__inner,
.is-focused .was-validated select:invalid + .choices .choices__inner {
    box-shadow: 0 0 0 0.2rem
        color-mix(in srgb, var(--danger-color), transparent 75%);
}

/* Dark Mode */
[data-theme="dark"] .choices__inner {
    background-color: var(--surface-color);
    border-color: var(--border-color);
}

[data-theme="dark"] .choices__list--dropdown {
    background-color: var(--surface-color);
    border-color: var(--border-color);
}

[data-theme="dark"] .choices__list--dropdown .choices__input {
    background-color: var(--surface-color);
    border-color: var(--border-color);
}

[data-theme="dark"] .choices__list--dropdown .choices__item--selectable:hover,
[data-theme="dark"]
    .choices__list--dropdown
    .choices__item--selectable.is-highlighted {
    background-color: color-mix(in srgb, var(--accent-color), transparent 85%);
}

[data-theme="dark"] .choices__heading {
    background-color: color-mix(in srgb, var(--surface-color), black 10%);
    border-color: var(--border-color);
}

[data-theme="dark"] .choices[data-type*="select-one"]::after {
    border-color: var(--muted-color) transparent transparent;
}

[data-theme="dark"] .choices[data-type*="select-one"].is-open::after {
    border-color: transparent transparent var(--muted-color);
}

[data-theme="dark"] .choices[data-type*="select-one"] .choices__button {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 4.586L9.293 1.293a1 1 0 1 1 1.414 1.414L7.414 6l3.293 3.293a1 1 0 0 1-1.414 1.414L6 7.414l-3.293 3.293a1 1 0 0 1-1.414-1.414L4.586 6 1.293 2.707a1 1 0 0 1 1.414-1.414L6 4.586z'/%3E%3C/svg%3E");
}

/* Responsive */
@media (max-width: 767.98px) {
    .choices__list--dropdown .choices__item {
        padding: 0.625rem 0.75rem;
    }
}

/*--------------------------------------------------------------
# File Upload Styles
--------------------------------------------------------------*/
/* Dropzone */
.upload-dropzone {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-base);
    background-color: var(--background-color);
}

.upload-dropzone:hover,
.upload-dropzone.dragover {
    border-color: var(--accent-color);
    background-color: color-mix(in srgb, var(--accent-color), transparent 95%);
}

.upload-dropzone.dragover {
    transform: scale(1.01);
}

.upload-dropzone-content {
    pointer-events: none;
}

.upload-dropzone-icon {
    font-size: 3rem;
    color: var(--muted-color);
    margin-bottom: 1rem;
    transition: color var(--transition-base);
}

.upload-dropzone:hover .upload-dropzone-icon,
.upload-dropzone.dragover .upload-dropzone-icon {
    color: var(--accent-color);
}

.upload-dropzone-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 0.5rem;
}

.upload-dropzone-text {
    font-size: 0.875rem;
    color: var(--muted-color);
    margin-bottom: 0;
}

/* Compact Dropzone */
.upload-dropzone-compact {
    padding: 1rem 1.5rem;
}

.upload-dropzone-compact .upload-dropzone-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    color: var(--muted-color);
}

.upload-dropzone-compact .upload-dropzone-content i {
    font-size: 1.25rem;
}

/* Large Dropzone */
.upload-dropzone-lg {
    padding: 3rem;
}

.upload-dropzone-lg .upload-dropzone-icon {
    font-size: 4rem;
}

/* Browse Link */
.upload-browse-link {
    color: var(--accent-color);
    text-decoration: underline;
    pointer-events: auto;
    cursor: pointer;
}

.upload-browse-link:hover {
    color: color-mix(in srgb, var(--accent-color), black 15%);
}

/* File List */
.upload-file-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.upload-file-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    animation: uploadFadeIn 0.3s ease-out;
}

@keyframes uploadFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

.upload-file-icon {
    font-size: 1.5rem;
    width: 40px;
    text-align: center;
}

.upload-file-info {
    flex: 1;
    min-width: 0;
}

.upload-file-name {
    display: block;
    font-weight: 500;
    color: var(--default-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.upload-file-size {
    font-size: 0.8125rem;
    color: var(--muted-color);
}

/* Image Preview */
.upload-image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.upload-image-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    overflow: hidden;
    animation: uploadFadeIn 0.3s ease-out;
}

.upload-image-item img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}

.upload-image-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--danger-color);
    color: var(--contrast-color);
    border: none;
    font-size: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.upload-image-item:hover .upload-image-remove {
    opacity: 1;
}

/* Avatar Upload */
.upload-avatar {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    margin: 0 auto;
}

.upload-avatar.upload-avatar-square {
    border-radius: var(--radius-lg);
}

.upload-avatar-img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.upload-avatar:hover .upload-avatar-img {
    transform: scale(1.05);
}

.upload-avatar-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.upload-avatar:hover .upload-avatar-overlay {
    opacity: 1;
}

/* Cover Upload */
.upload-cover {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/1;
}

.upload-cover-img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.upload-cover:hover .upload-cover-img {
    transform: scale(1.02);
}

.upload-cover-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.upload-cover:hover .upload-cover-overlay {
    opacity: 1;
}

/* Logo Upload */
.upload-logo {
    width: 160px;
    height: 100px;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
    overflow: hidden;
}

.upload-logo:hover {
    border-color: var(--accent-color);
    background-color: color-mix(in srgb, var(--accent-color), transparent 95%);
}

.upload-logo img {
    max-width: 100%;
    max-height: 100%;
    -o-object-fit: contain;
    object-fit: contain;
}

.upload-logo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted-color);
}

.upload-logo-placeholder i {
    font-size: 2rem;
}

.upload-logo-placeholder span {
    font-size: 0.8125rem;
}

/* Progress List */
.upload-progress-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.upload-progress-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background-color: var(--background-color);
    border-radius: var(--radius-md);
}

.upload-progress-icon {
    font-size: 1.5rem;
    width: 40px;
    text-align: center;
}

.upload-progress-info {
    flex: 1;
    min-width: 0;
}

.upload-progress-name {
    font-weight: 500;
    color: var(--default-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.upload-progress-size {
    font-size: 0.75rem;
    color: var(--muted-color);
}

.upload-progress-status {
    width: 40px;
    text-align: center;
}

/* File Cards */
.upload-file-cards {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.upload-file-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background-color: var(--background-color);
    border-radius: var(--radius-md);
    transition: background-color var(--transition-base);
}

.upload-file-card:hover {
    background-color: var(--border-color-light);
}

.upload-file-card-preview {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background-color: var(--surface-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    overflow: hidden;
}

.upload-file-card-preview.upload-file-card-preview-image img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}

.upload-file-card-info {
    flex: 1;
    min-width: 0;
}

.upload-file-card-name {
    display: block;
    font-weight: 500;
    color: var(--default-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.upload-file-card-size {
    font-size: 0.8125rem;
    color: var(--muted-color);
}

.upload-file-card-actions {
    display: flex;
    gap: 0.25rem;
}

/* Gallery */
.upload-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.upload-gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
}

.upload-gallery-item img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.upload-gallery-item:hover img {
    transform: scale(1.05);
}

.upload-gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 50%);
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 0.5rem;
    gap: 0.25rem;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.upload-gallery-item:hover .upload-gallery-overlay {
    opacity: 1;
}

.upload-gallery-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.5rem;
    color: white;
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

.upload-gallery-add {
    aspect-ratio: 4/3;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--muted-color);
    cursor: pointer;
    transition: all var(--transition-base);
}

.upload-gallery-add i {
    font-size: 1.5rem;
}

.upload-gallery-add span {
    font-size: 0.8125rem;
}

.upload-gallery-add:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background-color: color-mix(in srgb, var(--accent-color), transparent 95%);
}

/* Icon Button */
.btn-icon {
    padding: 0.5rem;
    line-height: 1;
}

.btn-icon i {
    font-size: 1rem;
}

/* Dark Mode */
[data-theme="dark"] .upload-dropzone {
    background-color: var(--surface-color);
}

[data-theme="dark"] .upload-dropzone:hover,
[data-theme="dark"] .upload-dropzone.dragover {
    background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
}

[data-theme="dark"] .upload-file-item {
    background-color: var(--surface-color);
}

[data-theme="dark"] .upload-progress-item {
    background-color: var(--surface-color);
}

[data-theme="dark"] .upload-file-card {
    background-color: var(--surface-color);
}

[data-theme="dark"] .upload-file-card:hover {
    background-color: color-mix(in srgb, var(--surface-color), white 5%);
}

[data-theme="dark"] .upload-file-card-preview {
    background-color: var(--background-color);
}

/* Responsive */
@media (max-width: 767.98px) {
    .upload-dropzone {
        padding: 1.5rem;
    }

    .upload-dropzone-lg {
        padding: 2rem;
    }

    .upload-dropzone-icon {
        font-size: 2.5rem;
    }

    .upload-gallery {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.75rem;
    }

    .upload-avatar {
        width: 100px;
        height: 100px;
    }

    .upload-cover {
        aspect-ratio: 2/1;
    }
}

/*--------------------------------------------------------------
# Date/Time Pickers - Flatpickr Overrides
--------------------------------------------------------------*/
/* Flatpickr Calendar */
.flatpickr-calendar {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    font-family: inherit;
    width: 307px;
}

.flatpickr-calendar.arrowTop::before,
.flatpickr-calendar.arrowTop::after {
    border-bottom-color: var(--border-color);
}

.flatpickr-calendar.arrowBottom::before,
.flatpickr-calendar.arrowBottom::after {
    border-top-color: var(--border-color);
}

.flatpickr-calendar.inline {
    box-shadow: none;
    border: 1px solid var(--border-color);
}

/* Month Navigation */
.flatpickr-months {
    padding: 0.5rem;
}

.flatpickr-months .flatpickr-month {
    background: transparent;
    color: var(--heading-color);
    height: 40px;
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    color: var(--muted-color);
    fill: var(--muted-color);
    padding: 0.5rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
    background: var(--background-color);
    color: var(--accent-color);
    fill: var(--accent-color);
}

.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg {
    fill: var(--accent-color);
}

.flatpickr-current-month {
    font-size: 1rem;
    font-weight: 600;
    color: var(--heading-color);
    padding: 0;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
    background: transparent;
    border: none;
    font-weight: 600;
    color: var(--heading-color);
    padding: 0 0.25rem;
}

.flatpickr-current-month .flatpickr-monthDropdown-months:hover {
    background: transparent;
}

.flatpickr-current-month .numInputWrapper span {
    border: none;
}

.flatpickr-current-month .numInputWrapper span:hover {
    background: var(--background-color);
}

.flatpickr-current-month input.cur-year {
    color: var(--heading-color);
    font-weight: 600;
}

/* Weekday Headers */
.flatpickr-weekdays {
    background: transparent;
    padding: 0 0.5rem;
}

.flatpickr-weekday {
    background: transparent;
    color: var(--muted-color);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Days Container */
.flatpickr-days {
    padding: 0 0.5rem 0.5rem;
}

.dayContainer {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
}

/* Day Elements */
.flatpickr-day {
    color: var(--default-color);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    max-width: 38px;
    height: 38px;
    line-height: 38px;
    margin: 1px;
    border: none;
    transition: all var(--transition-base);
}

.flatpickr-day:hover {
    background: var(--background-color);
    border-color: transparent;
}

.flatpickr-day.today {
    border: 2px solid var(--accent-color);
    background: transparent;
}

.flatpickr-day.today:hover {
    background: var(--accent-color);
    color: var(--contrast-color);
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--contrast-color);
}

.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover {
    background: color-mix(in srgb, var(--accent-color), black 10%);
    border-color: color-mix(in srgb, var(--accent-color), black 10%);
}

.flatpickr-day.selected.today,
.flatpickr-day.startRange.today,
.flatpickr-day.endRange.today {
    border-color: var(--accent-color);
}

.flatpickr-day.inRange {
    background: color-mix(in srgb, var(--accent-color), transparent 85%);
    border-color: transparent;
    box-shadow: none;
}

.flatpickr-day.inRange:hover {
    background: color-mix(in srgb, var(--accent-color), transparent 75%);
}

.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
    color: var(--light-color);
}

.flatpickr-day.prevMonthDay:hover,
.flatpickr-day.nextMonthDay:hover {
    background: var(--background-color);
}

.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
    color: var(--light-color);
    background: transparent;
    cursor: not-allowed;
    opacity: 0.5;
}

.flatpickr-day.week.selected {
    border-radius: 0;
    box-shadow:
        -5px 0 0 var(--accent-color),
        5px 0 0 var(--accent-color);
}

/* Week Numbers */
.flatpickr-weekwrapper .flatpickr-weekday {
    color: var(--muted-color);
}

.flatpickr-weekwrapper .flatpickr-weeks {
    padding: 0 0.5rem 0.5rem 0;
    box-shadow: none;
    border-right: 1px solid var(--border-color);
}

.flatpickr-weekwrapper span.flatpickr-day {
    color: var(--muted-color);
    font-size: 0.75rem;
    font-weight: 600;
}

/* Time Picker */
.flatpickr-time {
    background: var(--surface-color);
    border-top: 1px solid var(--border-color);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    max-height: 50px;
}

.flatpickr-time input {
    color: var(--default-color);
    font-size: 1rem;
    font-weight: 500;
    background: transparent;
}

.flatpickr-time input:hover,
.flatpickr-time input:focus {
    background: var(--background-color);
}

.flatpickr-time .flatpickr-time-separator {
    color: var(--default-color);
    font-weight: 600;
}

.flatpickr-time .flatpickr-am-pm {
    color: var(--default-color);
    font-weight: 500;
}

.flatpickr-time .flatpickr-am-pm:hover,
.flatpickr-time .flatpickr-am-pm:focus {
    background: var(--background-color);
}

.numInputWrapper span {
    border-color: var(--border-color);
}

.numInputWrapper span:hover {
    background: var(--background-color);
}

.numInputWrapper span::after {
    border-color: var(--muted-color) transparent transparent;
}

.numInputWrapper span.arrowUp::after {
    border-bottom-color: var(--muted-color);
}

.numInputWrapper span.arrowDown::after {
    border-top-color: var(--muted-color);
}

/* Inline Calendar Wrapper */
.picker-inline-wrapper {
    display: flex;
    justify-content: center;
}

.picker-inline-wrapper .flatpickr-calendar {
    position: static;
    box-shadow: none;
}

/* Clearable Input */
.picker-clearable .picker-clear-btn {
    border-left: 0;
    border-right: 0;
}

/* Input Group Adjustments */
.input-group .flatpickr-input:focus {
    z-index: 3;
}

/* Dark Mode */
[data-theme="dark"] .flatpickr-calendar {
    background: var(--surface-color);
    border-color: var(--border-color);
}

[data-theme="dark"] .flatpickr-calendar.arrowTop::before {
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .flatpickr-calendar.arrowTop::after {
    border-bottom-color: var(--surface-color);
}

[data-theme="dark"] .flatpickr-calendar.arrowBottom::before {
    border-top-color: var(--border-color);
}

[data-theme="dark"] .flatpickr-calendar.arrowBottom::after {
    border-top-color: var(--surface-color);
}

[data-theme="dark"] .flatpickr-months .flatpickr-prev-month:hover,
[data-theme="dark"] .flatpickr-months .flatpickr-next-month:hover {
    background: var(--background-color);
}

[data-theme="dark"] .flatpickr-months .flatpickr-prev-month svg,
[data-theme="dark"] .flatpickr-months .flatpickr-next-month svg {
    fill: var(--muted-color);
}

[data-theme="dark"] .flatpickr-current-month .flatpickr-monthDropdown-months {
    background: transparent;
    color: var(--heading-color);
}

[data-theme="dark"]
    .flatpickr-current-month
    .flatpickr-monthDropdown-months
    option {
    background: var(--surface-color);
    color: var(--default-color);
}

[data-theme="dark"] .flatpickr-current-month input.cur-year {
    color: var(--heading-color);
}

[data-theme="dark"] .flatpickr-day {
    color: var(--default-color);
}

[data-theme="dark"] .flatpickr-day:hover {
    background: var(--background-color);
}

[data-theme="dark"] .flatpickr-day.prevMonthDay,
[data-theme="dark"] .flatpickr-day.nextMonthDay {
    color: var(--light-color);
}

[data-theme="dark"] .flatpickr-day.inRange {
    background: color-mix(in srgb, var(--accent-color), transparent 80%);
}

[data-theme="dark"] .flatpickr-time {
    background: var(--surface-color);
    border-color: var(--border-color);
}

[data-theme="dark"] .flatpickr-time input {
    color: var(--default-color);
}

[data-theme="dark"] .flatpickr-time input:hover,
[data-theme="dark"] .flatpickr-time input:focus {
    background: var(--background-color);
}

[data-theme="dark"] .flatpickr-weekwrapper .flatpickr-weeks {
    border-color: var(--border-color);
}

/* Responsive */
@media (max-width: 767.98px) {
    .flatpickr-calendar {
        width: 100%;
        max-width: 307px;
    }

    .picker-inline-wrapper .flatpickr-calendar {
        width: 100%;
    }
}

.icons-filter {
    position: sticky;
    top: 70px;
    z-index: 10;
    background: var(--surface-color);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.icons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
}

.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 0.5rem;
    border-radius: 0.5rem;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    min-height: 100px;
}

.icon-item:hover {
    border-color: var(--accent-color);
    box-shadow: 0 4px 12px
        color-mix(in srgb, var(--accent-color), transparent 85%);
    transform: translateY(-2px);
}

.icon-item i {
    font-size: 1.75rem;
    color: var(--default-color);
    margin-bottom: 0.5rem;
}

.icon-item .icon-name {
    font-size: 0.7rem;
    color: var(--muted-color);
    word-break: break-all;
    line-height: 1.2;
}

.icon-item.copied {
    border-color: var(--success-color);
    background: var(--success-color-light);
}

.icon-item.copied i {
    color: var(--success-color);
}

.icons-count {
    font-size: 0.875rem;
    color: var(--muted-color);
}

.icon-category {
    margin-bottom: 2rem;
}

.icon-category h5 {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.copy-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--heading-color);
    color: var(--contrast-color);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 9999;
    pointer-events: none;
}

.copy-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/*--------------------------------------------------------------
# Contact Priority Options
--------------------------------------------------------------*/
.contact-priority-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.contact-priority-option {
    cursor: pointer;
}

.contact-priority-option input {
    display: none;
}

.contact-priority-label {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    transition: all 0.15s ease;
}

.contact-priority-label.low {
    color: var(--muted-color);
}

.contact-priority-label.medium {
    color: var(--info-color);
}

.contact-priority-label.high {
    color: var(--warning-color);
}

.contact-priority-label.urgent {
    color: var(--danger-color);
}

input:checked + .contact-priority-label {
    border-color: currentColor;
    background: currentColor;
    color: white;
}

input:checked + .contact-priority-label.low {
    background: var(--muted-color);
    border-color: var(--muted-color);
}

input:checked + .contact-priority-label.medium {
    background: var(--info-color);
    border-color: var(--info-color);
}

input:checked + .contact-priority-label.high {
    background: var(--warning-color);
    border-color: var(--warning-color);
}

input:checked + .contact-priority-label.urgent {
    background: var(--danger-color);
    border-color: var(--danger-color);
}

/*--------------------------------------------------------------
# Contact Upload Zone
--------------------------------------------------------------*/
.contact-upload-zone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    background: var(--background-color);
    text-align: center;
    transition: all 0.15s ease;
    cursor: pointer;
}

.contact-upload-zone:hover {
    border-color: var(--accent-color);
    background: color-mix(in srgb, var(--accent-color), transparent 96%);
}

.contact-upload-zone i {
    font-size: 2rem;
    color: var(--muted-color);
    margin-bottom: 0.75rem;
}

.contact-upload-zone p {
    font-size: 0.875rem;
    color: var(--default-color);
    margin: 0 0 0.25rem;
}

.contact-upload-zone span {
    font-size: 0.75rem;
    color: var(--muted-color);
}

.contact-upload-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

/*--------------------------------------------------------------
# Contact FAQ List
--------------------------------------------------------------*/
.contact-faq-list {
    display: flex;
    flex-direction: column;
}

.contact-faq-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.15s ease;
}

.contact-faq-item:last-child {
    border-bottom: none;
}

.contact-faq-item:hover {
    background: var(--background-color);
}

.contact-faq-item:hover > i {
    color: var(--accent-color);
}

.contact-faq-item > i {
    flex: 0 0 auto;
    color: var(--muted-color);
    transition: color 0.15s ease;
}

.contact-faq-icon {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: color-mix(in srgb, var(--accent-color), transparent 90%);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
}

.contact-faq-content {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}

.contact-faq-content h6 {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--heading-color);
    margin: 0 0 0.125rem;
}

.contact-faq-content p {
    font-size: 0.75rem;
    color: var(--muted-color);
    margin: 0;
}

/*--------------------------------------------------------------
# Contact Info List
--------------------------------------------------------------*/
.contact-info-list {
    display: flex;
    flex-direction: column;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    transition: none;
}

.contact-info-item:last-child {
    border-bottom: none;
}

.contact-info-item:hover {
    background: transparent;
    color: inherit;
}

.contact-info-icon {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.contact-info-icon.primary {
    background: color-mix(in srgb, var(--accent-color), transparent 90%);
    color: var(--accent-color);
}

.contact-info-icon.success {
    background: var(--success-color-light);
    color: var(--success-color);
}

.contact-info-icon.info {
    background: var(--info-color-light);
    color: var(--info-color);
}

.contact-info-icon.warning {
    background: var(--warning-color-light);
    color: var(--warning-color);
}

.contact-info-content {
    flex: 1;
    display: block;
}

.contact-info-content h6 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--heading-color);
    margin: 0 0 0.25rem;
}

.contact-info-content p {
    font-size: 0.8125rem;
    color: var(--muted-color);
    margin: 0;
    line-height: 1.5;
}

/*--------------------------------------------------------------
# Contact Channels
--------------------------------------------------------------*/
.contact-channels {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-channel {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--background-color);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.15s ease;
}

.contact-channel:hover {
    background: color-mix(in srgb, var(--accent-color), transparent 94%);
}

.contact-channel:hover .contact-channel-icon {
    transform: scale(1.05);
}

.contact-channel-icon {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    transition: transform 0.15s ease;
}

.contact-channel-icon.chat {
    background: var(--success-color-light);
    color: var(--success-color);
}

.contact-channel-icon.ticket {
    background: color-mix(in srgb, var(--accent-color), transparent 90%);
    color: var(--accent-color);
}

.contact-channel-icon.phone {
    background: var(--info-color-light);
    color: var(--info-color);
}

.contact-channel-icon.docs {
    background: var(--warning-color-light);
    color: var(--warning-color);
}

.contact-channel-info {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}

.contact-channel-info h6 {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--heading-color);
    margin: 0;
}

.contact-channel-info span {
    font-size: 0.75rem;
    color: var(--muted-color);
}

/*--------------------------------------------------------------
# Contact Social Links
--------------------------------------------------------------*/
.contact-social-links {
    display: flex;
    gap: 0.5rem;
}

.contact-social-link {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    transition: all 0.15s ease;
}

.contact-social-link.twitter {
    background: color-mix(in srgb, #000000, transparent 90%);
    color: #000000;
}

.contact-social-link.twitter:hover {
    background: #000000;
    color: white;
}

.contact-social-link.facebook {
    background: color-mix(in srgb, #1877f2, transparent 90%);
    color: #1877f2;
}

.contact-social-link.facebook:hover {
    background: #1877f2;
    color: white;
}

.contact-social-link.linkedin {
    background: color-mix(in srgb, #0a66c2, transparent 90%);
    color: #0a66c2;
}

.contact-social-link.linkedin:hover {
    background: #0a66c2;
    color: white;
}

.contact-social-link.instagram {
    background: color-mix(in srgb, #e4405f, transparent 90%);
    color: #e4405f;
}

.contact-social-link.instagram:hover {
    background: #e4405f;
    color: white;
}

.contact-social-link.youtube {
    background: color-mix(in srgb, #ff0000, transparent 90%);
    color: #ff0000;
}

.contact-social-link.youtube:hover {
    background: #ff0000;
    color: white;
}

/*--------------------------------------------------------------
# Contact Response Icon
--------------------------------------------------------------*/
.contact-response-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

/*--------------------------------------------------------------
# Contact Map
--------------------------------------------------------------*/
.contact-map iframe {
    display: block;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/
@media (max-width: 767.98px) {
    .contact-priority-options {
        flex-direction: column;
    }

    .contact-priority-option {
        width: 100%;
    }

    .contact-priority-label {
        width: 100%;
        justify-content: center;
    }
}

/*--------------------------------------------------------------
# Blank / Starter Page Styles
--------------------------------------------------------------*/
.starter-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.starter-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--body-bg);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.starter-step:hover {
    background: color-mix(in srgb, var(--accent-color) 5%, var(--body-bg));
}

.starter-step-number {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-color);
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.starter-step-content {
    flex: 1;
    min-width: 0;
}

.starter-step-content h6 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--heading-color);
}

.starter-step-content p {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

.starter-step-content p code {
    background: color-mix(in srgb, var(--accent-color) 10%, transparent);
    color: var(--accent-color);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

.starter-code {
    margin-top: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.starter-code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--body-bg);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
}

.starter-code-header .btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

.starter-code pre {
    margin: 0;
    padding: 1rem;
    background: color-mix(in srgb, var(--body-bg) 50%, var(--card-bg));
    font-size: 0.8125rem;
    line-height: 1.6;
    overflow-x: auto;
}

.starter-code pre code {
    color: var(--body-color);
    background: none;
    padding: 0;
}

.starter-components {
    display: flex;
    flex-direction: column;
}

.starter-component {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    color: var(--body-color);
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.starter-component:last-child {
    border-bottom: none;
}

.starter-component:hover {
    background: var(--body-bg);
    color: var(--accent-color);
}

.starter-component:hover .starter-component-icon {
    background: var(--accent-color);
    color: #fff;
}

.starter-component:hover > .bi-chevron-right {
    transform: translateX(4px);
}

.starter-component-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--body-bg);
    border-radius: var(--border-radius);
    font-size: 1.125rem;
    color: var(--accent-color);
    transition: var(--transition);
    flex-shrink: 0;
}

.starter-component-content {
    flex: 1;
    min-width: 0;
}

.starter-component-content h6 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.125rem;
    color: inherit;
}

.starter-component-content p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

.starter-component > .bi-chevron-right {
    font-size: 0.875rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.starter-reference {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.starter-reference-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px dashed var(--border-color);
}

.starter-reference-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.starter-reference-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.starter-reference-item code {
    background: color-mix(in srgb, var(--accent-color) 10%, transparent);
    color: var(--accent-color);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.starter-features {
    display: flex;
    flex-direction: column;
}

.starter-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.starter-feature:last-child {
    border-bottom: none;
}

.starter-feature i {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--accent-color) 10%, transparent);
    color: var(--accent-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    flex-shrink: 0;
}

.starter-feature div {
    flex: 1;
    min-width: 0;
}

.starter-feature h6 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.125rem;
    color: var(--heading-color);
}

.starter-feature p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

.starter-resources {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.starter-resource {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    background: var(--body-bg);
    border-radius: var(--border-radius);
    color: var(--body-color);
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 500;
    transition: var(--transition);
}

.starter-resource:hover {
    background: color-mix(in srgb, var(--accent-color) 10%, transparent);
    color: var(--accent-color);
}

.starter-resource i:first-child {
    font-size: 1rem;
    color: var(--accent-color);
}

.starter-resource span {
    flex: 1;
}

.starter-resource i:last-child {
    font-size: 0.75rem;
    color: var(--text-muted);
}

@media (max-width: 991.98px) {
    .starter-step {
        padding: 0.875rem;
    }

    .starter-step-content h6 {
        font-size: 0.875rem;
    }

    .starter-step-content p {
        font-size: 0.75rem;
    }

    .starter-code pre {
        font-size: 0.75rem;
        padding: 0.875rem;
    }

    .starter-component {
        padding: 0.875rem;
    }

    .starter-component-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    .starter-step {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
        align-items: center;
    }

    .starter-step-content p code {
        display: block;
        margin-top: 0.25rem;
    }
}

/*--------------------------------------------------------------
# Helper Utilities
# Bootstrap provides most utilities (display, flex, position, etc.)
# This file only contains custom utilities not in Bootstrap
--------------------------------------------------------------*/
/* Cursor - not in Bootstrap */
.cursor-pointer {
    cursor: pointer !important;
}

.cursor-default {
    cursor: default !important;
}

.cursor-not-allowed {
    cursor: not-allowed !important;
}

.cursor-wait {
    cursor: wait !important;
}

.cursor-grab {
    cursor: grab !important;
}

.cursor-grabbing {
    cursor: grabbing !important;
}

/* Min width/height - limited in Bootstrap */
.min-w-0 {
    min-width: 0 !important;
}

.min-h-0 {
    min-height: 0 !important;
}

.max-w-100 {
    max-width: 100% !important;
}

.max-h-100 {
    max-height: 100% !important;
}

/* Z-Index - Bootstrap has limited z-index utilities */
.z-0 {
    z-index: 0 !important;
}

.z-1 {
    z-index: 1 !important;
}

.z-2 {
    z-index: 2 !important;
}

.z-3 {
    z-index: 3 !important;
}

/* Aspect Ratio - custom additions */
.ratio-1x1 {
    aspect-ratio: 1/1;
}

.ratio-4x3 {
    aspect-ratio: 4/3;
}

.ratio-16x9 {
    aspect-ratio: 16/9;
}

.ratio-21x9 {
    aspect-ratio: 21/9;
}

/*--------------------------------------------------------------
# Dark Mode Specific Styles
--------------------------------------------------------------*/
/* Dark mode is primarily handled through CSS custom properties in _variables.scss
   This file contains any additional dark mode specific overrides */
[data-theme="dark"] {
    color-scheme: dark;
}

/* Images in dark mode - slight reduction in brightness */
[data-theme="dark"] img:not([src*=".svg"]) {
    filter: brightness(0.95);
}

/* Code blocks */
[data-theme="dark"] code {
    background-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] pre {
    background-color: var(--surface-color);
    border-color: var(--border-color);
}

/* Form elements - ensure proper styling */
[data-theme="dark"] input:-webkit-autofill,
[data-theme="dark"] input:-webkit-autofill:hover,
[data-theme="dark"] input:-webkit-autofill:focus,
[data-theme="dark"] textarea:-webkit-autofill,
[data-theme="dark"] textarea:-webkit-autofill:hover,
[data-theme="dark"] textarea:-webkit-autofill:focus,
[data-theme="dark"] select:-webkit-autofill,
[data-theme="dark"] select:-webkit-autofill:hover,
[data-theme="dark"] select:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--default-color);
    -webkit-box-shadow: 0 0 0px 1000px var(--input-bg) inset;
    -webkit-transition: background-color 5000s ease-in-out 0s;
    transition: background-color 5000s ease-in-out 0s;
}

/* Select dropdown arrow in dark mode */
[data-theme="dark"] .form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}

/* Checkbox/Radio in dark mode */
[data-theme="dark"] .form-check-input {
    background-color: var(--input-bg);
    border-color: var(--border-color);
}

/* Switch in dark mode */
[data-theme="dark"] .form-switch .form-check-input {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%2394a3b8'/%3e%3c/svg%3e");
}

/* Scrollbar in dark mode */
[data-theme="dark"] ::-webkit-scrollbar-track {
    background: var(--background-color);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: var(--border-color);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: var(--muted-color);
}

/* HR in dark mode */
[data-theme="dark"] hr {
    border-color: var(--border-color);
}

/* Placeholder text */
[data-theme="dark"] ::-moz-placeholder {
    color: var(--light-color);
    opacity: 1;
}

[data-theme="dark"] ::placeholder {
    color: var(--light-color);
    opacity: 1;
}

/* Selection in dark mode */
[data-theme="dark"] ::-moz-selection {
    background-color: var(--accent-color);
    color: white;
}

[data-theme="dark"] ::selection {
    background-color: var(--accent-color);
    color: white;
}

/* Disabled elements */
[data-theme="dark"] .form-control:disabled,
[data-theme="dark"] .form-select:disabled,
[data-theme="dark"] .btn:disabled {
    background-color: var(--background-color);
    opacity: 0.5;
}

/* Focus ring in dark mode */
[data-theme="dark"] :focus-visible {
    outline-color: var(--accent-color);
}

/* Tables striped in dark mode */
[data-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: rgba(255, 255, 255, 0.02);
}

/* Card shadow adjustment */
[data-theme="dark"] .card,
[data-theme="dark"] .widget {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3);
}

/* Modal backdrop in dark mode */
[data-theme="dark"] .modal-backdrop {
    background-color: rgba(0, 0, 0, 0.7);
}

/* Dropdown shadows */
[data-theme="dark"] .dropdown-menu {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
}

/* Chart specific dark mode */
[data-theme="dark"] .apexcharts-tooltip,
[data-theme="dark"] .apexcharts-xaxistooltip,
[data-theme="dark"] .apexcharts-yaxistooltip {
    background: var(--surface-color) !important;
    border-color: var(--border-color) !important;
    color: var(--default-color) !important;
}

[data-theme="dark"] .apexcharts-tooltip-title {
    background: var(--background-color) !important;
    border-color: var(--border-color) !important;
}

/*--------------------------------------------------------------
# Print Styles
--------------------------------------------------------------*/
@media print {
    *,
    *::before,
    *::after {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    /* Hide non-essential elements */
    .header,
    .sidebar,
    .footer,
    .back-to-top,
    .btn,
    .dropdown-menu,
    .modal,
    .toast-container,
    .no-print {
        display: none !important;
    }

    /* Reset main content area */
    .main {
        margin: 0 !important;
        padding: 0 !important;
    }

    .main-content {
        padding: 0 !important;
    }

    /* Page setup */
    @page {
        margin: 2cm;
        size: A4;
    }

    /* Headings */
    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        page-break-after: avoid;
        page-break-inside: avoid;
    }

    /* Images */
    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }

    /* Tables */
    table {
        border-collapse: collapse !important;
    }

    table,
    th,
    td {
        border: 1px solid #ddd !important;
    }

    th {
        background-color: #f5f5f5 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    thead {
        display: table-header-group;
    }

    tr {
        page-break-inside: avoid;
    }

    /* Links */
    a {
        text-decoration: underline;
    }

    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }

    a[href^="#"]::after,
    a[href^="javascript:"]::after {
        content: "";
    }

    /* Cards - show borders */
    .card {
        border: 1px solid #ddd !important;
        page-break-inside: avoid;
    }

    .card-header {
        border-bottom: 1px solid #ddd !important;
        background-color: #f5f5f5 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* Badges - show borders */
    .badge {
        border: 1px solid currentColor !important;
        padding: 2px 6px !important;
    }

    /* Progress bars */
    .progress {
        border: 1px solid #ddd !important;
    }

    .progress-bar {
        background-color: #333 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* Alerts */
    .alert {
        border: 1px solid currentColor !important;
    }

    /* Forms - hide interactive elements */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    textarea,
    select {
        border: 1px solid #ddd !important;
        background: transparent !important;
    }

    /* Charts - typically not printable */
    .chart-container,
    canvas {
        page-break-inside: avoid;
    }

    /* Invoice specific */
    .invoice {
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .invoice-header {
        margin-bottom: 2cm !important;
    }

    .invoice-logo img {
        max-height: 60px !important;
    }

    .invoice-table {
        width: 100% !important;
        margin: 1cm 0 !important;
    }

    .invoice-total {
        margin-top: 1cm !important;
    }

    /* Orphan/Widow control */
    p,
    li {
        orphans: 3;
        widows: 3;
    }

    /* Prevent breaks after headings */
    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        orphans: 3;
        widows: 3;
    }

    /* Blockquotes */
    blockquote {
        border-left: 4px solid #333 !important;
        page-break-inside: avoid;
    }

    /* Code blocks */
    pre,
    code {
        border: 1px solid #ddd !important;
        page-break-inside: avoid;
    }

    /* Show print-only elements */
    .print-only {
        display: block !important;
    }
}

/* Print-only class (hidden on screen) */
.print-only {
    display: none;
}

/* No-print class (visible on screen, hidden in print) */
@media screen {
    .no-print {
        display: block;
    }
}

.apex-scroll-tooltip {
    max-height: 40vh; /* 👈 critical */
    overflow-y: auto;
    padding: 8px 10px;
}

.apex-scroll-tooltip::-webkit-scrollbar {
    width: 4px;
}

.tooltip-row {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

.tooltip-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}
.apexcharts-canvas {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ------------------ */
/* FullCalendar Toolbar */
/* ------------------ */

/* Base: desktop & tablet */
.fc-header-toolbar {
    display: flex;
    justify-content: space-between; /* left + center + right chunks */
    align-items: flex-start;
    gap: 1rem;
    padding: 0.5rem;
}

/* Toolbar chunks default */
.fc-header-toolbar .fc-toolbar-chunk {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* LEFT CHUNK: prev/today/next (desktop) */
.fc-header-toolbar .fc-toolbar-chunk:first-child {
    flex-direction: row;
}

/* CENTER CHUNK: title (desktop) */
.fc-header-toolbar .fc-toolbar-chunk:nth-child(2) {
    justify-content: center;
}

/* RIGHT CHUNK: view buttons (desktop) */
.fc-header-toolbar .fc-toolbar-chunk:last-child {
    justify-content: flex-end;
}

/* Toolbar buttons styling */
.fc .fc-button-group {
    display: flex;
    gap: 0.25rem;
}

.fc .fc-button {
    background: transparent;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-weight: 500;
    color: var(--bs-secondary-color);
    border: 1px solid rgb(226, 232, 240) !important;
}

.fc .fc-button:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Today button */
.fc .fc-today-button {
    background-color: var(--accent-color);
    color: #fff;
    border: 1px solid var(--accent-color);
}

/* Active view buttons */
.fc .fc-button-primary:not(:disabled).fc-button-active {
    background-color: #007bff !important;
    color: #fff !important;
    border-color: #007bff !important;
    box-shadow: none !important;
}

.fc .fc-button-primary:not(:disabled).fc-button-primary:active,
.fc .fc-button-primary:not(:disabled).fc-button-active:hover {
    background-color: #0069d9 !important;
    border-color: #0062cc !important;
    color: #fff !important;
}

/* Prev/Today/Next specific styles */
.fc-header-toolbar .fc-toolbar-chunk:first-child .fc-prev-button,
.fc-header-toolbar .fc-toolbar-chunk:first-child .fc-today-button,
.fc-header-toolbar .fc-toolbar-chunk:first-child .fc-next-button {
    color: var(--default-color) !important;
    background-color: #fff !important;
    border: 1px solid rgb(226, 232, 240) !important;
    border-radius: 0.5rem !important;
}

.fc-header-toolbar .fc-toolbar-title,
.fc .fc-button {
    text-transform: capitalize;
}

/* ------------------ */
/* MOBILE STACK (<768px) */
/* ------------------ */
@media (max-width: 767.98px) {
    .fc-header-toolbar {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    /* Top: title */
    .fc-header-toolbar .fc-toolbar-chunk:nth-child(2) {
        order: 1;
        width: 100%;
        justify-content: center;
    }

    /* Below title: prev/today/next */
    .fc-header-toolbar .fc-toolbar-chunk:first-child {
        order: 2;
        width: 100%;
        justify-content: center;
        gap: 1rem;
    }

    /* Bottom: view buttons */
    .fc-header-toolbar .fc-toolbar-chunk:last-child {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 0.5rem;
    }

    /* Prev/Today/Next buttons spacing */
    .fc-header-toolbar .fc-toolbar-chunk:first-child .fc-button {
        flex: 1; /* optional, make buttons fill available space */
        max-width: 120px; /* optional */
    }
}

/* Calendar text colors */
.fc-daygrid-day-number,
.fc-col-header-cell-cushion {
    color: #000 !important;
}

.fc .fc-day-today {
    background: transparent !important;
}

/* Style the day number */
.fc .fc-day-today .fc-daygrid-day-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 50%;
    margin-bottom: 0.25rem;
    background: var(--accent-color);
    color: var(--contrast-color) !important;
}

.umno-logo {
    display: inline-block;

    color: var(--sidebar-icon-color); /* dynamic color */
    vertical-align: middle; /* aligns with text/icons */
}

.umno-logo2 {
    width: 48px;
    height: 48px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    padding: 0.7rem;
}

.umno-logo svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: currentColor; /* inherits color from <i> */
}

.overlay-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.no-events {
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1rem;
}


/* Ensure the wrapper treats the SVG like a character */
.umno-logo3{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    width: 1em;  /* Scales with text size */
    height: 1em; /* Scales with text size */
}

/* Ensure the SVG inside fills the wrapper */
.umno-logo3 svg {
    width: 100%;
    height: 100%;
    fill: currentColor; /* Allows 'text-black' or 'text-primary' to work */
}