/* ==========================================================================
   ScribeMotion Design System v3.0
   Premium Corporate Admin Panel for UK Council Meeting Management
   Inspired by Notion, Linear, and Modern Banking Dashboards

   Table of Contents:
   1. CSS Custom Properties (Design Tokens)
   2. CSS Reset & Base Styles
   3. Typography
   4. Layout System
   5. Sidebar Navigation
   6. Header
   7. Page Structure
   8. Cards
   9. Tables
   10. Buttons
   11. Badges & Tags
   12. Forms
   13. Alerts & Notifications
   14. Empty States
   15. Definition Lists
   16. Footer
   17. Dashboard Components
   18. Presentation Mode
   19. Login Page
   20. Utility Classes
   21. Error & Status Pages
   22. Drag and Drop (Sortable)
   23. Animations
   24. Print Styles
   25. Toast Notifications (NEW)
   26. Modal System (NEW)
   27. Loading States (NEW)
   28. Micro-Interactions (NEW)
   ========================================================================== */

/* ==========================================================================
   1. CSS Custom Properties (Design Tokens)
   ========================================================================== */
:root {
    /* Primary Colors - Refined Corporate Blue (more sophisticated) */
    --sm-primary-50: #f0f7ff;
    --sm-primary-100: #e0efff;
    --sm-primary-200: #b9dfff;
    --sm-primary-300: #7cc4ff;
    --sm-primary-400: #36a3ff;
    --sm-primary-500: #0b85f3;
    --sm-primary-600: #0066d1;
    --sm-primary-700: #0052a9;
    --sm-primary-800: #04468b;
    --sm-primary-900: #0a3a73;

    /* Neutral/Gray Scale - Warmer tones for sophistication */
    --sm-gray-50: #f9fafb;
    --sm-gray-100: #f3f4f6;
    --sm-gray-200: #e5e7eb;
    --sm-gray-300: #d1d5db;
    --sm-gray-400: #9ca3af;
    --sm-gray-500: #6b7280;
    --sm-gray-600: #4b5563;
    --sm-gray-700: #374151;
    --sm-gray-800: #1f2937;
    --sm-gray-900: #111827;

    /* Semantic Colors - Refined palette */
    --sm-success: #059669;
    --sm-success-light: #d1fae5;
    --sm-success-dark: #047857;
    --sm-warning: #d97706;
    --sm-warning-light: #fef3c7;
    --sm-warning-dark: #b45309;
    --sm-danger: #dc2626;
    --sm-danger-light: #fee2e2;
    --sm-danger-dark: #b91c1c;
    --sm-info: #0891b2;
    --sm-info-light: #cffafe;
    --sm-info-dark: #0e7490;

    /* Layout Dimensions */
    --sm-sidebar-width: 260px;
    --sm-sidebar-collapsed-width: 72px;
    --sm-header-height: 64px;
    --sm-content-max-width: 1400px;

    /* Typography */
    --sm-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --sm-font-mono: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;

    /* Font Sizes */
    --sm-text-xs: 0.75rem;
    --sm-text-sm: 0.8125rem;
    --sm-text-base: 0.9375rem;
    --sm-text-lg: 1.125rem;
    --sm-text-xl: 1.25rem;
    --sm-text-2xl: 1.5rem;
    --sm-text-3xl: 1.875rem;
    --sm-text-4xl: 2.25rem;

    /* Line Heights - Improved readability */
    --sm-leading-tight: 1.25;
    --sm-leading-snug: 1.375;
    --sm-leading-normal: 1.5;
    --sm-leading-relaxed: 1.625;
    --sm-leading-loose: 2;

    /* Shadows - More refined, subtle depth */
    --sm-shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.03);
    --sm-shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.04), 0 1px 2px -1px rgb(0 0 0 / 0.04);
    --sm-shadow: 0 2px 4px -1px rgb(0 0 0 / 0.06), 0 1px 2px -1px rgb(0 0 0 / 0.04);
    --sm-shadow-md: 0 4px 8px -2px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.04);
    --sm-shadow-lg: 0 12px 24px -4px rgb(0 0 0 / 0.10), 0 4px 8px -2px rgb(0 0 0 / 0.04);
    --sm-shadow-xl: 0 24px 48px -8px rgb(0 0 0 / 0.12), 0 8px 16px -4px rgb(0 0 0 / 0.04);
    --sm-shadow-2xl: 0 32px 64px -12px rgb(0 0 0 / 0.14);

    /* Premium shadows with color tint */
    --sm-shadow-primary: 0 4px 14px -2px rgb(0 102 209 / 0.25);
    --sm-shadow-success: 0 4px 14px -2px rgb(5 150 105 / 0.25);
    --sm-shadow-danger: 0 4px 14px -2px rgb(220 38 38 / 0.25);

    /* Border Radius */
    --sm-radius-xs: 0.125rem;
    --sm-radius-sm: 0.25rem;
    --sm-radius: 0.375rem;
    --sm-radius-md: 0.5rem;
    --sm-radius-lg: 0.75rem;
    --sm-radius-xl: 1rem;
    --sm-radius-2xl: 1.25rem;
    --sm-radius-full: 9999px;

    /* Transitions - Smooth, premium feel */
    --sm-transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --sm-transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --sm-transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --sm-transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
    --sm-ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);

    /* Z-Index Scale */
    --sm-z-dropdown: 100;
    --sm-z-sticky: 200;
    --sm-z-fixed: 300;
    --sm-z-modal-backdrop: 400;
    --sm-z-modal: 500;
    --sm-z-popover: 600;
    --sm-z-tooltip: 700;
    --sm-z-toast: 800;

    /* Backdrop blur */
    --sm-blur-sm: 4px;
    --sm-blur: 8px;
    --sm-blur-md: 12px;
    --sm-blur-lg: 16px;
    --sm-blur-xl: 24px;

    /* Gradient overlays */
    --sm-gradient-primary: linear-gradient(135deg, var(--sm-primary-500) 0%, var(--sm-primary-700) 100%);
    --sm-gradient-dark: linear-gradient(180deg, var(--sm-gray-800) 0%, var(--sm-gray-900) 100%);
    --sm-gradient-subtle: linear-gradient(180deg, var(--sm-gray-50) 0%, white 100%);
}

/* ==========================================================================
   2. CSS Reset & Base Styles
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    font-size: 14px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 15px;
    }
}

@media (min-width: 1200px) {
    html {
        font-size: 16px;
    }
}

body {
    font-family: var(--sm-font-family);
    background-color: var(--sm-gray-50);
    color: var(--sm-gray-800);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

input, button, textarea, select {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

/* ==========================================================================
   3. Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: var(--sm-leading-tight);
    color: var(--sm-gray-900);
    letter-spacing: -0.02em;
}

h1 { font-size: var(--sm-text-3xl); font-weight: 700; }
h2 { font-size: var(--sm-text-2xl); }
h3 { font-size: var(--sm-text-xl); }
h4 { font-size: var(--sm-text-lg); }
h5 { font-size: var(--sm-text-base); }
h6 { font-size: var(--sm-text-sm); }

/* Typography utilities */
.sm-heading-display {
    font-size: var(--sm-text-4xl);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.sm-text-balance {
    text-wrap: balance;
}

.sm-text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sm-text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sm-text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   4. Layout System
   ========================================================================== */
.sm-app-wrapper {
    display: flex;
    min-height: 100vh;
}

.sm-main-content {
    flex: 1;
    margin-left: var(--sm-sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left var(--sm-transition-slow);
}

.sm-sidebar.collapsed ~ .sm-main-content {
    margin-left: var(--sm-sidebar-collapsed-width);
}

/* Mobile Layout */
@media (max-width: 991.98px) {
    .sm-main-content {
        margin-left: 0;
    }
}

/* Sidebar Overlay (Mobile) */
.sm-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: calc(var(--sm-z-fixed) - 1);
    opacity: 0;
    visibility: hidden;
    transition: var(--sm-transition);
}

.sm-sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   5. Sidebar Navigation
   ========================================================================== */
.sm-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sm-sidebar-width);
    background: linear-gradient(180deg, var(--sm-gray-900) 0%, var(--sm-gray-800) 100%);
    color: white;
    z-index: var(--sm-z-fixed);
    display: flex;
    flex-direction: column;
    transition: width var(--sm-transition-slow), transform var(--sm-transition-slow);
    box-shadow: var(--sm-shadow-xl);
    overflow: hidden;
}

.sm-sidebar.collapsed {
    width: var(--sm-sidebar-collapsed-width);
}

/* Mobile Sidebar */
@media (max-width: 991.98px) {
    .sm-sidebar {
        transform: translateX(-100%);
        width: var(--sm-sidebar-width);
    }

    .sm-sidebar.show {
        transform: translateX(0);
    }

    .sm-sidebar.collapsed {
        width: var(--sm-sidebar-width);
    }
}

/* Sidebar Header */
.sm-sidebar-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.sm-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: white;
}

.sm-sidebar-brand:hover {
    color: white;
}

.sm-sidebar-logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--sm-primary-500) 0%, var(--sm-primary-700) 100%);
    border-radius: var(--sm-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.sm-sidebar-brand-text {
    font-size: var(--sm-text-lg);
    font-weight: 600;
    letter-spacing: -0.025em;
    white-space: nowrap;
    overflow: hidden;
    transition: opacity var(--sm-transition), width var(--sm-transition);
}

.sm-sidebar.collapsed .sm-sidebar-brand-text {
    opacity: 0;
    width: 0;
}

/* Sidebar Navigation */
.sm-sidebar-nav {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.sm-nav-section {
    margin-bottom: 1.5rem;
}

.sm-nav-section-title {
    padding: 0.5rem 1.5rem;
    font-size: var(--sm-text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--sm-gray-400);
    white-space: nowrap;
    overflow: hidden;
}

.sm-sidebar.collapsed .sm-nav-section-title {
    text-align: center;
    padding: 0.5rem;
}

.sm-sidebar.collapsed .sm-nav-section-title span {
    display: none;
}

.sm-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: var(--sm-gray-300);
    text-decoration: none;
    transition: var(--sm-transition-fast);
    border-left: 3px solid transparent;
    margin: 0.125rem 0;
}

.sm-nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.sm-nav-item.active {
    background: rgba(59, 130, 246, 0.15);
    color: var(--sm-primary-400);
    border-left-color: var(--sm-primary-500);
}

.sm-nav-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    opacity: 0.8;
}

.sm-nav-item:hover .sm-nav-icon,
.sm-nav-item.active .sm-nav-icon {
    opacity: 1;
}

.sm-nav-text {
    white-space: nowrap;
    overflow: hidden;
    transition: opacity var(--sm-transition), width var(--sm-transition);
}

.sm-sidebar.collapsed .sm-nav-text {
    opacity: 0;
    width: 0;
}

.sm-sidebar.collapsed .sm-nav-item {
    justify-content: center;
    padding: 0.75rem;
}

/* Sidebar Footer */
.sm-sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.sm-sidebar-toggle {
    width: 100%;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: var(--sm-radius);
    color: var(--sm-gray-400);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--sm-transition-fast);
}

.sm-sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.sm-sidebar.collapsed .sm-sidebar-footer {
    padding: 1rem;
}

/* ==========================================================================
   6. Header
   ========================================================================== */
.sm-header {
    height: var(--sm-header-height);
    background: white;
    border-bottom: 1px solid var(--sm-gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: var(--sm-z-sticky);
    box-shadow: var(--sm-shadow-sm);
    flex-shrink: 0;
}

.sm-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sm-mobile-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    border-radius: var(--sm-radius);
    color: var(--sm-gray-600);
    cursor: pointer;
    transition: var(--sm-transition-fast);
    align-items: center;
    justify-content: center;
}

.sm-mobile-toggle:hover {
    background: var(--sm-gray-100);
    color: var(--sm-gray-800);
}

@media (max-width: 991.98px) {
    .sm-mobile-toggle {
        display: flex;
    }
}

/* Breadcrumb */
.sm-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--sm-gray-500);
}

.sm-breadcrumb-item {
    color: inherit;
    text-decoration: none;
    transition: color var(--sm-transition-fast);
}

.sm-breadcrumb-item:hover {
    color: var(--sm-primary-600);
}

.sm-breadcrumb-separator {
    color: var(--sm-gray-300);
}

.sm-breadcrumb-current {
    color: var(--sm-gray-800);
    font-weight: 500;
}

/* Header Right */
.sm-header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sm-header-action {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    border-radius: var(--sm-radius);
    color: var(--sm-gray-500);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: var(--sm-transition-fast);
}

.sm-header-action:hover {
    background: var(--sm-gray-100);
    color: var(--sm-gray-700);
}

.sm-header-action-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    background: var(--sm-danger);
    border-radius: 50%;
    border: 2px solid white;
}

/* User Menu */
.sm-user-menu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.375rem 0.75rem 0.375rem 0.375rem;
    background: var(--sm-gray-50);
    border: 1px solid var(--sm-gray-200);
    border-radius: var(--sm-radius-full);
    cursor: pointer;
    transition: var(--sm-transition-fast);
}

.sm-user-menu:hover {
    background: var(--sm-gray-100);
    border-color: var(--sm-gray-300);
}

.sm-user-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--sm-primary-500) 0%, var(--sm-primary-700) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.sm-user-info {
    display: none;
}

@media (min-width: 768px) {
    .sm-user-info {
        display: block;
    }
}

.sm-user-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--sm-gray-800);
    line-height: 1.2;
}

.sm-user-role {
    font-size: var(--sm-text-xs);
    color: var(--sm-gray-500);
    line-height: 1.2;
}

/* User Dropdown */
.sm-user-dropdown {
    position: relative;
}

.sm-user-chevron {
    color: var(--sm-gray-400);
    transition: transform 0.2s ease;
    display: none;
}

@media (min-width: 768px) {
    .sm-user-chevron {
        display: block;
    }
}

.sm-user-dropdown.open .sm-user-chevron {
    transform: rotate(180deg);
}

.sm-user-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 200px;
    background: white;
    border: 1px solid var(--sm-gray-200);
    border-radius: var(--sm-radius-lg);
    box-shadow: var(--sm-shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.sm-user-dropdown.open .sm-user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sm-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: var(--sm-text-sm);
    color: var(--sm-gray-700);
    text-decoration: none;
    transition: background 0.15s ease;
    border: none;
    background: none;
    width: 100%;
    cursor: pointer;
    text-align: left;
}

.sm-dropdown-item:first-child {
    border-radius: var(--sm-radius-lg) var(--sm-radius-lg) 0 0;
}

.sm-dropdown-item:last-child {
    border-radius: 0 0 var(--sm-radius-lg) var(--sm-radius-lg);
}

.sm-dropdown-item:hover {
    background: var(--sm-gray-50);
}

.sm-dropdown-item svg {
    color: var(--sm-gray-400);
    flex-shrink: 0;
}

.sm-dropdown-item:hover svg {
    color: var(--sm-gray-600);
}

.sm-dropdown-item-danger {
    color: var(--sm-danger);
}

.sm-dropdown-item-danger:hover {
    background: rgba(239, 68, 68, 0.05);
}

.sm-dropdown-item-danger svg {
    color: var(--sm-danger);
}

.sm-dropdown-divider {
    height: 1px;
    background: var(--sm-gray-100);
    margin: 0.25rem 0;
}

/* ==========================================================================
   7. Page Structure
   ========================================================================== */
.sm-page-content {
    flex: 1;
    padding: 1.5rem;
    animation: sm-pageEnter 0.4s var(--sm-ease-out-expo);
}

@media (min-width: 768px) {
    .sm-page-content {
        padding: 2rem;
    }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .sm-page-content {
        animation: none;
    }
}

/* Page Header */
.sm-page-header {
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .sm-page-header {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        margin-bottom: 2rem;
        gap: 1rem;
    }
}

.sm-page-title-group {
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .sm-page-title-group {
        margin-bottom: 0;
    }
}

.sm-page-title {
    font-size: var(--sm-text-2xl);
    font-weight: 600;
    color: var(--sm-gray-900);
    letter-spacing: -0.025em;
    margin: 0 0 0.25rem;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .sm-page-title {
        font-size: 1.75rem;
    }
}

.sm-page-subtitle {
    color: var(--sm-gray-500);
    font-size: var(--sm-text-base);
    margin: 0;
}

.sm-page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* ==========================================================================
   8. Cards
   ========================================================================== */
.sm-card {
    background: white;
    border-radius: var(--sm-radius-lg);
    border: 1px solid var(--sm-gray-200);
    box-shadow: var(--sm-shadow-sm);
    overflow: hidden;
    transition: box-shadow var(--sm-transition), transform var(--sm-transition), border-color var(--sm-transition);
}

/* Card Depth System */
.sm-card-flat {
    box-shadow: none;
    border: 1px solid var(--sm-gray-200);
}

.sm-card-raised {
    box-shadow: var(--sm-shadow);
}

.sm-card-floating {
    box-shadow: var(--sm-shadow-lg);
    border-color: transparent;
}

.sm-card-interactive {
    cursor: pointer;
}

.sm-card-interactive:hover {
    transform: translateY(-2px);
    box-shadow: var(--sm-shadow-md);
    border-color: var(--sm-gray-300);
}

.sm-card-interactive:active {
    transform: translateY(0);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .sm-card-interactive:hover {
        transform: none;
    }
}

.sm-card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--sm-gray-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: var(--sm-gray-50);
}

@media (min-width: 768px) {
    .sm-card-header {
        padding: 1.25rem 1.5rem;
    }
}

.sm-card-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--sm-gray-800);
    margin: 0;
}

.sm-card-title svg {
    flex-shrink: 0;
}

.sm-card-body {
    padding: 1.25rem;
}

@media (min-width: 768px) {
    .sm-card-body {
        padding: 1.5rem;
    }
}

.sm-card-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--sm-gray-100);
    background: var(--sm-gray-50);
}

@media (min-width: 768px) {
    .sm-card-footer {
        padding: 1.25rem 1.5rem;
    }
}

/* Constrained Card Width */
.sm-card-narrow {
    max-width: 640px;
}

.sm-card-medium {
    max-width: 800px;
}

/* Highlighted Card - for suggestions and special notices */
.sm-card-highlight {
    border-left: 4px solid var(--sm-info);
    background: linear-gradient(to right, var(--sm-info-light), white 10%);
}

/* Suggestion List */
.sm-suggestion-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sm-suggestion-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border: 1px solid var(--sm-gray-200);
    border-radius: var(--sm-radius-md);
    transition: var(--sm-transition);
}

.sm-suggestion-item:hover {
    border-color: var(--sm-primary-300);
    box-shadow: var(--sm-shadow-sm);
}

.sm-suggestion-content {
    flex: 1;
    min-width: 0;
}

.sm-suggestion-title {
    font-weight: 600;
    color: var(--sm-gray-800);
    margin-bottom: 0.25rem;
}

.sm-suggestion-detail {
    font-size: var(--sm-text-sm);
    color: var(--sm-gray-500);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sm-suggestion-actions {
    flex-shrink: 0;
}

.sm-suggestion-text {
    flex: 1;
    font-weight: 500;
    color: var(--sm-gray-700);
    line-height: 1.5;
}

/* Stat Cards */
.sm-stat-card {
    background: white;
    border-radius: var(--sm-radius-lg);
    border: 1px solid var(--sm-gray-200);
    padding: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: var(--sm-transition);
}

.sm-stat-card:hover {
    box-shadow: var(--sm-shadow-md);
    border-color: var(--sm-gray-300);
}

.sm-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--sm-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sm-stat-icon.primary {
    background: var(--sm-primary-50);
    color: var(--sm-primary-600);
}

.sm-stat-icon.success {
    background: var(--sm-success-light);
    color: var(--sm-success);
}

.sm-stat-icon.warning {
    background: var(--sm-warning-light);
    color: var(--sm-warning);
}

.sm-stat-icon.info {
    background: var(--sm-info-light);
    color: var(--sm-info);
}

.sm-stat-content {
    flex: 1;
    min-width: 0;
}

.sm-stat-label {
    font-size: var(--sm-text-sm);
    color: var(--sm-gray-500);
    margin-bottom: 0.25rem;
}

.sm-stat-value {
    font-size: var(--sm-text-2xl);
    font-weight: 700;
    color: var(--sm-gray-900);
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.sm-stat-trend {
    font-size: var(--sm-text-xs);
    margin-top: 0.25rem;
}

.sm-stat-trend.up {
    color: var(--sm-success);
}

.sm-stat-trend.down {
    color: var(--sm-danger);
}

/* Feature Cards */
.sm-feature-card {
    background: white;
    border-radius: var(--sm-radius-lg);
    border: 1px solid var(--sm-gray-200);
    padding: 1.5rem;
    text-align: center;
    transition: var(--sm-transition);
}

.sm-feature-card:hover {
    box-shadow: var(--sm-shadow-md);
    border-color: var(--sm-primary-200);
    transform: translateY(-2px);
}

.sm-feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--sm-primary-50) 0%, var(--sm-primary-100) 100%);
    border-radius: var(--sm-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sm-primary-600);
}

.sm-feature-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--sm-gray-800);
    margin-bottom: 0.5rem;
}

.sm-feature-text {
    font-size: 0.875rem;
    color: var(--sm-gray-500);
    margin: 0;
    line-height: 1.5;
}

/* ==========================================================================
   9. Tables
   ========================================================================== */
.sm-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
}

/* Responsive scroll shadows */
.sm-table-container-scroll {
    background:
        linear-gradient(to right, white 30%, rgba(255, 255, 255, 0)),
        linear-gradient(to right, rgba(255, 255, 255, 0), white 70%) 0 100%,
        radial-gradient(farthest-side at 0% 50%, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0)),
        radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0)) 0 100%;
    background-repeat: no-repeat;
    background-color: white;
    background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%;
    background-position: 0 0, 100%, 0 0, 100%;
    background-attachment: local, local, scroll, scroll;
}

.sm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.sm-table th {
    text-align: left;
    padding: 0.875rem 1rem;
    font-weight: 600;
    font-size: var(--sm-text-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--sm-gray-500);
    background: var(--sm-gray-50);
    border-bottom: 1px solid var(--sm-gray-200);
    white-space: nowrap;
}

/* Sticky header option */
.sm-table-sticky thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--sm-gray-50);
}

.sm-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--sm-gray-100);
    color: var(--sm-gray-700);
    vertical-align: middle;
}

.sm-table tbody tr {
    transition: background-color var(--sm-transition-fast);
}

.sm-table tbody tr:hover {
    background: var(--sm-gray-50);
}

.sm-table-row-warning {
    background: rgba(245, 158, 11, 0.05);
}

.sm-table-row-warning:hover {
    background: rgba(245, 158, 11, 0.1);
}

/* Code Block */
.sm-code-block {
    background: var(--sm-gray-900);
    color: var(--sm-gray-100);
    padding: 1rem;
    border-radius: var(--sm-radius);
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: var(--sm-text-sm);
    overflow-x: auto;
    white-space: pre;
    margin: 0;
}

/* Subtle zebra striping option */
.sm-table-striped tbody tr:nth-child(even) {
    background: var(--sm-gray-50);
}

.sm-table-striped tbody tr:nth-child(even):hover {
    background: var(--sm-gray-100);
}

.sm-table tbody tr:last-child td {
    border-bottom: none;
}

/* Enhanced row highlight animation */
.sm-table tbody tr.sm-row-highlight {
    animation: sm-rowHighlight 2s ease-out;
}

@keyframes sm-rowHighlight {
    0% { background: var(--sm-primary-100); }
    100% { background: transparent; }
}

.sm-table-link {
    color: var(--sm-primary-600);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--sm-transition-fast);
}

.sm-table-link:hover {
    color: var(--sm-primary-700);
    text-decoration: underline;
}

.sm-table-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

/* Table cell alignment */
.sm-table th.sm-text-right,
.sm-table td.sm-text-right {
    text-align: right;
}

.sm-table-cell-narrow {
    width: 80px;
}

.sm-table-cell-medium {
    width: 120px;
}

.sm-table-cell-wide {
    width: 180px;
}

.sm-table-cell-actions {
    width: 220px;
    text-align: right;
}

/* ==========================================================================
   10. Buttons
   ========================================================================== */
.sm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5625rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5;
    border-radius: var(--sm-radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--sm-transition-fast);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

/* Button hover lift effect */
.sm-btn:hover:not(:disabled) {
    transform: translateY(-1px);
}

.sm-btn:active:not(:disabled) {
    transform: translateY(0);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .sm-btn:hover:not(:disabled) {
        transform: none;
    }
}

.sm-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 102, 209, 0.25);
}

.sm-btn:focus:not(:focus-visible) {
    box-shadow: none;
}

.sm-btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(0, 102, 209, 0.25);
}

.sm-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Button Variants */
.sm-btn-primary {
    background: var(--sm-primary-600);
    color: white;
    border-color: var(--sm-primary-600);
}

.sm-btn-primary:hover:not(:disabled) {
    background: var(--sm-primary-700);
    border-color: var(--sm-primary-700);
    color: white;
    box-shadow: var(--sm-shadow-primary);
}

/* Gradient variant for premium CTAs */
.sm-btn-primary-gradient {
    background: var(--sm-gradient-primary);
    color: white;
    border: none;
}

.sm-btn-primary-gradient:hover:not(:disabled) {
    box-shadow: var(--sm-shadow-primary);
    filter: brightness(1.05);
}

.sm-btn-secondary {
    background: white;
    color: var(--sm-gray-700);
    border-color: var(--sm-gray-300);
}

.sm-btn-secondary:hover:not(:disabled) {
    background: var(--sm-gray-50);
    border-color: var(--sm-gray-400);
    color: var(--sm-gray-800);
}

.sm-btn-success {
    background: var(--sm-success);
    color: white;
    border-color: var(--sm-success);
}

.sm-btn-success:hover:not(:disabled) {
    background: var(--sm-success-dark);
    border-color: var(--sm-success-dark);
    color: white;
}

.sm-btn-danger {
    background: var(--sm-danger);
    color: white;
    border-color: var(--sm-danger);
}

.sm-btn-danger:hover:not(:disabled) {
    background: var(--sm-danger-dark);
    border-color: var(--sm-danger-dark);
    color: white;
}

.sm-btn-ghost {
    background: transparent;
    color: var(--sm-gray-600);
    border-color: transparent;
}

.sm-btn-ghost:hover:not(:disabled) {
    background: var(--sm-gray-100);
    color: var(--sm-gray-800);
}

.sm-btn-ghost-danger {
    background: transparent;
    color: var(--sm-danger);
    border-color: transparent;
}

.sm-btn-ghost-danger:hover:not(:disabled) {
    background: var(--sm-danger-light);
    color: var(--sm-danger-dark);
}

/* Button Sizes */
.sm-btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: var(--sm-text-sm);
}

.sm-btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.sm-btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
}

.sm-btn-icon.sm-btn-sm {
    width: 32px;
    height: 32px;
}

/* Full Width Button */
.sm-btn-block {
    width: 100%;
}

/* Link Button (for inline text actions) */
.sm-btn-link {
    background: none;
    border: none;
    padding: 0;
    color: var(--sm-primary-600);
    cursor: pointer;
    font-size: var(--sm-text-xs);
    font-family: inherit;
    transition: color var(--sm-transition-fast);
}

.sm-btn-link:hover {
    color: var(--sm-primary-700);
    text-decoration: underline;
}

/* Dropdown */
.sm-dropdown {
    position: relative;
    display: inline-block;
}

.sm-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.sm-dropdown-arrow {
    transition: transform var(--sm-transition-fast);
}

.sm-dropdown.open .sm-dropdown-arrow {
    transform: rotate(180deg);
}

.sm-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 50;
    min-width: 200px;
    margin-top: 0.25rem;
    padding: 0.5rem 0;
    background: white;
    border: 1px solid var(--sm-gray-200);
    border-radius: var(--sm-radius-md);
    box-shadow: var(--sm-shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--sm-transition-fast);
}

.sm-dropdown.open .sm-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sm-dropdown-header {
    padding: 0.5rem 1rem;
    font-size: var(--sm-text-xs);
    font-weight: 600;
    color: var(--sm-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sm-dropdown-item {
    display: block;
    padding: 0.5rem 1rem;
    font-size: var(--sm-text-sm);
    color: var(--sm-gray-700);
    text-decoration: none;
    transition: background var(--sm-transition-fast);
}

.sm-dropdown-item:hover {
    background: var(--sm-gray-50);
    color: var(--sm-gray-900);
}

.sm-dropdown-divider {
    height: 1px;
    margin: 0.5rem 0;
    background: var(--sm-gray-200);
}

/* ==========================================================================
   11. Badges & Tags
   ========================================================================== */
.sm-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    font-size: var(--sm-text-xs);
    font-weight: 500;
    border-radius: var(--sm-radius-full);
    line-height: 1.4;
}

.sm-badge-primary {
    background: var(--sm-primary-100);
    color: var(--sm-primary-700);
}

.sm-badge-secondary {
    background: var(--sm-gray-100);
    color: var(--sm-gray-600);
}

.sm-badge-success {
    background: var(--sm-success-light);
    color: var(--sm-success-dark);
}

.sm-badge-warning {
    background: var(--sm-warning-light);
    color: var(--sm-warning-dark);
}

.sm-badge-danger {
    background: var(--sm-danger-light);
    color: var(--sm-danger-dark);
}

.sm-badge-info {
    background: var(--sm-info-light);
    color: var(--sm-info-dark);
}

/* ==========================================================================
   12. Forms
   ========================================================================== */
.sm-form-group {
    margin-bottom: 1.25rem;
}

.sm-form-group:last-child {
    margin-bottom: 0;
}

.sm-form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--sm-gray-700);
    margin-bottom: 0.5rem;
}

.sm-form-label-optional {
    font-weight: 400;
    color: var(--sm-gray-400);
    margin-left: 0.25rem;
}

.sm-form-input,
.sm-form-select,
.sm-form-textarea {
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: var(--sm-text-base);
    font-family: inherit;
    color: var(--sm-gray-800);
    background: white;
    border: 1px solid var(--sm-gray-300);
    border-radius: var(--sm-radius);
    transition: border-color var(--sm-transition-fast), box-shadow var(--sm-transition-fast), background-color var(--sm-transition-fast);
}

.sm-form-input:hover,
.sm-form-select:hover,
.sm-form-textarea:hover {
    border-color: var(--sm-gray-400);
    background: var(--sm-gray-50);
}

.sm-form-input:focus,
.sm-form-select:focus,
.sm-form-textarea:focus {
    outline: none;
    border-color: var(--sm-primary-500);
    box-shadow: 0 0 0 3px rgba(0, 102, 209, 0.12);
    background: white;
}

.sm-form-input::placeholder,
.sm-form-textarea::placeholder {
    color: var(--sm-gray-400);
}

/* Input Group (icon + input) */
.sm-input-group {
    position: relative;
    display: flex;
    align-items: stretch;
}

.sm-input-group-icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--sm-gray-400);
    pointer-events: none;
    z-index: 1;
}

.sm-input-group-icon svg {
    width: 18px;
    height: 18px;
}

.sm-input-group .sm-form-input {
    padding-left: 2.75rem;
}

.sm-input-group-icon-right {
    position: absolute;
    right: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--sm-gray-400);
}

.sm-input-group-icon-right svg {
    width: 18px;
    height: 18px;
}

.sm-input-group .sm-form-input.sm-input-icon-right {
    padding-right: 2.75rem;
}

/* Floating Label */
.sm-form-floating {
    position: relative;
}

.sm-form-floating .sm-form-input,
.sm-form-floating .sm-form-select,
.sm-form-floating .sm-form-textarea {
    padding-top: 1.5rem;
    padding-bottom: 0.5rem;
}

.sm-form-floating .sm-form-label {
    position: absolute;
    top: 0;
    left: 0.875rem;
    padding-top: 0.875rem;
    font-size: var(--sm-text-base);
    color: var(--sm-gray-400);
    pointer-events: none;
    transform-origin: left top;
    transition: transform var(--sm-transition-fast), color var(--sm-transition-fast), font-size var(--sm-transition-fast);
    margin-bottom: 0;
}

.sm-form-floating .sm-form-input:focus ~ .sm-form-label,
.sm-form-floating .sm-form-input:not(:placeholder-shown) ~ .sm-form-label,
.sm-form-floating .sm-form-select:focus ~ .sm-form-label,
.sm-form-floating .sm-form-select:not([value=""]) ~ .sm-form-label,
.sm-form-floating .sm-form-textarea:focus ~ .sm-form-label,
.sm-form-floating .sm-form-textarea:not(:placeholder-shown) ~ .sm-form-label {
    transform: translateY(-0.5rem);
    font-size: var(--sm-text-xs);
    color: var(--sm-primary-600);
}

/* Better select dropdown */
.sm-form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px;
    padding-right: 2.5rem;
}

/* Validation States */
.sm-form-input.is-invalid,
.sm-form-select.is-invalid,
.sm-form-textarea.is-invalid {
    border-color: var(--sm-danger);
}

.sm-form-input.is-invalid:focus,
.sm-form-select.is-invalid:focus,
.sm-form-textarea.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.sm-form-help,
.sm-form-hint {
    font-size: var(--sm-text-sm);
    color: var(--sm-gray-500);
    margin-top: 0.375rem;
}

.sm-form-error,
.sm-field-error,
.sm-field-validation-error {
    font-size: var(--sm-text-sm);
    color: var(--sm-danger);
    margin-top: 0.375rem;
    display: block;
}

/* Checkbox & Radio */
.sm-form-checkbox,
.sm-form-radio {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.sm-form-checkbox input,
.sm-form-radio input {
    width: 1rem;
    height: 1rem;
    accent-color: var(--sm-primary-600);
    cursor: pointer;
}

/* Form Row (2-column layout) */
.sm-form-row {
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .sm-form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Form Actions */
.sm-form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* Form Label Variants */
.sm-form-label-light {
    font-weight: 400;
    font-size: var(--sm-text-sm);
}

/* Logo Preview Component */
.sm-logo-preview {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--sm-gray-50);
    border-radius: var(--sm-radius-md);
    margin-bottom: 1rem;
}

.sm-logo-preview img {
    max-width: 150px;
    max-height: 80px;
    border-radius: var(--sm-radius-sm);
    object-fit: contain;
}

.sm-logo-preview-meta {
    font-size: var(--sm-text-sm);
    color: var(--sm-gray-500);
}

.sm-logo-preview-img {
    max-width: 200px;
    max-height: 100px;
    border-radius: var(--sm-radius-md);
    object-fit: contain;
}

/* File Upload */
.sm-file-upload-preview {
    display: none;
    align-items: center;
    gap: 1rem;
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: var(--sm-gray-50);
    border-radius: var(--sm-radius-md);
}

/* ==========================================================================
   13. Alerts & Notifications
   ========================================================================== */
.sm-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: var(--sm-radius-md);
    font-size: var(--sm-text-base);
}

.sm-alert-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 0.125rem;
}

.sm-alert-content {
    flex: 1;
    min-width: 0;
}

.sm-alert-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.sm-alert-info {
    background: var(--sm-info-light);
    color: #0e7490;
}

.sm-alert-success {
    background: var(--sm-success-light);
    color: var(--sm-success-dark);
}

.sm-alert-warning {
    background: var(--sm-warning-light);
    color: var(--sm-warning-dark);
}

.sm-alert-danger {
    background: var(--sm-danger-light);
    color: #b91c1c;
}

/* ==========================================================================
   14. Empty States
   ========================================================================== */
.sm-empty-state {
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
}

/* Subtle background pattern for empty states */
.sm-empty-state-patterned {
    background:
        radial-gradient(circle at 20% 80%, var(--sm-primary-50) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, var(--sm-gray-100) 0%, transparent 40%);
}

.sm-empty-state-compact {
    padding: 2rem 1rem;
}

.sm-empty-state-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    color: var(--sm-gray-300);
    background: var(--sm-gray-100);
    border-radius: var(--sm-radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sm-empty-state-icon svg {
    width: 40px;
    height: 40px;
}

/* Larger illustrative icon option */
.sm-empty-state-icon-large {
    width: 120px;
    height: 120px;
    margin-bottom: 2rem;
}

.sm-empty-state-icon-large svg {
    width: 56px;
    height: 56px;
}

.sm-empty-state-compact .sm-empty-state-icon {
    width: 56px;
    height: 56px;
}

.sm-empty-state-compact .sm-empty-state-icon svg {
    width: 28px;
    height: 28px;
}

.sm-empty-state-title {
    font-size: var(--sm-text-xl);
    font-weight: 600;
    color: var(--sm-gray-800);
    margin-bottom: 0.75rem;
}

.sm-empty-state-text {
    color: var(--sm-gray-500);
    max-width: 360px;
    margin: 0 auto 2rem;
    line-height: var(--sm-leading-relaxed);
}

.sm-empty-state-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   15. Definition Lists
   ========================================================================== */
.sm-dl {
    margin: 0;
}

.sm-dl dt {
    font-size: var(--sm-text-sm);
    font-weight: 500;
    color: var(--sm-gray-500);
    margin-bottom: 0.25rem;
}

.sm-dl dd {
    font-size: var(--sm-text-base);
    color: var(--sm-gray-800);
    margin: 0 0 1rem;
}

.sm-dl dd:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   16. Footer
   ========================================================================== */
.sm-footer {
    padding: 1rem 1.5rem;
    background: white;
    border-top: 1px solid var(--sm-gray-200);
    font-size: var(--sm-text-sm);
    color: var(--sm-gray-500);
    flex-shrink: 0;
}

.sm-footer-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
}

@media (min-width: 768px) {
    .sm-footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
}

.sm-footer a {
    color: var(--sm-gray-600);
    text-decoration: none;
    transition: color var(--sm-transition-fast);
}

.sm-footer a:hover {
    color: var(--sm-primary-600);
}

/* ==========================================================================
   17. Dashboard Components
   ========================================================================== */
/* Dashboard Grid */
.sm-dashboard-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .sm-dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .sm-dashboard-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Feature Grid */
.sm-feature-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Workflow Steps */
.sm-workflow-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.sm-workflow-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    background: var(--sm-gray-100);
    border-radius: var(--sm-radius-full);
    font-size: var(--sm-text-sm);
    color: var(--sm-gray-600);
    transition: var(--sm-transition-fast);
}

.sm-workflow-step.active {
    background: var(--sm-primary-600);
    color: white;
}

.sm-workflow-step-number {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 0.6875rem;
    font-weight: 600;
}

.sm-workflow-step.active .sm-workflow-step-number {
    background: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   18. Presentation Mode
   ========================================================================== */
.sm-presentation {
    background: linear-gradient(135deg, #0a0f1a 0%, #111827 50%, #0a0f1a 100%);
    min-height: 100vh;
    color: white;
    font-family: var(--sm-font-family);
    overflow-x: hidden;
    position: relative;
}

/* Animated background pattern */
.sm-presentation::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(6, 182, 212, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(59, 130, 246, 0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Suspended Banner */
.sm-presentation-suspended {
    background: linear-gradient(90deg, var(--sm-danger) 0%, var(--sm-danger-dark) 100%);
    color: white;
    text-align: center;
    padding: 1rem 2rem;
    font-size: var(--sm-text-lg);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    position: relative;
    z-index: 10;
    animation: sm-pulse 2s ease-in-out infinite;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
}

@keyframes sm-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

/* Quorum Status Banner */
.sm-presentation-quorum {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    font-size: var(--sm-text-base);
    font-weight: 600;
    text-align: center;
    position: relative;
    z-index: 9;
}

.sm-presentation-quorum svg {
    flex-shrink: 0;
}

.sm-quorum-met {
    background: linear-gradient(90deg, var(--sm-success) 0%, var(--sm-success-dark) 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(5, 150, 105, 0.3);
}

.sm-quorum-not-met {
    background: linear-gradient(90deg, var(--sm-danger) 0%, var(--sm-danger-dark) 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(220, 38, 38, 0.3);
    animation: sm-pulse 2s ease-in-out infinite;
}

/* Presentation Header */
.sm-presentation-header {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1.5rem 2.5rem;
    position: relative;
    z-index: 10;
}

.sm-presentation-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1800px;
    margin: 0 auto;
}

.sm-presentation-council-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.sm-presentation-council-logo {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--sm-primary-500) 0%, var(--sm-primary-600) 100%);
    border-radius: var(--sm-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.3);
}

.sm-presentation-council-name {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 0.25rem;
}

.sm-presentation-meeting-info {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
}

.sm-presentation-venue {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--sm-radius-full);
    font-size: var(--sm-text-base);
    font-weight: 500;
}

.sm-presentation-venue svg {
    width: 18px;
    height: 18px;
    opacity: 0.7;
}

/* Exit Button */
.sm-presentation-exit {
    position: fixed;
    top: 1.5rem;
    right: 2rem;
    z-index: var(--sm-z-fixed);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--sm-radius-md);
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

.sm-presentation-exit:hover {
    background: rgba(255, 255, 255, 0.12);
    color: white;
}

.sm-presentation-exit svg {
    width: 18px;
    height: 18px;
}

/* Presentation Container */
.sm-presentation-container {
    padding: 2.5rem;
    max-width: 1800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Current Item Display */
.sm-presentation-current {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(6, 182, 212, 0.06) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--sm-radius-xl);
    padding: 4rem 3rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.sm-presentation-current::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--sm-primary-400), var(--sm-info), var(--sm-primary-400));
    background-size: 200% 100%;
    animation: sm-shimmer 3s ease-in-out infinite;
}

@keyframes sm-shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.sm-presentation-item-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.15);
    border-radius: var(--sm-radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--sm-primary-400);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.sm-presentation-item-number {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--sm-primary-400) 0%, var(--sm-info) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.sm-presentation-item-title {
    font-size: 2.75rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.2;
    margin-bottom: 1rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.sm-presentation-item-detail {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.sm-presentation-item-badges {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.sm-presentation-badge {
    padding: 0.375rem 0.875rem;
    border-radius: var(--sm-radius-full);
    font-size: var(--sm-text-sm);
    font-weight: 600;
}

.sm-presentation-badge-confidential {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
}

.sm-presentation-badge-statutory {
    background: rgba(59, 130, 246, 0.15);
    color: var(--sm-primary-400);
}

/* Abstention Warning */
.sm-presentation-abstain-warning {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--sm-radius-md);
    padding: 1rem 1.25rem;
    margin-top: 1.5rem;
}

.sm-presentation-abstain-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #fbbf24;
    margin-bottom: 0.5rem;
}

.sm-presentation-abstain-text {
    font-size: var(--sm-text-sm);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.75rem;
}

.sm-presentation-abstain-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.sm-presentation-abstain-list li {
    background: rgba(245, 158, 11, 0.2);
    color: #fcd34d;
    padding: 0.25rem 0.75rem;
    border-radius: var(--sm-radius-full);
    font-size: var(--sm-text-sm);
    font-weight: 500;
}

/* Agenda Items Grid */
.sm-presentation-items-title {
    font-size: var(--sm-text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 1rem;
}

.sm-presentation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 0.75rem;
}

.sm-presentation-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--sm-radius-md);
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sm-presentation-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.sm-presentation-card.active {
    background: rgba(59, 130, 246, 0.12);
    border-color: var(--sm-primary-500);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.sm-presentation-card-number {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--sm-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--sm-text-base);
    color: var(--sm-primary-400);
    flex-shrink: 0;
}

.sm-presentation-card.active .sm-presentation-card-number {
    background: var(--sm-primary-500);
    color: white;
}

.sm-presentation-card-content {
    flex: 1;
    min-width: 0;
}

.sm-presentation-card-title {
    font-size: var(--sm-text-base);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sm-presentation-card-type {
    font-size: var(--sm-text-xs);
    color: rgba(255, 255, 255, 0.4);
    margin-top: 0.25rem;
    text-transform: capitalize;
}

.sm-presentation-card-flags {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.sm-presentation-card-flag {
    font-size: 0.6875rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--sm-radius-full);
    font-weight: 600;
}

.sm-presentation-card-flag-confidential {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
}

/* Navigation */
.sm-presentation-nav {
    position: fixed;
    bottom: 2rem;
    right: 2.5rem;
    display: flex;
    gap: 0.75rem;
    z-index: var(--sm-z-fixed);
}

.sm-presentation-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--sm-radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.sm-presentation-nav-btn svg {
    width: 20px;
    height: 20px;
}

.sm-presentation-nav-btn.secondary {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sm-presentation-nav-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.12);
}

.sm-presentation-nav-btn.primary {
    background: linear-gradient(135deg, var(--sm-primary-500) 0%, var(--sm-primary-600) 100%);
    color: white;
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.3);
}

.sm-presentation-nav-btn.primary:hover {
    background: linear-gradient(135deg, var(--sm-primary-400) 0%, var(--sm-primary-500) 100%);
    transform: translateY(-1px);
}

/* Progress Indicator */
.sm-presentation-progress {
    position: fixed;
    bottom: 2rem;
    left: 2.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--sm-radius-full);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    z-index: var(--sm-z-fixed);
}

.sm-presentation-progress-bar {
    width: 120px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--sm-radius-full);
    overflow: hidden;
}

.sm-presentation-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--sm-primary-400), var(--sm-info));
    border-radius: var(--sm-radius-full);
    transition: width 0.3s ease;
}

/* Keyboard Hint */
.sm-presentation-keyboard-hint {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.625rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--sm-radius-full);
    font-size: var(--sm-text-xs);
    color: rgba(255, 255, 255, 0.4);
    z-index: var(--sm-z-fixed);
}

.sm-presentation-keyboard-hint kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 0.375rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.6875rem;
    font-weight: 600;
    margin-right: 0.375rem;
}

/* Presentation Responsive */
@media (max-width: 768px) {
    .sm-presentation-header {
        padding: 1rem 1.5rem;
    }

    .sm-presentation-header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .sm-presentation-council-info {
        flex-direction: column;
        gap: 1rem;
    }

    .sm-presentation-container {
        padding: 1.5rem;
    }

    .sm-presentation-current {
        padding: 2rem 1.5rem;
    }

    .sm-presentation-item-number {
        font-size: 2.5rem;
    }

    .sm-presentation-item-title {
        font-size: 1.5rem;
    }

    .sm-presentation-grid {
        grid-template-columns: 1fr;
    }

    .sm-presentation-nav {
        right: 1rem;
        bottom: 1rem;
    }

    .sm-presentation-nav-btn {
        padding: 0.75rem 1.25rem;
    }

    .sm-presentation-keyboard-hint,
    .sm-presentation-progress {
        display: none;
    }

    .sm-presentation-exit {
        top: 1rem;
        right: 1rem;
        padding: 0.5rem;
    }

    .sm-presentation-exit span {
        display: none;
    }
}

/* ==========================================================================
   18b. Presentation Mode - Control Panel & Attendance
   ========================================================================== */

/* Control Panel - Fixed bottom-left */
.sm-presentation-control-panel {
    position: fixed;
    bottom: 5.5rem;
    left: 2rem;
    width: 280px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--sm-radius-lg);
    z-index: var(--sm-z-fixed);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.sm-presentation-control-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: var(--sm-text-sm);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sm-presentation-control-header svg {
    opacity: 0.6;
}

.sm-presentation-control-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

/* Control Panel - Status */
.sm-presentation-control-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sm-presentation-status-label {
    font-size: var(--sm-text-sm);
    color: rgba(255, 255, 255, 0.5);
}

.sm-presentation-status-badge {
    padding: 0.25rem 0.625rem;
    border-radius: var(--sm-radius-full);
    font-size: var(--sm-text-xs);
    font-weight: 600;
    text-transform: capitalize;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

.sm-presentation-status-badge[data-state="published"] {
    background: rgba(59, 130, 246, 0.2);
    color: var(--sm-primary-400);
}

.sm-presentation-status-badge[data-state="in_progress"] {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.sm-presentation-status-badge[data-state="completed"] {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
}

/* Control Panel - Timer */
.sm-presentation-control-timer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--sm-radius);
    font-family: var(--sm-font-mono);
    font-size: var(--sm-text-lg);
    font-weight: 600;
    color: #34d399;
}

.sm-presentation-control-timer svg {
    color: #34d399;
    opacity: 0.7;
}

/* Control Panel - Actions */
.sm-presentation-control-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sm-presentation-control-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    font-size: var(--sm-text-sm);
    font-weight: 600;
    border-radius: var(--sm-radius);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.sm-presentation-control-btn svg {
    width: 16px;
    height: 16px;
}

.sm-presentation-control-btn.sm-btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.sm-presentation-control-btn.sm-btn-success:hover {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
}

.sm-presentation-control-btn.sm-btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.sm-presentation-control-btn.sm-btn-danger:hover {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
}

.sm-presentation-control-btn.sm-btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

.sm-presentation-control-btn.sm-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    color: white;
}

.sm-presentation-control-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Control Panel - Row */
.sm-presentation-control-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

/* Control Panel - Toggle */
.sm-presentation-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    width: 100%;
}

.sm-presentation-toggle input {
    display: none;
}

.sm-presentation-toggle-slider {
    width: 40px;
    height: 22px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 11px;
    position: relative;
    transition: all 0.2s;
    flex-shrink: 0;
}

.sm-presentation-toggle-slider::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: all 0.2s;
}

.sm-presentation-toggle input:checked + .sm-presentation-toggle-slider {
    background: var(--sm-danger);
}

.sm-presentation-toggle input:checked + .sm-presentation-toggle-slider::after {
    transform: translateX(18px);
}

.sm-presentation-toggle-label {
    font-size: var(--sm-text-sm);
    color: rgba(255, 255, 255, 0.7);
}

/* Control Panel - Label */
.sm-presentation-control-label {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: var(--sm-text-sm);
    color: rgba(255, 255, 255, 0.6);
}

.sm-presentation-control-label svg {
    opacity: 0.7;
}

/* Control Panel - Input Group */
.sm-presentation-control-input-group {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--sm-radius);
    overflow: hidden;
}

.sm-presentation-control-input-btn {
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.sm-presentation-control-input-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.sm-presentation-control-input {
    width: 48px;
    height: 32px;
    background: transparent;
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    text-align: center;
    font-size: var(--sm-text-sm);
    font-weight: 600;
}

.sm-presentation-control-input:focus {
    outline: none;
}

.sm-presentation-control-input::-webkit-inner-spin-button,
.sm-presentation-control-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Control Panel - Badge */
.sm-presentation-control-badge {
    min-width: 20px;
    height: 20px;
    background: var(--sm-primary-500);
    border-radius: var(--sm-radius-full);
    font-size: 0.6875rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
}

/* Attendance Side Panel */
.sm-presentation-attendance-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 340px;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    z-index: var(--sm-z-fixed);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.sm-presentation-attendance-panel.open {
    transform: translateX(0);
}

.sm-presentation-attendance-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.sm-presentation-attendance-header h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin: 0;
}

.sm-presentation-attendance-close {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: var(--sm-radius);
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.sm-presentation-attendance-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

/* Attendance Summary */
.sm-presentation-attendance-summary {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sm-attendance-count {
    font-size: var(--sm-text-sm);
    font-weight: 600;
}

.sm-attendance-count.present {
    color: #34d399;
}

.sm-attendance-count.apology {
    color: #fbbf24;
}

.sm-attendance-count.absent {
    color: #f87171;
}

.sm-attendance-count span {
    font-weight: 700;
}

/* Attendance Quick Action */
.sm-presentation-attendance-quick-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem 1.5rem;
    padding: 0.625rem 1rem;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--sm-radius);
    color: #34d399;
    font-size: var(--sm-text-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.sm-presentation-attendance-quick-btn:hover {
    background: rgba(16, 185, 129, 0.25);
}

/* Attendance List */
.sm-presentation-attendance-list {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0;
}

.sm-presentation-attendance-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    transition: background 0.15s;
}

.sm-presentation-attendance-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.sm-presentation-attendance-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.sm-presentation-attendance-name {
    font-size: var(--sm-text-sm);
    font-weight: 500;
    color: white;
}

.sm-presentation-attendance-role {
    font-size: var(--sm-text-xs);
    color: var(--sm-primary-400);
    text-transform: capitalize;
}

/* Attendance Buttons */
.sm-presentation-attendance-buttons {
    display: flex;
    gap: 0.375rem;
}

.sm-attendance-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--sm-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    color: rgba(255, 255, 255, 0.4);
}

.sm-attendance-btn:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

.sm-attendance-btn.present.active {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.4);
    color: #34d399;
}

.sm-attendance-btn.apology.active {
    background: rgba(251, 191, 36, 0.2);
    border-color: rgba(251, 191, 36, 0.4);
    color: #fbbf24;
}

.sm-attendance-btn.absent.active {
    background: rgba(248, 113, 113, 0.2);
    border-color: rgba(248, 113, 113, 0.4);
    color: #f87171;
}

/* Resolution Display Styles */
.sm-presentation-resolution {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--sm-radius-lg);
    text-align: left;
}

.sm-presentation-resolution-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--sm-text-sm);
    font-weight: 600;
    color: #34d399;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.sm-presentation-resolution-text {
    font-size: 1.125rem;
    color: white;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.sm-presentation-resolution-details {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: var(--sm-text-sm);
    color: rgba(255, 255, 255, 0.6);
}

/* Presentation Actions */
.sm-presentation-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

/* Modal Styles for Presentation */
.sm-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: var(--sm-z-modal-backdrop);
}

.sm-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 560px;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--sm-radius-xl);
    z-index: var(--sm-z-modal);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.sm-modal.sm-modal-sm {
    max-width: 420px;
}

.sm-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sm-modal-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    margin: 0;
}

.sm-modal-close {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: var(--sm-radius);
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.sm-modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.sm-modal-body {
    padding: 1.5rem;
}

.sm-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

/* Modal Form Elements */
.sm-modal .sm-label {
    display: block;
    font-size: var(--sm-text-sm);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.375rem;
}

.sm-modal .sm-textarea,
.sm-modal .sm-input,
.sm-modal .sm-select {
    width: 100%;
    padding: 0.625rem 0.875rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--sm-radius);
    color: white;
    font-size: var(--sm-text-base);
    transition: all 0.15s;
}

.sm-modal .sm-textarea:focus,
.sm-modal .sm-input:focus,
.sm-modal .sm-select:focus {
    outline: none;
    border-color: var(--sm-primary-500);
    background: rgba(255, 255, 255, 0.1);
}

.sm-modal .sm-textarea::placeholder,
.sm-modal .sm-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.sm-modal .sm-select option {
    background: #1e293b;
    color: white;
}

/* Button Group */
.sm-btn-group {
    display: flex;
    gap: 0.5rem;
}

/* Responsive adjustments for control panel */
@media (max-width: 768px) {
    .sm-presentation-control-panel {
        display: none;
    }

    .sm-presentation-attendance-panel {
        width: 100%;
    }
}

/* ==========================================================================
   19. Login Page
   ========================================================================== */
.sm-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--sm-gray-900) 0%, #0c1929 50%, var(--sm-gray-900) 100%);
    padding: 1.5rem;
}

.sm-login-container {
    width: 100%;
    max-width: 400px;
}

.sm-login-brand {
    text-align: center;
    margin-bottom: 2rem;
}

.sm-login-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: white;
}

.sm-login-brand-logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--sm-primary-500) 0%, var(--sm-primary-700) 100%);
    border-radius: var(--sm-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--sm-text-lg);
    color: white;
}

.sm-login-brand-text {
    font-size: var(--sm-text-xl);
    font-weight: 600;
    letter-spacing: -0.025em;
}

.sm-login-card {
    background: white;
    border-radius: var(--sm-radius-xl);
    box-shadow: var(--sm-shadow-xl);
    overflow: hidden;
}

.sm-login-header {
    padding: 2rem 2rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid var(--sm-gray-100);
    background: var(--sm-gray-50);
}

.sm-login-logo {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--sm-primary-500) 0%, var(--sm-primary-700) 100%);
    border-radius: var(--sm-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: var(--sm-text-2xl);
    margin: 0 auto 1rem;
}

.sm-login-title {
    font-size: var(--sm-text-xl);
    font-weight: 600;
    color: var(--sm-gray-900);
    margin: 0 0 0.25rem;
}

.sm-login-subtitle {
    font-size: var(--sm-text-base);
    color: var(--sm-gray-500);
    margin: 0;
}

.sm-login-body {
    padding: 2rem;
}

.sm-login-footer {
    padding: 1.5rem 2rem;
    background: var(--sm-gray-50);
    border-top: 1px solid var(--sm-gray-100);
    text-align: center;
}

.sm-login-footer-text {
    font-size: var(--sm-text-sm);
    color: var(--sm-gray-500);
    margin: 0;
}

.sm-login-divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

.sm-login-divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: var(--sm-gray-200);
}

.sm-login-divider span {
    position: relative;
    background: white;
    padding: 0 1rem;
    font-size: var(--sm-text-sm);
    color: var(--sm-gray-500);
}

.sm-login-success-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: var(--sm-success-light, rgba(16, 185, 129, 0.1));
    border-radius: 50%;
}

/* Checkbox Styles */
.sm-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: var(--sm-text-sm);
    color: var(--sm-gray-700);
}

.sm-checkbox input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    border: 1px solid var(--sm-gray-300);
    border-radius: 0.25rem;
    cursor: pointer;
    accent-color: var(--sm-primary-600);
}

.sm-checkbox-label {
    user-select: none;
}

/* Link Styles */
.sm-link {
    color: var(--sm-primary-600);
    text-decoration: none;
    font-size: var(--sm-text-sm);
    transition: color 0.15s ease;
}

.sm-link:hover {
    color: var(--sm-primary-700);
    text-decoration: underline;
}

/* Form Row Utilities */
.sm-form-row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ==========================================================================
   20. Profile Styles
   ========================================================================== */

.sm-profile-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--sm-primary-600), var(--sm-primary-700));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.sm-profile-avatar span {
    font-size: 2rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
}

.sm-profile-details {
    margin: 0;
}

.sm-profile-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--sm-gray-100);
}

.sm-profile-detail-item:last-child {
    border-bottom: none;
}

.sm-profile-detail-item dt {
    font-size: var(--sm-text-sm);
    color: var(--sm-gray-500);
    font-weight: 400;
}

.sm-profile-detail-item dd {
    font-size: var(--sm-text-sm);
    color: var(--sm-gray-900);
    font-weight: 500;
    margin: 0;
}

/* Badge Styles */
.sm-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    font-size: var(--sm-text-xs);
    font-weight: 500;
    border-radius: 9999px;
    text-transform: capitalize;
}

.sm-badge-primary {
    background: var(--sm-primary-100);
    color: var(--sm-primary-700);
}

.sm-badge-secondary {
    background: var(--sm-gray-100);
    color: var(--sm-gray-700);
}

.sm-badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--sm-success);
}

.sm-badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--sm-warning);
}

.sm-badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--sm-danger);
}

/* ==========================================================================
   21. Utility Classes
   ========================================================================== */
/* Text Colors */
.sm-text-muted { color: var(--sm-gray-500); }
.sm-text-primary { color: var(--sm-primary-600); }
.sm-text-success { color: var(--sm-success); }
.sm-text-warning { color: var(--sm-warning); }
.sm-text-danger { color: var(--sm-danger); }

/* Text Styles */
.sm-text-bold { font-weight: 600; }
.sm-text-capitalize { text-transform: capitalize; }
.sm-text-sm { font-size: var(--sm-text-sm); }
.sm-text-xs { font-size: var(--sm-text-xs); }
.sm-text-left { text-align: left; }
.sm-text-center { text-align: center; }
.sm-text-right { text-align: right; }

/* Margins */
.sm-mt-0 { margin-top: 0; }
.sm-mt-1 { margin-top: 0.25rem; }
.sm-mt-2 { margin-top: 0.5rem; }
.sm-mt-3 { margin-top: 1rem; }
.sm-mt-4 { margin-top: 1.5rem; }
.sm-mt-5 { margin-top: 2rem; }

.sm-mb-0 { margin-bottom: 0; }
.sm-mb-1 { margin-bottom: 0.25rem; }
.sm-mb-2 { margin-bottom: 0.5rem; }
.sm-mb-3 { margin-bottom: 1rem; }
.sm-mb-4 { margin-bottom: 1.5rem; }
.sm-mb-5 { margin-bottom: 2rem; }

.sm-ml-2 { margin-left: 0.5rem; }
.sm-mr-2 { margin-right: 0.5rem; }

/* Flexbox */
.sm-flex { display: flex; }
.sm-flex-wrap { flex-wrap: wrap; }
.sm-items-center { align-items: center; }
.sm-items-start { align-items: flex-start; }
.sm-items-stretch { align-items: stretch; }
.sm-justify-between { justify-content: space-between; }
.sm-justify-center { justify-content: center; }
.sm-justify-end { justify-content: flex-end; }

/* Gap */
.sm-gap-1 { gap: 0.25rem; }
.sm-gap-2 { gap: 0.5rem; }
.sm-gap-3 { gap: 1rem; }
.sm-gap-4 { gap: 1.5rem; }

/* Grid */
.sm-grid { display: grid; }
.sm-grid-cols-1 { grid-template-columns: 1fr; }
.sm-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }

@media (min-width: 768px) {
    .sm-md-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .sm-md-grid-cols-3 { grid-template-columns: 1fr 180px 140px; }
}

@media (min-width: 1024px) {
    .sm-lg-grid-cols-sidebar { grid-template-columns: 300px 1fr; }
}

/* Display */
.sm-hidden { display: none; }
.sm-inline { display: inline; }
.sm-inline-block { display: inline-block; }
.sm-block { display: block; }

/* Form group margin reset */
.sm-mb-0 .sm-form-group,
.sm-form-group.sm-mb-0 {
    margin-bottom: 0;
}

/* Visibility */
@media (max-width: 767.98px) {
    .sm-hide-mobile { display: none !important; }
}

@media (min-width: 768px) {
    .sm-hide-desktop { display: none !important; }
}

/* Attendance List */
.sm-attendance-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sm-attendance-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--sm-gray-100);
}

.sm-attendance-item:last-child {
    border-bottom: none;
}

/* Deferred/Disabled Row */
.sm-row-deferred {
    opacity: 0.5;
}

/* ==========================================================================
   21. Error & Status Pages
   ========================================================================== */
.sm-error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    padding: 2rem;
}

.sm-error-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    background: var(--sm-danger-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sm-error-icon.warning {
    background: var(--sm-warning-light);
}

.sm-error-icon svg {
    width: 40px;
    height: 40px;
}

.sm-error-title {
    font-size: var(--sm-text-2xl);
    font-weight: 600;
    color: var(--sm-gray-900);
    margin-bottom: 0.5rem;
}

.sm-error-title.danger {
    color: var(--sm-danger);
}

.sm-error-message {
    color: var(--sm-gray-500);
    max-width: 400px;
    margin-bottom: 1.5rem;
}

/* Prose/Content Styles */
.sm-prose {
    line-height: 1.8;
}

.sm-prose h2 {
    font-size: var(--sm-text-lg);
    font-weight: 600;
    color: var(--sm-gray-800);
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
}

.sm-prose h2:first-child {
    margin-top: 0;
}

.sm-prose p {
    color: var(--sm-gray-500);
    margin-bottom: 1rem;
}

.sm-prose ul {
    color: var(--sm-gray-500);
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    list-style: disc;
}

.sm-prose li {
    margin-bottom: 0.5rem;
}

/* Centered Content Card */
.sm-card-centered {
    text-align: center;
    padding: 3rem 2rem;
}

/* Code Styling */
.sm-code {
    font-family: var(--sm-font-mono);
    font-size: var(--sm-text-sm);
    background: var(--sm-gray-100);
    padding: 0.125rem 0.375rem;
    border-radius: var(--sm-radius-sm);
}

/* Max Width Variants */
.sm-max-w-md { max-width: 640px; }
.sm-max-w-lg { max-width: 800px; }

/* ==========================================================================
   22. Drag and Drop (Sortable)
   ========================================================================== */

/* Drag handle styling */
.sm-drag-handle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: var(--sm-gray-400);
    cursor: grab;
    border-radius: var(--sm-radius);
    transition: var(--sm-transition-fast);
}

.sm-drag-handle:hover {
    color: var(--sm-gray-600);
    background: var(--sm-gray-100);
}

.sm-drag-handle:active {
    cursor: grabbing;
}

/* Table cell for drag handle */
.sm-table-cell-drag {
    width: 44px;
    padding: 0.5rem !important;
}

/* Row being dragged */
.sm-dragging {
    opacity: 0.9;
    background: var(--sm-primary-50) !important;
    box-shadow: var(--sm-shadow-lg);
}

/* Ghost element (placeholder) */
.sm-dragging-ghost {
    opacity: 0.4;
    background: var(--sm-gray-100) !important;
}

/* Chosen element (selected for dragging) */
.sm-dragging-chosen {
    background: var(--sm-primary-50) !important;
}

/* Body class when dragging */
body.sm-is-dragging {
    cursor: grabbing !important;
}

body.sm-is-dragging * {
    cursor: grabbing !important;
}

/* Reorder status indicator */
.sm-reorder-status {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: var(--sm-z-tooltip);
    background: white;
    border-radius: var(--sm-radius-md);
    box-shadow: var(--sm-shadow-lg);
    border: 1px solid var(--sm-gray-200);
    padding: 0.75rem 1rem;
    transition: var(--sm-transition);
}

.sm-reorder-status.sm-hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
}

.sm-reorder-status-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--sm-text-sm);
    font-weight: 500;
}

.sm-reorder-status.sm-status-loading {
    border-color: var(--sm-primary-200);
    background: var(--sm-primary-50);
    color: var(--sm-primary-700);
}

.sm-reorder-status.sm-status-success {
    border-color: var(--sm-success-light);
    background: var(--sm-success-light);
    color: var(--sm-success-dark);
}

.sm-reorder-status.sm-status-error {
    border-color: var(--sm-danger-light);
    background: var(--sm-danger-light);
    color: var(--sm-danger-dark);
}

/* Spinner animation */
.sm-spinner {
    animation: sm-spin 1s linear infinite;
}

@keyframes sm-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Agenda row hover state during drag mode */
.sm-agenda-row {
    transition: background-color var(--sm-transition-fast);
}

/* ==========================================================================
   23. Animations
   ========================================================================== */
@keyframes sm-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes sm-fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes sm-slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes sm-slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes sm-slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes sm-slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(20px);
    }
}

@keyframes sm-pageEnter {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes sm-scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes sm-scaleOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

@keyframes sm-shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
    20%, 40%, 60%, 80% { transform: translateX(4px); }
}

@keyframes sm-pulse-ring {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 102, 209, 0.4);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(0, 102, 209, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 102, 209, 0);
    }
}

.sm-animate-fadeIn {
    animation: sm-fadeIn 0.3s ease-out;
}

.sm-animate-slideUp {
    animation: sm-slideUp 0.3s ease-out;
}

.sm-animate-slideDown {
    animation: sm-slideDown 0.3s ease-out;
}

.sm-animate-scaleIn {
    animation: sm-scaleIn 0.2s var(--sm-ease-out-expo);
}

.sm-animate-shake {
    animation: sm-shake 0.5s ease-in-out;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .sm-animate-fadeIn,
    .sm-animate-slideUp,
    .sm-animate-slideDown,
    .sm-animate-scaleIn,
    .sm-animate-shake {
        animation: none;
    }
}

/* ==========================================================================
   24. Print Styles
   ========================================================================== */
@media print {
    .sm-sidebar,
    .sm-header,
    .sm-footer,
    .sm-btn,
    .sm-page-actions,
    .sm-sidebar-overlay,
    .sm-toast-container,
    .sm-modal-backdrop {
        display: none !important;
    }

    .sm-main-content {
        margin-left: 0 !important;
    }

    .sm-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }

    body {
        background: white;
    }
}

/* ==========================================================================
   25. Toast Notification System
   ========================================================================== */
.sm-toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: var(--sm-z-toast);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 420px;
    width: calc(100% - 3rem);
    pointer-events: none;
}

@media (min-width: 768px) {
    .sm-toast-container {
        width: 380px;
    }
}

.sm-toast {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: white;
    border-radius: var(--sm-radius-lg);
    box-shadow: var(--sm-shadow-xl);
    border: 1px solid var(--sm-gray-200);
    pointer-events: auto;
    animation: sm-toastSlideIn 0.4s var(--sm-ease-out-expo);
}

.sm-toast.sm-toast-exit {
    animation: sm-toastSlideOut 0.3s var(--sm-ease-out-expo) forwards;
}

@keyframes sm-toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes sm-toastSlideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.sm-toast-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 0.125rem;
}

.sm-toast-content {
    flex: 1;
    min-width: 0;
}

.sm-toast-title {
    font-size: var(--sm-text-sm);
    font-weight: 600;
    color: var(--sm-gray-900);
    margin-bottom: 0.125rem;
}

.sm-toast-message {
    font-size: var(--sm-text-sm);
    color: var(--sm-gray-600);
    line-height: var(--sm-leading-snug);
}

.sm-toast-close {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--sm-gray-400);
    border-radius: var(--sm-radius);
    cursor: pointer;
    transition: background-color var(--sm-transition-fast), color var(--sm-transition-fast);
    margin: -0.25rem -0.375rem -0.25rem 0;
}

.sm-toast-close:hover {
    background: var(--sm-gray-100);
    color: var(--sm-gray-600);
}

.sm-toast-close svg {
    width: 16px;
    height: 16px;
}

/* Toast Progress Bar */
.sm-toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--sm-gray-300);
    border-radius: 0 0 var(--sm-radius-lg) var(--sm-radius-lg);
    animation: sm-toastProgress 4s linear forwards;
}

@keyframes sm-toastProgress {
    from { width: 100%; }
    to { width: 0%; }
}

/* Toast Variants */
.sm-toast-success {
    border-left: 4px solid var(--sm-success);
}

.sm-toast-success .sm-toast-icon {
    color: var(--sm-success);
}

.sm-toast-success .sm-toast-progress {
    background: var(--sm-success);
}

.sm-toast-error {
    border-left: 4px solid var(--sm-danger);
}

.sm-toast-error .sm-toast-icon {
    color: var(--sm-danger);
}

.sm-toast-error .sm-toast-progress {
    background: var(--sm-danger);
}

.sm-toast-warning {
    border-left: 4px solid var(--sm-warning);
}

.sm-toast-warning .sm-toast-icon {
    color: var(--sm-warning);
}

.sm-toast-warning .sm-toast-progress {
    background: var(--sm-warning);
}

.sm-toast-info {
    border-left: 4px solid var(--sm-info);
}

.sm-toast-info .sm-toast-icon {
    color: var(--sm-info);
}

.sm-toast-info .sm-toast-progress {
    background: var(--sm-info);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .sm-toast {
        animation: sm-fadeIn 0.2s ease-out;
    }
    .sm-toast.sm-toast-exit {
        animation: sm-fadeOut 0.2s ease-out forwards;
    }
    .sm-toast-progress {
        animation: none;
        width: 100%;
    }
}

/* ==========================================================================
   26. Modal System
   ========================================================================== */
.sm-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(var(--sm-blur-sm));
    z-index: var(--sm-z-modal-backdrop);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--sm-transition), visibility var(--sm-transition);
}

.sm-modal-backdrop.sm-modal-open {
    opacity: 1;
    visibility: visible;
}

.sm-modal {
    background: white;
    border-radius: var(--sm-radius-xl);
    box-shadow: var(--sm-shadow-2xl);
    width: 100%;
    max-width: 500px;
    max-height: calc(100vh - 2rem);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.95) translateY(20px);
    opacity: 0;
    transition: transform var(--sm-transition-slow) var(--sm-ease-out-expo), opacity var(--sm-transition);
}

.sm-modal-backdrop.sm-modal-open .sm-modal {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Modal Sizes */
.sm-modal-sm {
    max-width: 400px;
}

.sm-modal-md {
    max-width: 500px;
}

.sm-modal-lg {
    max-width: 700px;
}

.sm-modal-xl {
    max-width: 900px;
}

.sm-modal-full {
    max-width: calc(100vw - 2rem);
    max-height: calc(100vh - 2rem);
}

.sm-modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--sm-gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-shrink: 0;
}

.sm-modal-title {
    font-size: var(--sm-text-lg);
    font-weight: 600;
    color: var(--sm-gray-900);
    margin: 0;
}

.sm-modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--sm-gray-400);
    border-radius: var(--sm-radius);
    cursor: pointer;
    transition: background-color var(--sm-transition-fast), color var(--sm-transition-fast);
    margin: -0.25rem -0.5rem -0.25rem 0;
}

.sm-modal-close:hover {
    background: var(--sm-gray-100);
    color: var(--sm-gray-600);
}

.sm-modal-close svg {
    width: 20px;
    height: 20px;
}

.sm-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.sm-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--sm-gray-200);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-shrink: 0;
    background: var(--sm-gray-50);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .sm-modal-backdrop {
        backdrop-filter: none;
    }
    .sm-modal {
        transform: none;
        transition: opacity var(--sm-transition);
    }
}

/* ==========================================================================
   27. Loading States
   ========================================================================== */

/* Skeleton Loading */
.sm-skeleton {
    background: linear-gradient(
        90deg,
        var(--sm-gray-200) 0%,
        var(--sm-gray-100) 50%,
        var(--sm-gray-200) 100%
    );
    background-size: 200% 100%;
    animation: sm-skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: var(--sm-radius);
}

@keyframes sm-skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.sm-skeleton-text {
    height: 1em;
    margin-bottom: 0.5rem;
}

.sm-skeleton-text:last-child {
    width: 80%;
}

.sm-skeleton-heading {
    height: 1.5rem;
    width: 60%;
    margin-bottom: 1rem;
}

.sm-skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.sm-skeleton-btn {
    height: 36px;
    width: 100px;
}

.sm-skeleton-card {
    padding: 1.25rem;
    background: white;
    border-radius: var(--sm-radius-lg);
    border: 1px solid var(--sm-gray-200);
}

/* Skeleton Card Grid */
.sm-skeleton-stat-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: white;
    border-radius: var(--sm-radius-lg);
    border: 1px solid var(--sm-gray-200);
}

.sm-skeleton-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--sm-radius-md);
}

.sm-skeleton-stat-content {
    flex: 1;
}

.sm-skeleton-stat-label {
    height: 0.875rem;
    width: 60%;
    margin-bottom: 0.5rem;
}

.sm-skeleton-stat-value {
    height: 1.75rem;
    width: 40%;
}

/* Button Loading State */
.sm-btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.sm-btn-loading::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    top: 50%;
    left: 50%;
    margin-left: -9px;
    margin-top: -9px;
    border: 2px solid currentColor;
    border-radius: 50%;
    border-right-color: transparent;
    animation: sm-spin 0.6s linear infinite;
}

.sm-btn-primary.sm-btn-loading::after {
    border-color: rgba(255, 255, 255, 0.3);
    border-right-color: transparent;
    border-top-color: white;
}

.sm-btn-secondary.sm-btn-loading::after {
    border-color: var(--sm-gray-300);
    border-right-color: transparent;
    border-top-color: var(--sm-gray-600);
}

/* Table Loading Overlay */
.sm-table-loading {
    position: relative;
}

.sm-table-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.sm-table-loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 11;
}

/* Page Loading Indicator */
.sm-page-loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: calc(var(--sm-z-toast) + 1);
    overflow: hidden;
}

.sm-page-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 30%;
    background: var(--sm-gradient-primary);
    animation: sm-pageLoadingProgress 1s ease-in-out infinite;
}

@keyframes sm-pageLoadingProgress {
    0% {
        left: -30%;
    }
    100% {
        left: 100%;
    }
}

/* Spinner Sizes */
.sm-spinner-sm {
    width: 16px;
    height: 16px;
}

.sm-spinner-md {
    width: 24px;
    height: 24px;
}

.sm-spinner-lg {
    width: 32px;
    height: 32px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .sm-skeleton {
        animation: none;
        background: var(--sm-gray-200);
    }
    .sm-btn-loading::after {
        animation: none;
        border-style: dotted;
    }
    .sm-page-loading::after {
        animation: none;
        width: 100%;
        left: 0;
    }
}

/* ==========================================================================
   28. Micro-Interactions & Polish
   ========================================================================== */

/* Subtle card hover for stat cards */
.sm-stat-card {
    transition: transform var(--sm-transition), box-shadow var(--sm-transition), border-color var(--sm-transition);
}

.sm-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--sm-shadow-md);
    border-color: var(--sm-gray-300);
}

@media (prefers-reduced-motion: reduce) {
    .sm-stat-card:hover {
        transform: none;
    }
}

/* Feature card enhanced hover */
.sm-feature-card {
    transition: transform var(--sm-transition), box-shadow var(--sm-transition), border-color var(--sm-transition);
}

/* Link hover underline animation */
.sm-link-animated {
    position: relative;
    text-decoration: none;
}

.sm-link-animated::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width var(--sm-transition);
}

.sm-link-animated:hover::after {
    width: 100%;
}

/* Focus ring utility */
.sm-focus-ring:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 102, 209, 0.25);
}

/* Gradient text utility */
.sm-text-gradient {
    background: var(--sm-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass effect utility */
.sm-glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(var(--sm-blur));
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Divider with text */
.sm-divider-text {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--sm-gray-400);
    font-size: var(--sm-text-sm);
}

.sm-divider-text::before,
.sm-divider-text::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--sm-gray-200);
}

/* Smooth image loading */
.sm-img-loading {
    background: var(--sm-gray-100);
    transition: opacity var(--sm-transition);
}

.sm-img-loading.loaded {
    opacity: 1;
}

/* Hover scale effect */
.sm-hover-scale {
    transition: transform var(--sm-transition);
}

.sm-hover-scale:hover {
    transform: scale(1.02);
}

@media (prefers-reduced-motion: reduce) {
    .sm-hover-scale:hover {
        transform: none;
    }
}

/* Clickable area expansion */
.sm-click-area {
    position: relative;
}

.sm-click-area::before {
    content: '';
    position: absolute;
    inset: -8px;
}

/* Subtle pulse animation for attention */
.sm-pulse-attention {
    animation: sm-pulse-ring 2s ease-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .sm-pulse-attention {
        animation: none;
    }
}

/* Stagger animation delays for lists */
.sm-stagger > *:nth-child(1) { animation-delay: 0ms; }
.sm-stagger > *:nth-child(2) { animation-delay: 50ms; }
.sm-stagger > *:nth-child(3) { animation-delay: 100ms; }
.sm-stagger > *:nth-child(4) { animation-delay: 150ms; }
.sm-stagger > *:nth-child(5) { animation-delay: 200ms; }
.sm-stagger > *:nth-child(6) { animation-delay: 250ms; }
.sm-stagger > *:nth-child(7) { animation-delay: 300ms; }
.sm-stagger > *:nth-child(8) { animation-delay: 350ms; }

/* Premium badge styling */
.sm-badge-premium {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #78350f;
    font-weight: 600;
}

/* Status dot indicator */
.sm-status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.sm-status-dot-success { background: var(--sm-success); }
.sm-status-dot-warning { background: var(--sm-warning); }
.sm-status-dot-danger { background: var(--sm-danger); }
.sm-status-dot-info { background: var(--sm-info); }
.sm-status-dot-neutral { background: var(--sm-gray-400); }

/* Animated status dot */
.sm-status-dot-pulse {
    position: relative;
}

.sm-status-dot-pulse::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: inherit;
    opacity: 0;
    animation: sm-statusPulse 2s ease-out infinite;
}

@keyframes sm-statusPulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sm-status-dot-pulse::after {
        animation: none;
    }
}

/* ==========================================================================
   29. Modal System
   ========================================================================== */
.sm-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: var(--sm-z-modal-backdrop);
    animation: sm-fadeIn 0.2s ease-out;
}

.sm-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: var(--sm-radius-xl);
    box-shadow: var(--sm-shadow-xl);
    z-index: var(--sm-z-modal);
    width: calc(100% - 2rem);
    max-width: 560px;
    max-height: calc(100vh - 4rem);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: sm-scaleIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sm-modal.sm-modal-sm {
    max-width: 400px;
}

.sm-modal.sm-modal-lg {
    max-width: 720px;
}

.sm-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--sm-gray-100);
    background: var(--sm-gray-50);
}

.sm-modal-title {
    font-size: var(--sm-text-lg);
    font-weight: 600;
    color: var(--sm-gray-900);
    margin: 0;
}

.sm-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--sm-gray-400);
    border-radius: var(--sm-radius);
    cursor: pointer;
    transition: all var(--sm-transition-fast);
}

.sm-modal-close:hover {
    background: var(--sm-gray-100);
    color: var(--sm-gray-600);
}

.sm-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.sm-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--sm-gray-100);
    background: var(--sm-gray-50);
}

@keyframes sm-scaleIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes sm-fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Form Row for Modal */
.sm-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

/* Button Group */
.sm-btn-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.sm-btn-group .sm-btn {
    flex: 1;
    min-width: 80px;
}

.sm-btn-group .sm-btn.active {
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Outline buttons */
.sm-btn-outline-primary {
    background: transparent;
    color: var(--sm-primary-600);
    border: 1px solid var(--sm-primary-600);
}

.sm-btn-outline-primary:hover {
    background: var(--sm-primary-50);
}

.sm-btn-outline-success {
    background: transparent;
    color: var(--sm-success);
    border: 1px solid var(--sm-success);
}

.sm-btn-outline-success:hover {
    background: var(--sm-success-light);
}

/* ==========================================================================
   30. Resolution Styles
   ========================================================================== */
/* Resolution List on Details Page */
.sm-resolution-list {
    display: flex;
    flex-direction: column;
}

.sm-resolution-item {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--sm-gray-100);
}

.sm-resolution-item:last-child {
    border-bottom: none;
}

.sm-resolution-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.sm-resolution-title {
    font-weight: 500;
    color: var(--sm-gray-700);
    flex: 1;
}

.sm-resolution-text {
    font-size: var(--sm-text-base);
    color: var(--sm-gray-800);
    line-height: 1.6;
    padding: 0.75rem 1rem;
    background: var(--sm-gray-50);
    border-radius: var(--sm-radius);
    border-left: 3px solid var(--sm-primary-500);
    margin-bottom: 0.75rem;
}

.sm-resolution-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: var(--sm-text-sm);
    color: var(--sm-gray-500);
}

.sm-resolution-meta-item strong {
    color: var(--sm-gray-700);
    font-weight: 500;
}

/* Presentation Mode Resolution Styles */
.sm-presentation-resolution {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--sm-radius-lg);
}

.sm-presentation-resolution-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--sm-success-dark);
    margin-bottom: 0.75rem;
}

.sm-presentation-resolution-text {
    font-size: var(--sm-text-lg);
    color: var(--sm-gray-800);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.sm-presentation-resolution-details {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: var(--sm-text-sm);
    color: var(--sm-gray-600);
}

.sm-presentation-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--sm-gray-200);
}

/* Resolution Flag on Cards */
.sm-presentation-card-flag-resolution {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--sm-success-light);
    color: var(--sm-success-dark);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.15rem 0.4rem;
    border-radius: var(--sm-radius-sm);
}

/* Padding utility */
.sm-p-0 { padding: 0; }

/* Margin right utility */
.sm-mr-2 { margin-right: 0.5rem; }

/* ==========================================================================
   31. Mobile Responsiveness & Touch Enhancements
   ========================================================================== */

/* Skip Link for Accessibility */
.sm-skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--sm-primary-600);
    color: white;
    padding: 0.75rem 1.5rem;
    z-index: calc(var(--sm-z-toast) + 10);
    border-radius: 0 0 var(--sm-radius) 0;
    font-weight: 500;
    text-decoration: none;
    transition: top var(--sm-transition-fast);
}

.sm-skip-link:focus {
    top: 0;
    outline: none;
}

/* Focus Visible Improvements */
.sm-btn:focus-visible,
.sm-nav-item:focus-visible,
.sm-form-input:focus-visible,
.sm-form-select:focus-visible,
.sm-form-textarea:focus-visible,
.sm-table-link:focus-visible {
    outline: 2px solid var(--sm-primary-500);
    outline-offset: 2px;
}

/* Touch-Friendly Form Elements on Mobile */
@media (max-width: 767.98px) {
    .sm-btn {
        min-height: 44px;
        padding: 0.75rem 1rem;
    }

    .sm-btn-sm {
        min-height: 40px;
        padding: 0.625rem 0.875rem;
    }

    .sm-btn-icon {
        min-width: 44px;
        min-height: 44px;
    }

    .sm-form-input,
    .sm-form-select,
    .sm-form-textarea {
        min-height: 44px;
        padding: 0.75rem 1rem;
        font-size: 16px; /* Prevents iOS zoom on focus */
    }

    .sm-nav-item {
        min-height: 48px;
        padding: 0.875rem 1.5rem;
    }

    .sm-page-title {
        font-size: 1.5rem;
    }

    body {
        font-size: 15px;
    }

    /* Mobile Header Adjustments */
    .sm-header {
        padding: 0 1rem;
    }

    .sm-header-right {
        gap: 0.5rem;
    }

    .sm-header-action {
        width: 36px;
        height: 36px;
    }

    /* Mobile Page Content */
    .sm-page-content {
        padding: 1rem;
    }

    /* Mobile Card Body */
    .sm-card-body {
        padding: 1rem;
    }

    .sm-card-header {
        padding: 0.875rem 1rem;
    }

    /* User Menu Simplified */
    .sm-user-menu {
        padding: 0.25rem 0.5rem 0.25rem 0.25rem;
    }

    .sm-user-avatar {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
}

/* Responsive Table with Horizontal Scroll */
.sm-table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -1rem;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .sm-table-responsive {
        margin: 0;
        padding: 0;
    }
}

@media (max-width: 767.98px) {
    .sm-table-responsive .sm-table {
        min-width: 600px;
    }
}

/* Card View for Mobile Tables */
.sm-table-card-mobile {
    display: block;
}

@media (max-width: 767.98px) {
    .sm-table-card-mobile thead {
        display: none;
    }

    .sm-table-card-mobile tbody {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .sm-table-card-mobile tbody tr {
        display: block;
        padding: 1rem;
        border: 1px solid var(--sm-gray-200);
        border-radius: var(--sm-radius-lg);
        background: white;
        box-shadow: var(--sm-shadow-sm);
    }

    .sm-table-card-mobile tbody tr:hover {
        background: white;
        box-shadow: var(--sm-shadow);
    }

    .sm-table-card-mobile tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
        border-bottom: 1px solid var(--sm-gray-100);
    }

    .sm-table-card-mobile tbody td:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .sm-table-card-mobile tbody td:first-child {
        padding-top: 0;
    }

    .sm-table-card-mobile tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--sm-gray-600);
        font-size: var(--sm-text-sm);
        flex-shrink: 0;
        margin-right: 1rem;
    }

    .sm-table-card-mobile tbody td.sm-table-actions {
        justify-content: flex-end;
        padding-top: 0.75rem;
    }

    .sm-table-card-mobile tbody td.sm-table-actions::before {
        display: none;
    }
}

/* Dashboard Mobile Improvements */
@media (max-width: 767.98px) {
    .sm-dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .sm-stat-card {
        padding: 1rem;
    }

    .sm-stat-icon {
        width: 40px;
        height: 40px;
    }

    .sm-stat-value {
        font-size: var(--sm-text-xl);
    }
}

/* Spacing Utility Classes */
.sm-space-y-1 > * + * { margin-top: 0.25rem; }
.sm-space-y-2 > * + * { margin-top: 0.5rem; }
.sm-space-y-3 > * + * { margin-top: 1rem; }
.sm-space-y-4 > * + * { margin-top: 1.5rem; }
.sm-space-y-5 > * + * { margin-top: 2rem; }

.sm-space-x-1 > * + * { margin-left: 0.25rem; }
.sm-space-x-2 > * + * { margin-left: 0.5rem; }
.sm-space-x-3 > * + * { margin-left: 1rem; }
.sm-space-x-4 > * + * { margin-left: 1.5rem; }

/* Flex Layout Utilities */
.sm-stack {
    display: flex;
    flex-direction: column;
}

.sm-cluster {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.sm-inline-cluster {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

/* Loading Skeleton Improvements */
.sm-skeleton-title {
    height: 1.5rem;
    width: 60%;
    border-radius: var(--sm-radius);
}

.sm-skeleton-card {
    height: 120px;
    border-radius: var(--sm-radius-lg);
}

.sm-skeleton-row {
    height: 3rem;
    margin-bottom: 0.5rem;
    border-radius: var(--sm-radius);
}

.sm-skeleton-row:last-child {
    margin-bottom: 0;
}

/* Bottom Navigation for Mobile (Optional) */
.sm-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--sm-gray-200);
    display: none;
    padding: 0.5rem 0.75rem;
    padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0));
    z-index: var(--sm-z-fixed);
    box-shadow: var(--sm-shadow-lg);
}

@media (max-width: 767.98px) {
    .sm-bottom-nav.sm-bottom-nav-active {
        display: flex;
        justify-content: space-around;
    }

    /* Add bottom padding to main content when bottom nav is active */
    body.has-bottom-nav .sm-page-content {
        padding-bottom: calc(4rem + env(safe-area-inset-bottom, 0));
    }
}

.sm-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    color: var(--sm-gray-500);
    text-decoration: none;
    font-size: var(--sm-text-xs);
    transition: color var(--sm-transition-fast);
    min-width: 56px;
}

.sm-bottom-nav-item:hover,
.sm-bottom-nav-item.active {
    color: var(--sm-primary-600);
}

.sm-bottom-nav-item svg {
    width: 24px;
    height: 24px;
}

.sm-bottom-nav-item.active svg {
    stroke-width: 2.5;
}

/* Enhanced Print Styles */
@media print {
    .sm-sidebar,
    .sm-header,
    .sm-footer,
    .sm-btn:not(.sm-btn-print),
    .sm-page-actions,
    .sm-sidebar-overlay,
    .sm-toast-container,
    .sm-modal-backdrop,
    .sm-bottom-nav,
    .sm-no-print {
        display: none !important;
    }

    .sm-main-content {
        margin: 0 !important;
    }

    .sm-page-content {
        padding: 0 !important;
    }

    .sm-card {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ddd;
    }

    .sm-table {
        font-size: 10pt;
    }

    .sm-table th,
    .sm-table td {
        padding: 0.5rem;
    }

    body {
        background: white !important;
        font-size: 11pt;
    }

    a[href]:after {
        content: none !important;
    }

    .sm-badge {
        border: 1px solid currentColor;
    }

    /* Print page title */
    .sm-print-header {
        display: block !important;
        text-align: center;
        margin-bottom: 1rem;
        padding-bottom: 1rem;
        border-bottom: 2px solid #000;
    }
}

/* Collapsible Sections for Mobile */
.sm-collapsible {
    border: 1px solid var(--sm-gray-200);
    border-radius: var(--sm-radius-lg);
    overflow: hidden;
}

.sm-collapsible + .sm-collapsible {
    margin-top: 0.75rem;
}

.sm-collapsible-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: var(--sm-gray-50);
    border: none;
    font: inherit;
    font-weight: 500;
    color: var(--sm-gray-800);
    cursor: pointer;
    transition: background-color var(--sm-transition-fast);
}

.sm-collapsible-trigger:hover {
    background: var(--sm-gray-100);
}

.sm-collapsible-trigger svg {
    width: 20px;
    height: 20px;
    color: var(--sm-gray-400);
    transition: transform var(--sm-transition-fast);
}

.sm-collapsible.open .sm-collapsible-trigger svg {
    transform: rotate(180deg);
}

.sm-collapsible-content {
    display: none;
    padding: 1rem 1.25rem;
    background: white;
}

.sm-collapsible.open .sm-collapsible-content {
    display: block;
}

/* Calendar Mobile View */
@media (max-width: 767.98px) {
    .sm-calendar {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .sm-calendar-grid {
        min-width: 320px;
    }

    .sm-calendar-day {
        padding: 0.5rem;
        min-height: 60px;
        font-size: var(--sm-text-xs);
    }

    .sm-calendar-event {
        padding: 0.25rem 0.375rem;
        font-size: 0.65rem;
    }
}

/* Action Items Mobile Card View */
@media (max-width: 767.98px) {
    .sm-action-card {
        padding: 1rem;
        border-left: 3px solid transparent;
    }

    .sm-action-card.sm-action-overdue {
        border-left-color: var(--sm-danger);
    }

    .sm-action-card.sm-action-due-soon {
        border-left-color: var(--sm-warning);
    }

    .sm-action-card.sm-action-completed {
        opacity: 0.7;
    }
}

/* Mobile Swipe Hint */
.sm-swipe-hint {
    display: none;
    font-size: var(--sm-text-xs);
    color: var(--sm-gray-400);
    text-align: center;
    padding: 0.5rem;
}

@media (max-width: 767.98px) {
    .sm-swipe-hint {
        display: block;
    }
}

/* Touch Scroll Container */
.sm-touch-scroll {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scrollbar-width: thin;
}

.sm-touch-scroll::-webkit-scrollbar {
    height: 4px;
}

.sm-touch-scroll::-webkit-scrollbar-track {
    background: var(--sm-gray-100);
    border-radius: 2px;
}

.sm-touch-scroll::-webkit-scrollbar-thumb {
    background: var(--sm-gray-300);
    border-radius: 2px;
}

/* Safe Area Support for iOS */
@supports (padding: max(0px)) {
    .sm-page-content {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }

    @media (min-width: 768px) {
        .sm-page-content {
            padding-left: max(2rem, env(safe-area-inset-left));
            padding-right: max(2rem, env(safe-area-inset-right));
        }
    }

    .sm-sidebar {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* Horizontal Scroll Fade Indicators */
.sm-scroll-fade {
    position: relative;
}

.sm-scroll-fade::before,
.sm-scroll-fade::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 24px;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity var(--sm-transition-fast);
}

.sm-scroll-fade::before {
    left: 0;
    background: linear-gradient(to right, white, transparent);
}

.sm-scroll-fade::after {
    right: 0;
    background: linear-gradient(to left, white, transparent);
}

.sm-scroll-fade.can-scroll-left::before {
    opacity: 1;
}

.sm-scroll-fade.can-scroll-right::after {
    opacity: 1;
}

/* Mobile-specific Alert Styles */
@media (max-width: 767.98px) {
    .sm-alert {
        padding: 0.875rem;
        font-size: var(--sm-text-sm);
    }

    .sm-alert-icon {
        width: 18px;
        height: 18px;
    }
}

/* Meeting Details Mobile Layout */
@media (max-width: 991.98px) {
    .sm-lg-grid-cols-sidebar {
        grid-template-columns: 1fr;
    }

    .sm-meeting-sidebar {
        order: -1;
        margin-bottom: 1.5rem;
    }
}

/* Form Actions Mobile */
@media (max-width: 767.98px) {
    .sm-form-actions {
        flex-direction: column;
    }

    .sm-form-actions .sm-btn {
        width: 100%;
    }
}

/* Modal Mobile Fullscreen */
@media (max-width: 575.98px) {
    .sm-modal-backdrop {
        padding: 0;
    }

    .sm-modal {
        width: 100%;
        max-width: 100%;
        max-height: 100%;
        border-radius: 0;
    }

    .sm-modal.sm-modal-sm,
    .sm-modal.sm-modal-md,
    .sm-modal.sm-modal-lg {
        max-width: 100%;
    }
}

/* Pull to Refresh Indicator (Placeholder for JS) */
.sm-pull-refresh {
    position: relative;
}

.sm-pull-refresh-indicator {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--sm-transition-fast), transform var(--sm-transition-fast);
}

.sm-pull-refresh.pulling .sm-pull-refresh-indicator {
    opacity: 1;
    transform: translateX(-50%) translateY(60px);
}

/* Landscape Mobile Adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .sm-header {
        height: 48px;
    }

    .sm-page-content {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .sm-modal {
        max-height: 100vh;
    }

    .sm-modal-body {
        max-height: calc(100vh - 120px);
    }
}

/* Reduced Motion - Enhanced */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .sm-btn {
        border-width: 2px;
    }

    .sm-card {
        border-width: 2px;
    }

    .sm-form-input,
    .sm-form-select,
    .sm-form-textarea {
        border-width: 2px;
    }

    .sm-badge {
        border: 1px solid currentColor;
    }
}

/* Dark Mode Preparation (Variables Only) */
@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: light dark;
    }
}

/* Viewport Width Utilities */
.sm-w-screen { width: 100vw; }
.sm-min-w-screen { min-width: 100vw; }
.sm-max-w-full { max-width: 100%; }

/* Overflow Utilities */
.sm-overflow-hidden { overflow: hidden; }
.sm-overflow-auto { overflow: auto; }
.sm-overflow-x-auto { overflow-x: auto; }
.sm-overflow-y-auto { overflow-y: auto; }

/* Position Utilities */
.sm-relative { position: relative; }
.sm-absolute { position: absolute; }
.sm-fixed { position: fixed; }
.sm-sticky { position: sticky; }

/* Inset Utilities */
.sm-inset-0 { inset: 0; }
.sm-top-0 { top: 0; }
.sm-right-0 { right: 0; }
.sm-bottom-0 { bottom: 0; }
.sm-left-0 { left: 0; }

/* Z-Index Utilities */
.sm-z-10 { z-index: 10; }
.sm-z-20 { z-index: 20; }
.sm-z-30 { z-index: 30; }
.sm-z-40 { z-index: 40; }
.sm-z-50 { z-index: 50; }

/* Width Utilities */
.sm-w-full { width: 100%; }
.sm-w-auto { width: auto; }

/* Height Utilities */
.sm-h-full { height: 100%; }
.sm-h-screen { height: 100vh; }
.sm-min-h-screen { min-height: 100vh; }

/* Flex Utilities Extended */
.sm-flex-1 { flex: 1; }
.sm-flex-none { flex: none; }
.sm-flex-shrink-0 { flex-shrink: 0; }
.sm-flex-grow { flex-grow: 1; }

/* Truncate Multiline */
.sm-line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sm-line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sm-line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Whitespace Utilities */
.sm-whitespace-nowrap { white-space: nowrap; }
.sm-whitespace-normal { white-space: normal; }
.sm-whitespace-pre-wrap { white-space: pre-wrap; }

/* Border Utilities */
.sm-border { border: 1px solid var(--sm-gray-200); }
.sm-border-0 { border: 0; }
.sm-border-t { border-top: 1px solid var(--sm-gray-200); }
.sm-border-b { border-bottom: 1px solid var(--sm-gray-200); }
.sm-border-l { border-left: 1px solid var(--sm-gray-200); }
.sm-border-r { border-right: 1px solid var(--sm-gray-200); }

/* Border Radius Utilities */
.sm-rounded { border-radius: var(--sm-radius); }
.sm-rounded-lg { border-radius: var(--sm-radius-lg); }
.sm-rounded-xl { border-radius: var(--sm-radius-xl); }
.sm-rounded-full { border-radius: var(--sm-radius-full); }
.sm-rounded-none { border-radius: 0; }

/* Shadow Utilities */
.sm-shadow { box-shadow: var(--sm-shadow); }
.sm-shadow-sm { box-shadow: var(--sm-shadow-sm); }
.sm-shadow-md { box-shadow: var(--sm-shadow-md); }
.sm-shadow-lg { box-shadow: var(--sm-shadow-lg); }
.sm-shadow-none { box-shadow: none; }

/* Background Utilities */
.sm-bg-white { background-color: white; }
.sm-bg-gray-50 { background-color: var(--sm-gray-50); }
.sm-bg-gray-100 { background-color: var(--sm-gray-100); }
.sm-bg-transparent { background-color: transparent; }

/* Cursor Utilities */
.sm-cursor-pointer { cursor: pointer; }
.sm-cursor-default { cursor: default; }
.sm-cursor-not-allowed { cursor: not-allowed; }

/* Pointer Events */
.sm-pointer-events-none { pointer-events: none; }
.sm-pointer-events-auto { pointer-events: auto; }

/* Select None */
.sm-select-none { user-select: none; }
.sm-select-auto { user-select: auto; }

/* Visibility Responsive */
@media (max-width: 575.98px) {
    .sm-hide-xs { display: none !important; }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .sm-hide-sm { display: none !important; }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .sm-hide-md { display: none !important; }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .sm-hide-lg { display: none !important; }
}

@media (min-width: 1200px) {
    .sm-hide-xl { display: none !important; }
}

/* Show utilities */
@media (max-width: 575.98px) {
    .sm-show-xs { display: block !important; }
    .sm-show-xs-flex { display: flex !important; }
}

@media (min-width: 576px) {
    .sm-show-xs,
    .sm-show-xs-flex {
        display: none !important;
    }
}

/* Accessibility - Screen Reader Only */
.sm-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sm-sr-only-focusable:focus,
.sm-sr-only-focusable:active {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* ==========================================================================
   32. Calendar Component
   ========================================================================== */

/* Calendar Container */
.sm-calendar {
    background: white;
    border-radius: var(--sm-radius-lg);
    overflow: hidden;
}

/* Calendar Header */
.sm-calendar-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--sm-gray-50);
    border-bottom: 1px solid var(--sm-gray-200);
}

@media (min-width: 768px) {
    .sm-calendar-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 1.25rem 1.5rem;
    }
}

/* Calendar Navigation */
.sm-calendar-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sm-calendar-month-title {
    font-size: var(--sm-text-xl);
    font-weight: 600;
    color: var(--sm-gray-900);
    margin: 0;
    min-width: 180px;
    text-align: center;
}

/* Calendar Controls */
.sm-calendar-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.sm-calendar-filter-form {
    display: flex;
    align-items: center;
}

.sm-calendar-filter-select {
    min-width: 180px;
    font-size: var(--sm-text-sm);
    padding: 0.5rem 2.25rem 0.5rem 0.75rem;
}

/* Calendar Grid */
.sm-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

/* Day Headers */
.sm-calendar-day-header {
    padding: 0.75rem 0.5rem;
    font-size: var(--sm-text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--sm-gray-500);
    text-align: center;
    background: var(--sm-gray-50);
    border-bottom: 1px solid var(--sm-gray-200);
}

.sm-calendar-weekend-header {
    color: var(--sm-gray-400);
}

/* Calendar Day Cell */
.sm-calendar-day {
    min-height: 100px;
    padding: 0.5rem;
    border-right: 1px solid var(--sm-gray-100);
    border-bottom: 1px solid var(--sm-gray-100);
    background: white;
    transition: background-color var(--sm-transition-fast);
    cursor: default;
    position: relative;
}

.sm-calendar-day:nth-child(7n) {
    border-right: none;
}

.sm-calendar-day:hover {
    background: var(--sm-gray-50);
}

/* Other month days */
.sm-calendar-day-other-month {
    background: var(--sm-gray-50);
}

.sm-calendar-day-other-month .sm-calendar-day-number {
    color: var(--sm-gray-400);
}

.sm-calendar-day-other-month:hover {
    background: var(--sm-gray-100);
}

/* Today */
.sm-calendar-day-today {
    background: var(--sm-primary-50);
}

.sm-calendar-day-today .sm-calendar-day-number {
    color: var(--sm-primary-700);
    font-weight: 700;
    background: var(--sm-primary-100);
    border-radius: var(--sm-radius-full);
    padding: 0.125rem 0.5rem;
}

.sm-calendar-day-today:hover {
    background: var(--sm-primary-100);
}

/* Weekend days */
.sm-calendar-day-weekend {
    background: var(--sm-gray-50);
}

.sm-calendar-day-weekend.sm-calendar-day-today {
    background: var(--sm-primary-50);
}

/* Day with events */
.sm-calendar-day-has-events {
    cursor: pointer;
}

/* Day Number */
.sm-calendar-day-number {
    font-size: var(--sm-text-sm);
    font-weight: 500;
    color: var(--sm-gray-700);
    margin-bottom: 0.25rem;
    display: inline-block;
}

/* Calendar Events Container */
.sm-calendar-events {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 0.25rem;
}

@media (min-width: 768px) {
    .sm-calendar-events {
        display: flex;
    }
}

/* Individual Event */
.sm-calendar-event {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.375rem;
    font-size: var(--sm-text-xs);
    border-radius: var(--sm-radius-sm);
    text-decoration: none;
    transition: all var(--sm-transition-fast);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.sm-calendar-event:hover {
    transform: translateX(2px);
}

.sm-calendar-event-time {
    font-weight: 600;
    flex-shrink: 0;
}

.sm-calendar-event-title {
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Event colour variants */
.sm-calendar-event-primary {
    background: var(--sm-primary-100);
    color: var(--sm-primary-700);
    border-left: 3px solid var(--sm-primary-500);
}

.sm-calendar-event-primary:hover {
    background: var(--sm-primary-200);
}

.sm-calendar-event-secondary {
    background: var(--sm-gray-100);
    color: var(--sm-gray-700);
    border-left: 3px solid var(--sm-gray-400);
}

.sm-calendar-event-secondary:hover {
    background: var(--sm-gray-200);
}

.sm-calendar-event-success {
    background: var(--sm-success-light);
    color: var(--sm-success-dark);
    border-left: 3px solid var(--sm-success);
}

.sm-calendar-event-success:hover {
    background: #a7f3d0;
}

.sm-calendar-event-warning {
    background: var(--sm-warning-light);
    color: var(--sm-warning-dark);
    border-left: 3px solid var(--sm-warning);
}

.sm-calendar-event-warning:hover {
    background: #fde68a;
}

.sm-calendar-event-danger {
    background: var(--sm-danger-light);
    color: var(--sm-danger-dark);
    border-left: 3px solid var(--sm-danger);
}

.sm-calendar-event-danger:hover {
    background: #fecaca;
}

.sm-calendar-event-info {
    background: var(--sm-info-light);
    color: var(--sm-info-dark);
    border-left: 3px solid var(--sm-info);
}

.sm-calendar-event-info:hover {
    background: #a5f3fc;
}

/* More events button */
.sm-calendar-more-events {
    background: transparent;
    border: none;
    padding: 0.125rem 0.375rem;
    font-size: var(--sm-text-xs);
    font-weight: 500;
    color: var(--sm-primary-600);
    cursor: pointer;
    text-align: left;
    transition: color var(--sm-transition-fast);
}

.sm-calendar-more-events:hover {
    color: var(--sm-primary-700);
    text-decoration: underline;
}

/* Event Dots (Mobile) */
.sm-calendar-event-dots {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}

@media (min-width: 768px) {
    .sm-calendar-event-dots {
        display: none;
    }
}

.sm-calendar-event-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.sm-calendar-event-dot-primary {
    background: var(--sm-primary-500);
}

.sm-calendar-event-dot-secondary {
    background: var(--sm-gray-400);
}

.sm-calendar-event-dot-success {
    background: var(--sm-success);
}

.sm-calendar-event-dot-warning {
    background: var(--sm-warning);
}

.sm-calendar-event-dot-danger {
    background: var(--sm-danger);
}

.sm-calendar-event-dot-info {
    background: var(--sm-info);
}

.sm-calendar-event-dot-more {
    background: var(--sm-gray-300);
    width: auto;
    padding: 0 0.25rem;
    border-radius: var(--sm-radius-sm);
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--sm-gray-600);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 8px;
}

/* Calendar Legend */
.sm-calendar-legend-title {
    font-size: var(--sm-text-sm);
    font-weight: 600;
    color: var(--sm-gray-700);
    margin-bottom: 0.75rem;
}

.sm-calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
}

.sm-calendar-legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--sm-text-sm);
    color: var(--sm-gray-600);
}

.sm-calendar-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Modal Events List */
.sm-calendar-modal-events {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sm-calendar-modal-event {
    display: block;
    padding: 0.875rem;
    background: var(--sm-gray-50);
    border: 1px solid var(--sm-gray-200);
    border-radius: var(--sm-radius-md);
    text-decoration: none;
    transition: all var(--sm-transition-fast);
}

.sm-calendar-modal-event:hover {
    background: var(--sm-gray-100);
    border-color: var(--sm-gray-300);
    transform: translateX(4px);
}

.sm-calendar-modal-event-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.sm-calendar-modal-event-time {
    font-size: var(--sm-text-sm);
    font-weight: 600;
    color: var(--sm-gray-700);
}

.sm-calendar-modal-event-title {
    font-size: var(--sm-text-base);
    font-weight: 600;
    color: var(--sm-gray-900);
    margin-bottom: 0.25rem;
}

.sm-calendar-modal-event-details {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    font-size: var(--sm-text-sm);
    color: var(--sm-gray-500);
}

.sm-calendar-modal-event-council {
    font-weight: 500;
}

.sm-calendar-modal-event-venue {
    color: var(--sm-gray-400);
}

/* Calendar Responsive Adjustments */
@media (max-width: 767.98px) {
    .sm-calendar-day {
        min-height: 60px;
        padding: 0.375rem;
    }

    .sm-calendar-day-number {
        font-size: var(--sm-text-xs);
    }

    .sm-calendar-month-title {
        font-size: var(--sm-text-lg);
        min-width: 140px;
    }
}

@media (max-width: 479.98px) {
    .sm-calendar-day {
        min-height: 50px;
        padding: 0.25rem;
    }

    .sm-calendar-day-header {
        padding: 0.5rem 0.25rem;
        font-size: 0.65rem;
    }
}

/* Margin top utility */
.sm-mt-4 { margin-top: 1rem; }

/* ==========================================================================
   Council Dashboard Components
   ========================================================================== */

/* Clickable Stat Cards */
.sm-stat-card-clickable {
    display: flex;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.sm-stat-card-clickable:hover {
    transform: translateY(-2px);
    box-shadow: var(--sm-shadow-lg);
}

.sm-stat-card-alert {
    border-color: var(--sm-danger-light);
    background: linear-gradient(to bottom right, white, var(--sm-danger-light));
}

.sm-stat-icon.danger {
    background: var(--sm-danger-light);
    color: var(--sm-danger);
}

/* Dashboard Cards Layout */
.sm-dashboard-cards {
    align-items: stretch;
}

.sm-dashboard-cards > div {
    display: flex;
    flex-direction: column;
}

.sm-card-flex {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sm-card-flex .sm-council-list,
.sm-card-flex .sm-activity-feed {
    flex: 1;
    min-height: 0;
}

/* Council List (Dashboard) */
.sm-council-list {
    display: flex;
    flex-direction: column;
    max-height: 450px;
    overflow-y: auto;
}

.sm-council-list-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--sm-gray-100);
    text-decoration: none;
    color: inherit;
    transition: var(--sm-transition-fast);
}

.sm-council-list-item:last-child {
    border-bottom: none;
}

.sm-council-list-item:hover {
    background: var(--sm-gray-50);
}

.sm-council-list-main {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.sm-council-logo {
    width: 48px;
    height: 48px;
    border-radius: var(--sm-radius-md);
    background: linear-gradient(135deg, var(--sm-primary-500) 0%, var(--sm-primary-600) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    overflow: hidden;
}

.sm-council-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sm-council-info {
    flex: 1;
    min-width: 0;
}

.sm-council-name {
    font-weight: 600;
    color: var(--sm-gray-900);
    margin-bottom: 0.25rem;
}

.sm-council-meta {
    font-size: var(--sm-text-sm);
    color: var(--sm-gray-500);
}

.sm-council-meta-separator {
    margin: 0 0.5rem;
    color: var(--sm-gray-300);
}

.sm-council-stats {
    display: flex;
    gap: 1.5rem;
}

.sm-council-stat {
    text-align: center;
}

.sm-council-stat-value {
    font-size: var(--sm-text-lg);
    font-weight: 700;
    color: var(--sm-gray-900);
    display: block;
}

.sm-council-stat-label {
    font-size: var(--sm-text-xs);
    color: var(--sm-gray-500);
}

.sm-council-stat-alert .sm-council-stat-value {
    color: var(--sm-danger);
}

.sm-council-arrow {
    color: var(--sm-gray-400);
    flex-shrink: 0;
}

.sm-council-list-item:hover .sm-council-arrow {
    color: var(--sm-primary-600);
}

@media (max-width: 767.98px) {
    .sm-council-list-item {
        flex-wrap: wrap;
    }

    .sm-council-stats {
        width: 100%;
        justify-content: space-around;
        padding-top: 1rem;
        margin-top: 0.5rem;
        border-top: 1px solid var(--sm-gray-100);
    }

    .sm-council-arrow {
        display: none;
    }
}

/* Activity Feed */
.sm-activity-feed {
    display: flex;
    flex-direction: column;
    max-height: 450px;
    overflow-y: auto;
}

/* Scrollbar Styling for Dashboard Lists */
.sm-council-list::-webkit-scrollbar,
.sm-activity-feed::-webkit-scrollbar {
    width: 6px;
}

.sm-council-list::-webkit-scrollbar-track,
.sm-activity-feed::-webkit-scrollbar-track {
    background: var(--sm-gray-100);
    border-radius: 3px;
}

.sm-council-list::-webkit-scrollbar-thumb,
.sm-activity-feed::-webkit-scrollbar-thumb {
    background: var(--sm-gray-300);
    border-radius: 3px;
}

.sm-council-list::-webkit-scrollbar-thumb:hover,
.sm-activity-feed::-webkit-scrollbar-thumb:hover {
    background: var(--sm-gray-400);
}

.sm-activity-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid var(--sm-gray-100);
}

.sm-activity-item:last-child {
    border-bottom: none;
}

.sm-activity-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--sm-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sm-activity-icon-primary {
    background: var(--sm-primary-50);
    color: var(--sm-primary-600);
}

.sm-activity-icon-success {
    background: var(--sm-success-light);
    color: var(--sm-success);
}

.sm-activity-icon-warning {
    background: var(--sm-warning-light);
    color: var(--sm-warning);
}

.sm-activity-icon-danger {
    background: var(--sm-danger-light);
    color: var(--sm-danger);
}

.sm-activity-icon-info {
    background: var(--sm-info-light);
    color: var(--sm-info);
}

.sm-activity-content {
    flex: 1;
    min-width: 0;
}

.sm-activity-description {
    font-size: var(--sm-text-sm);
    color: var(--sm-gray-700);
    display: block;
    margin-bottom: 0.25rem;
}

a.sm-activity-description:hover {
    color: var(--sm-primary-600);
    text-decoration: underline;
}

.sm-activity-description-compact {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sm-activity-meta {
    font-size: var(--sm-text-xs);
    color: var(--sm-gray-400);
}

.sm-activity-meta-separator {
    margin: 0 0.375rem;
}

/* Council Dashboard Header */
.sm-council-header-logo {
    width: 56px;
    height: 56px;
    border-radius: var(--sm-radius-lg);
    background: linear-gradient(135deg, var(--sm-primary-500) 0%, var(--sm-primary-600) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    overflow: hidden;
    box-shadow: var(--sm-shadow-md);
}

.sm-council-header-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Featured Card */
.sm-card-featured {
    border-color: var(--sm-primary-200);
    box-shadow: var(--sm-shadow-md), 0 0 0 1px var(--sm-primary-100);
}

.sm-card-header-featured {
    background: linear-gradient(135deg, var(--sm-primary-50) 0%, white 100%);
}

/* Meeting Preview (Next Meeting Card) */
.sm-meeting-preview {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.sm-meeting-preview-date {
    width: 80px;
    padding: 1rem;
    background: linear-gradient(135deg, var(--sm-primary-500) 0%, var(--sm-primary-600) 100%);
    border-radius: var(--sm-radius-lg);
    text-align: center;
    color: white;
    flex-shrink: 0;
    box-shadow: var(--sm-shadow-primary);
}

.sm-meeting-preview-month {
    font-size: var(--sm-text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
}

.sm-meeting-preview-day {
    font-size: var(--sm-text-3xl);
    font-weight: 700;
    line-height: 1.1;
}

.sm-meeting-preview-weekday {
    font-size: var(--sm-text-sm);
    opacity: 0.8;
}

.sm-meeting-preview-details {
    flex: 1;
    min-width: 0;
}

.sm-meeting-preview-type {
    font-size: var(--sm-text-lg);
    font-weight: 600;
    color: var(--sm-gray-900);
    text-transform: capitalize;
    margin-bottom: 0.5rem;
}

.sm-meeting-preview-info {
    display: flex;
    gap: 1.5rem;
    color: var(--sm-gray-500);
    font-size: var(--sm-text-sm);
    margin-bottom: 0.75rem;
}

.sm-meeting-preview-info span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.sm-meeting-preview-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sm-meeting-preview-actions {
    flex-shrink: 0;
}

@media (max-width: 767.98px) {
    .sm-meeting-preview {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .sm-meeting-preview-date {
        width: 100%;
        display: flex;
        justify-content: center;
        gap: 1rem;
        padding: 1rem;
    }

    .sm-meeting-preview-day {
        font-size: var(--sm-text-2xl);
    }

    .sm-meeting-preview-info {
        justify-content: center;
        flex-wrap: wrap;
    }

    .sm-meeting-preview-status {
        justify-content: center;
    }

    .sm-meeting-preview-actions {
        text-align: center;
        margin-top: 0.5rem;
    }
}

/* Bar Chart */
.sm-bar-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.sm-bar-chart-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.sm-bar-chart-bar-container {
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.sm-bar-chart-bar {
    width: 100%;
    max-width: 48px;
    background: linear-gradient(180deg, var(--sm-primary-500) 0%, var(--sm-primary-600) 100%);
    border-radius: var(--sm-radius-sm) var(--sm-radius-sm) 0 0;
    min-height: 4px;
    position: relative;
    transition: var(--sm-transition);
}

.sm-bar-chart-bar:hover {
    background: linear-gradient(180deg, var(--sm-primary-400) 0%, var(--sm-primary-500) 100%);
}

.sm-bar-chart-value {
    position: absolute;
    top: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: var(--sm-text-xs);
    font-weight: 600;
    color: var(--sm-gray-600);
}

.sm-bar-chart-label {
    font-size: var(--sm-text-xs);
    color: var(--sm-gray-500);
    font-weight: 500;
}

/* Quick Actions Grid */
.sm-quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (max-width: 575.98px) {
    .sm-quick-actions {
        grid-template-columns: 1fr;
    }
}

.sm-quick-action {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--sm-gray-200);
    border-radius: var(--sm-radius-lg);
    text-decoration: none;
    color: inherit;
    transition: var(--sm-transition);
}

.sm-quick-action:hover {
    border-color: var(--sm-primary-200);
    background: var(--sm-gray-50);
    transform: translateY(-2px);
    box-shadow: var(--sm-shadow);
}

.sm-quick-action-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--sm-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sm-quick-action-icon-primary {
    background: var(--sm-primary-50);
    color: var(--sm-primary-600);
}

.sm-quick-action-icon-success {
    background: var(--sm-success-light);
    color: var(--sm-success);
}

.sm-quick-action-icon-warning {
    background: var(--sm-warning-light);
    color: var(--sm-warning);
}

.sm-quick-action-icon-info {
    background: var(--sm-info-light);
    color: var(--sm-info);
}

.sm-quick-action-text {
    flex: 1;
    min-width: 0;
}

.sm-quick-action-title {
    font-weight: 600;
    color: var(--sm-gray-900);
    display: block;
    margin-bottom: 0.125rem;
}

.sm-quick-action-desc {
    font-size: var(--sm-text-sm);
    color: var(--sm-gray-500);
    display: block;
}

/* Councillor Highlight */
.sm-councillor-highlight {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--sm-gray-50);
    border-radius: var(--sm-radius);
}

.sm-councillor-highlight-role {
    font-size: var(--sm-text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--sm-gray-500);
}

.sm-councillor-highlight-name {
    font-weight: 600;
    color: var(--sm-gray-900);
}

/* Stats List (Sidebar) */
.sm-stats-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sm-stats-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--sm-gray-100);
}

.sm-stats-list-item:last-child {
    border-bottom: none;
}

.sm-stats-list-label {
    font-size: var(--sm-text-sm);
    color: var(--sm-gray-600);
}

.sm-stats-list-value {
    font-weight: 600;
    color: var(--sm-gray-900);
}

/* Full width button */
.sm-btn-block {
    display: flex;
    width: 100%;
}

/* Utility classes for dashboard */
.sm-flex { display: flex; }
.sm-flex-wrap { flex-wrap: wrap; }
.sm-items-center { align-items: center; }
.sm-items-start { align-items: flex-start; }
.sm-justify-between { justify-content: space-between; }
.sm-gap-2 { gap: 0.5rem; }
.sm-gap-3 { gap: 0.75rem; }
.sm-gap-4 { gap: 1rem; }
.sm-gap-6 { gap: 1.5rem; }
.sm-mr-2 { margin-right: 0.5rem; }
.sm-ml-2 { margin-left: 0.5rem; }
.sm-mt-2 { margin-top: 0.5rem; }
.sm-mb-4 { margin-bottom: 1rem; }
.sm-mb-6 { margin-bottom: 1.5rem; }

/* Grid system */
.sm-grid { display: grid; }
.sm-grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.sm-grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (min-width: 768px) {
    .sm-md-grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sm-md-grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
    .sm-lg-grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sm-lg-grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .sm-lg-col-span-2 { grid-column: span 2 / span 2; }
    .sm-lg-grid-cols-sidebar { grid-template-columns: 280px 1fr; }
}

/* Typography utilities */
.sm-text-3xl { font-size: var(--sm-text-3xl); }
.sm-text-lg { font-size: var(--sm-text-lg); }
.sm-text-sm { font-size: var(--sm-text-sm); }
.sm-text-muted { color: var(--sm-gray-500); }
.sm-text-bold { font-weight: 600; }
.sm-text-success { color: var(--sm-success) !important; }
.sm-text-danger { color: var(--sm-danger) !important; }
.sm-text-warning { color: var(--sm-warning) !important; }
.sm-font-bold { font-weight: 700; }
.sm-font-semibold { font-weight: 600; }
.sm-text-right { text-align: right; }

/* ==========================================================================
   Form Validation Styles
   ========================================================================== */

/* Invalid field styles */
.sm-form-input.is-invalid,
.sm-form-input.sm-field-invalid,
.sm-input.is-invalid,
.sm-input.sm-field-invalid,
.sm-textarea.is-invalid,
.sm-textarea.sm-field-invalid,
.sm-select.is-invalid,
.sm-select.sm-field-invalid,
input.is-invalid,
input.sm-field-invalid,
select.is-invalid,
select.sm-field-invalid,
textarea.is-invalid,
textarea.sm-field-invalid {
    border-color: var(--sm-danger) !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.sm-form-input.is-invalid:focus,
.sm-form-input.sm-field-invalid:focus,
.sm-input.is-invalid:focus,
.sm-input.sm-field-invalid:focus {
    border-color: var(--sm-danger) !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}

/* Field error message */
.sm-form-error,
.field-validation-error,
.text-danger {
    display: block;
    color: var(--sm-danger);
    font-size: var(--sm-text-sm);
    margin-top: 0.375rem;
    line-height: 1.4;
}

/* Validation summary */
.sm-validation-summary,
.validation-summary-errors {
    background: var(--sm-danger-light);
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: var(--sm-radius-lg);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.sm-validation-summary-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--sm-danger-dark);
    margin-bottom: 0.75rem;
}

.sm-validation-summary-title svg {
    flex-shrink: 0;
}

.sm-validation-summary-list,
.validation-summary-errors ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin: 0;
    color: var(--sm-danger-dark);
    font-size: var(--sm-text-sm);
}

.sm-validation-summary-list li,
.validation-summary-errors ul li {
    margin-bottom: 0.25rem;
    line-height: 1.5;
}

.sm-validation-summary-list li:last-child,
.validation-summary-errors ul li:last-child {
    margin-bottom: 0;
}

/* Shake animation for invalid fields */
@keyframes sm-shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
    20%, 40%, 60%, 80% { transform: translateX(4px); }
}

.sm-shake {
    animation: sm-shake 0.4s ease-in-out;
}

/* ==========================================================================
   Error Page Styles
   ========================================================================== */

.sm-error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--sm-header-height) - 200px);
    padding: 2rem;
}

.sm-error-container {
    text-align: center;
    max-width: 500px;
    width: 100%;
}

.sm-error-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.sm-error-icon-danger {
    background: var(--sm-danger-light);
    color: var(--sm-danger);
}

.sm-error-icon-warning {
    background: var(--sm-warning-light);
    color: var(--sm-warning);
}

.sm-error-icon-info {
    background: var(--sm-info-light);
    color: var(--sm-info);
}

.sm-error-code {
    font-size: 4rem;
    font-weight: 700;
    color: var(--sm-gray-300);
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -0.05em;
}

.sm-error-title {
    font-size: var(--sm-text-2xl);
    font-weight: 600;
    color: var(--sm-gray-900);
    margin-bottom: 0.75rem;
}

.sm-error-description {
    font-size: var(--sm-text-base);
    color: var(--sm-gray-600);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.sm-error-reference {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--sm-gray-100);
    padding: 0.5rem 1rem;
    border-radius: var(--sm-radius);
    margin-bottom: 0.5rem;
}

.sm-error-reference-label {
    font-size: var(--sm-text-sm);
    color: var(--sm-gray-600);
}

.sm-error-reference-code {
    font-family: var(--sm-font-mono);
    font-size: var(--sm-text-sm);
    font-weight: 600;
    color: var(--sm-gray-800);
    background: white;
    padding: 0.125rem 0.5rem;
    border-radius: var(--sm-radius-sm);
}

.sm-error-reference-hint {
    font-size: var(--sm-text-sm);
    color: var(--sm-gray-500);
    margin-bottom: 1.5rem;
}

.sm-error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.sm-error-details {
    text-align: left;
    margin: 1.5rem 0;
    background: var(--sm-gray-900);
    border-radius: var(--sm-radius-lg);
    overflow: hidden;
}

.sm-error-details-summary {
    padding: 0.75rem 1rem;
    background: var(--sm-gray-800);
    color: var(--sm-gray-300);
    font-size: var(--sm-text-sm);
    font-weight: 500;
    cursor: pointer;
    user-select: none;
}

.sm-error-details-summary:hover {
    background: var(--sm-gray-700);
}

.sm-error-details-content {
    padding: 1rem;
    margin: 0;
    font-family: var(--sm-font-mono);
    font-size: var(--sm-text-xs);
    color: var(--sm-gray-300);
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 300px;
    overflow-y: auto;
}

.sm-error-support {
    padding-top: 1.5rem;
    border-top: 1px solid var(--sm-gray-200);
    color: var(--sm-gray-500);
    font-size: var(--sm-text-sm);
}

.sm-error-support-card {
    background: var(--sm-gray-50);
    border-radius: var(--sm-radius-lg);
    padding: 1.5rem;
    text-align: left;
}

.sm-error-support-card h3 {
    font-size: var(--sm-text-base);
    font-weight: 600;
    color: var(--sm-gray-800);
    margin-bottom: 0.5rem;
}

.sm-error-support-card p {
    color: var(--sm-gray-600);
    font-size: var(--sm-text-sm);
    margin-bottom: 1rem;
}

.sm-error-support-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.sm-error-support-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--sm-gray-600);
    font-size: var(--sm-text-sm);
}

.sm-error-support-option svg {
    color: var(--sm-gray-400);
}

/* Error page links grid */
.sm-error-links {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--sm-gray-200);
    text-align: left;
}

.sm-error-links-title {
    font-size: var(--sm-text-sm);
    font-weight: 600;
    color: var(--sm-gray-700);
    margin-bottom: 1rem;
}

.sm-error-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.sm-error-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--sm-gray-50);
    border-radius: var(--sm-radius);
    color: var(--sm-gray-700);
    font-size: var(--sm-text-sm);
    font-weight: 500;
    transition: all var(--sm-transition-fast);
    text-decoration: none;
}

.sm-error-link:hover {
    background: var(--sm-gray-100);
    color: var(--sm-primary-600);
}

.sm-error-link svg {
    color: var(--sm-gray-400);
    flex-shrink: 0;
}

.sm-error-link:hover svg {
    color: var(--sm-primary-500);
}

/* Access Denied specific styles */
.sm-error-info {
    text-align: left;
    background: var(--sm-gray-50);
    border-radius: var(--sm-radius-lg);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.sm-error-info-title {
    font-size: var(--sm-text-sm);
    font-weight: 600;
    color: var(--sm-gray-700);
    margin-bottom: 0.75rem;
}

.sm-error-info-list {
    margin: 0;
    padding: 0;
}

.sm-error-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: var(--sm-gray-600);
    font-size: var(--sm-text-sm);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.sm-error-info-list li:last-child {
    margin-bottom: 0;
}

.sm-error-info-list li svg {
    flex-shrink: 0;
    color: var(--sm-success);
    margin-top: 0.125rem;
}

.sm-error-user-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--sm-gray-100);
    border-radius: var(--sm-radius);
    font-size: var(--sm-text-sm);
}

.sm-error-user-label {
    color: var(--sm-gray-500);
}

.sm-error-user-name {
    color: var(--sm-gray-800);
    font-weight: 500;
}

/* Max width utilities for error pages */
.sm-max-w-lg {
    max-width: 32rem;
}

.sm-max-w-md {
    max-width: 28rem;
}

.sm-max-w-sm {
    max-width: 24rem;
}

/* Responsive adjustments for error pages */
@media (max-width: 640px) {
    .sm-error-code {
        font-size: 3rem;
    }

    .sm-error-title {
        font-size: var(--sm-text-xl);
    }

    .sm-error-links-grid {
        grid-template-columns: 1fr;
    }

    .sm-error-actions {
        flex-direction: column;
    }

    .sm-error-actions .sm-btn {
        width: 100%;
        justify-content: center;
    }
}
