/**
 * Syndicat Manager Pro - Public Styles
 * 
 * @package Syndicat_Manager
 * @since 0.1.0-beta
 */

/* ==========================================================================
   FULLSCREEN TAKEOVER - Hide WordPress Theme
   ========================================================================== */

/* When the app is present, take over the entire page */
body:has(#sm-app) {
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    height: 100vh !important;
    width: 100vw !important;
}

/* Hide ALL WordPress theme elements when our app is present */
body:has(#sm-app) > *:not(#sm-app):not(.sm-app):not(script):not(style):not(link):not(#wpadminbar) {
    display: none !important;
}

/* Also hide common WordPress containers */
body:has(#sm-app) header:not(.sm-header),
body:has(#sm-app) footer:not(.sm-footer),
body:has(#sm-app) nav:not(.sm-nav),
body:has(#sm-app) aside:not(.sm-sidebar),
body:has(#sm-app) .site-header,
body:has(#sm-app) .site-footer,
body:has(#sm-app) .site-navigation,
body:has(#sm-app) .site-branding,
body:has(#sm-app) .main-navigation,
body:has(#sm-app) .widget-area,
body:has(#sm-app) .sidebar,
body:has(#sm-app) .entry-header,
body:has(#sm-app) .entry-footer,
body:has(#sm-app) .post-navigation,
body:has(#sm-app) .comments-area,
body:has(#sm-app) #masthead,
body:has(#sm-app) #colophon,
body:has(#sm-app) #secondary,
body:has(#sm-app) .elementor-location-header,
body:has(#sm-app) .elementor-location-footer,
body:has(#sm-app) .hfeed,
body:has(#sm-app) .site-content > *:not(:has(#sm-app)),
body:has(#sm-app) .entry-content > *:not(#sm-app):not(:has(#sm-app)),
body:has(#sm-app) article > *:not(:has(#sm-app)):not(#sm-app),
body:has(#sm-app) .page-content > *:not(#sm-app):not(:has(#sm-app)) {
    display: none !important;
}

/* Make the app container take full screen */
body:has(#sm-app) .site,
body:has(#sm-app) .site-content,
body:has(#sm-app) .content-area,
body:has(#sm-app) main,
body:has(#sm-app) .entry-content,
body:has(#sm-app) article,
body:has(#sm-app) .page-content,
body:has(#sm-app) .elementor,
body:has(#sm-app) .elementor-section,
body:has(#sm-app) .elementor-container,
body:has(#sm-app) .elementor-column,
body:has(#sm-app) .elementor-widget-container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    height: 100vh !important;
    overflow: hidden !important;
}

/* Admin bar adjustment */
body.admin-bar:has(#sm-app) #sm-app {
    height: calc(100vh - 32px) !important;
    margin-top: 32px !important;
}

@media screen and (max-width: 782px) {
    body.admin-bar:has(#sm-app) #sm-app {
        height: calc(100vh - 46px) !important;
        margin-top: 46px !important;
    }
}

/* Fallback for browsers without :has() support */
.sm-fullscreen-mode {
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    height: 100vh !important;
}

/* Only hide elements when #sm-app exists (legacy mode) */
.sm-fullscreen-mode:not(.sm-fullscreen-app) > *:not(#sm-app):not(script):not(style):not(link):not(#wpadminbar) {
    display: none !important;
}

/* New fullscreen template - don't hide anything, it's a standalone page */
.sm-fullscreen-app {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    min-height: 100vh !important;
}

/* ==========================================================================
   CSS Variables (Defaults - overridden by union theme)
   ========================================================================== */
:root {
    /* Primary Colors */
    --sm-primary: #d32f2f;
    --sm-primary-light: #ff6659;
    --sm-primary-dark: #9a0007;
    --sm-secondary: #1976d2;
    --sm-secondary-light: #63a4ff;
    --sm-secondary-dark: #004ba0;
    
    /* Status Colors */
    --sm-success: #43a047;
    --sm-warning: #ff9800;
    --sm-danger: #e53935;
    --sm-info: #039be5;
    
    /* Neutral Colors */
    --sm-white: #ffffff;
    --sm-light: #f5f5f5;
    --sm-gray-100: #f0f0f0;
    --sm-gray-200: #e0e0e0;
    --sm-gray-300: #bdbdbd;
    --sm-gray-400: #9e9e9e;
    --sm-gray-500: #757575;
    --sm-gray-600: #616161;
    --sm-gray-700: #424242;
    --sm-gray-800: #303030;
    --sm-dark: #212121;
    --sm-black: #000000;
    
    /* Text Colors */
    --sm-text: #333333;
    --sm-text-light: #666666;
    --sm-text-muted: #999999;
    
    /* Layout */
    --sm-sidebar-width: 280px;
    --sm-header-height: 60px;
    --sm-footer-height: 50px;
    
    /* Spacing */
    --sm-spacing-xs: 4px;
    --sm-spacing-sm: 8px;
    --sm-spacing-md: 16px;
    --sm-spacing-lg: 24px;
    --sm-spacing-xl: 32px;
    --sm-spacing-xxl: 48px;
    
    /* Border & Shadow */
    --sm-radius-sm: 4px;
    --sm-radius-md: 8px;
    --sm-radius-lg: 12px;
    --sm-radius-full: 50%;
    --sm-shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --sm-shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --sm-shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    
    /* Transitions */
    --sm-transition-fast: 0.15s ease;
    --sm-transition: 0.3s ease;
    --sm-transition-slow: 0.5s ease;
    
    /* Z-index */
    --sm-z-dropdown: 100;
    --sm-z-sticky: 200;
    --sm-z-fixed: 300;
    --sm-z-modal-backdrop: 400;
    --sm-z-modal: 500;
    --sm-z-toast: 2147483647;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
#sm-app *,
#sm-app *::before,
#sm-app *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

#sm-app {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--sm-text);
    background: var(--sm-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#sm-app a {
    color: var(--sm-primary);
    text-decoration: none;
    transition: color var(--sm-transition-fast);
}

#sm-app a:hover {
    color: var(--sm-primary-dark);
}

#sm-app img {
    max-width: 100%;
    height: auto;
}

#sm-app h1, #sm-app h2, #sm-app h3, 
#sm-app h4, #sm-app h5, #sm-app h6 {
    line-height: 1.3;
    color: var(--sm-dark);
}

/* ==========================================================================
   Loading Overlay
   ========================================================================== */
   
/* Loading state for app */
#sm-loading,
.sm-loading {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

#sm-loading.active,
.sm-loading.active {
    display: flex;
}

.sm-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--sm-gray-200, #e0e0e0);
    border-top-color: var(--sm-primary, #E30613);
    border-radius: 50%;
    animation: sm-spin 0.8s linear infinite;
}

.sm-loading-overlay {
    position: fixed;
    inset: 0;
    background: var(--sm-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity var(--sm-transition);
}

.sm-loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.sm-loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--sm-gray-200);
    border-top-color: var(--sm-primary);
    border-radius: var(--sm-radius-full);
    animation: sm-spin 0.8s linear infinite;
}

.sm-loading-text {
    margin-top: var(--sm-spacing-md);
    color: var(--sm-text-light);
}

@keyframes sm-spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   Header
   ========================================================================== */
.sm-header {
    position: sticky;
    top: 0;
    height: var(--sm-header-height);
    background: var(--sm-primary);
    color: var(--sm-white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--sm-spacing-lg);
    box-shadow: var(--sm-shadow-md);
    z-index: var(--sm-z-sticky);
}

.sm-header-brand {
    display: flex;
    align-items: center;
    gap: var(--sm-spacing-md);
}

.sm-header-logo {
    height: 40px;
    width: auto;
}

.sm-header-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--sm-white);
}

.sm-header-actions {
    display: flex;
    align-items: center;
    gap: var(--sm-spacing-md);
}

.sm-header-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: var(--sm-radius-full);
    color: var(--sm-white);
    cursor: pointer;
    transition: background var(--sm-transition-fast);
    position: relative;
}

.sm-header-btn:hover {
    background: rgba(255,255,255,0.2);
}

.sm-header-btn svg {
    width: 20px;
    height: 20px;
}

.sm-notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    background: var(--sm-danger);
    color: var(--sm-white);
    font-size: 11px;
    font-weight: 700;
    border-radius: var(--sm-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sm-user-menu {
    position: relative;
}

.sm-user-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: var(--sm-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--sm-transition-fast);
}

.sm-user-avatar:hover {
    background: rgba(255,255,255,0.3);
}

.sm-user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: var(--sm-spacing-sm);
    background: var(--sm-white);
    border-radius: var(--sm-radius-md);
    box-shadow: var(--sm-shadow-lg);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--sm-transition-fast);
    z-index: var(--sm-z-dropdown);
}

.sm-user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sm-user-dropdown-header {
    padding: var(--sm-spacing-md);
    border-bottom: 1px solid var(--sm-gray-200);
}

.sm-user-dropdown-name {
    font-weight: 600;
    color: var(--sm-dark);
}

.sm-user-dropdown-role {
    font-size: 0.875rem;
    color: var(--sm-text-muted);
}

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

.sm-user-dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--sm-spacing-sm);
    padding: var(--sm-spacing-sm) var(--sm-spacing-md);
    color: var(--sm-text);
    cursor: pointer;
    transition: background var(--sm-transition-fast);
}

.sm-user-dropdown-item:hover {
    background: var(--sm-gray-100);
}

.sm-user-dropdown-item svg {
    width: 18px;
    height: 18px;
    color: var(--sm-gray-500);
}

.sm-user-dropdown-item.danger {
    color: var(--sm-danger);
}

.sm-user-dropdown-item.danger svg {
    color: var(--sm-danger);
}

/* ==========================================================================
   Main Layout
   ========================================================================== */
.sm-main {
    flex: 1;
    display: flex;
    min-height: calc(100vh - var(--sm-header-height) - var(--sm-footer-height));
}

/* Authenticated Layout */
.sm-layout-authenticated {
    display: flex;
    width: 100%;
}

.sm-sidebar {
    width: var(--sm-sidebar-width);
    background: var(--sm-white);
    border-right: 1px solid var(--sm-gray-200);
    overflow-y: auto;
    position: sticky;
    top: var(--sm-header-height);
    height: calc(100vh - var(--sm-header-height));
}

.sm-content {
    flex: 1;
    padding: var(--sm-spacing-lg);
    overflow-x: hidden;
}

/* ==========================================================================
   Sidebar Navigation
   ========================================================================== */
.sm-nav-section {
    padding: var(--sm-spacing-md) 0;
    border-bottom: 1px solid var(--sm-gray-200);
}

.sm-nav-section:last-child {
    border-bottom: none;
}

.sm-nav-section-title {
    padding: var(--sm-spacing-sm) var(--sm-spacing-md);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--sm-text-muted);
}

.sm-nav-item {
    display: flex;
    align-items: center;
    gap: var(--sm-spacing-md);
    padding: var(--sm-spacing-sm) var(--sm-spacing-md);
    color: var(--sm-text);
    cursor: pointer;
    transition: all var(--sm-transition-fast);
    border-left: 3px solid transparent;
}

.sm-nav-item:hover {
    background: var(--sm-gray-100);
    color: var(--sm-primary);
}

.sm-nav-item.active {
    background: rgba(var(--sm-primary), 0.1);
    color: var(--sm-primary);
    border-left-color: var(--sm-primary);
}

.sm-nav-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.sm-nav-badge {
    margin-left: auto;
    background: var(--sm-danger);
    color: var(--sm-white);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
}

/* Mobile Sidebar */
.sm-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: var(--sm-z-modal-backdrop);
}

.sm-mobile-menu-btn {
    display: none;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.sm-footer {
    height: var(--sm-footer-height);
    background: var(--sm-dark);
    color: var(--sm-gray-400);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--sm-spacing-lg);
    font-size: 0.875rem;
}

.sm-footer a {
    color: var(--sm-gray-400);
}

.sm-footer a:hover {
    color: var(--sm-white);
}

.sm-footer-links {
    display: flex;
    gap: var(--sm-spacing-lg);
}

.sm-install-pwa-btn {
    display: none;
    background: var(--sm-primary);
    color: var(--sm-white);
    border: none;
    padding: var(--sm-spacing-xs) var(--sm-spacing-md);
    border-radius: var(--sm-radius-sm);
    cursor: pointer;
    font-size: 0.875rem;
    transition: background var(--sm-transition-fast);
}

.sm-install-pwa-btn:hover {
    background: var(--sm-primary-dark);
}

.sm-install-pwa-btn.visible {
    display: flex;
    align-items: center;
    gap: var(--sm-spacing-xs);
}

/* ==========================================================================
   Public View - Hero
   ========================================================================== */
.sm-public-view {
    flex: 1;
}

.sm-hero {
    background: linear-gradient(135deg, var(--sm-primary) 0%, var(--sm-primary-dark) 100%);
    color: var(--sm-white);
    padding: var(--sm-spacing-xxl) var(--sm-spacing-lg);
    text-align: center;
}

.sm-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.sm-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--sm-spacing-md);
    color: var(--sm-white);
}

.sm-hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: var(--sm-spacing-lg);
}

.sm-hero-values {
    display: flex;
    justify-content: center;
    gap: var(--sm-spacing-lg);
    flex-wrap: wrap;
    margin-bottom: var(--sm-spacing-xl);
}

.sm-hero-value {
    display: flex;
    align-items: center;
    gap: var(--sm-spacing-sm);
    background: rgba(255,255,255,0.1);
    padding: var(--sm-spacing-sm) var(--sm-spacing-md);
    border-radius: var(--sm-radius-full);
}

.sm-hero-value svg {
    width: 20px;
    height: 20px;
}

.sm-hero-actions {
    display: flex;
    justify-content: center;
    gap: var(--sm-spacing-md);
    flex-wrap: wrap;
}

/* ==========================================================================
   Features Grid
   ========================================================================== */
.sm-features {
    padding: var(--sm-spacing-xxl) var(--sm-spacing-lg);
    background: var(--sm-white);
}

.sm-features-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: var(--sm-spacing-xl);
    color: var(--sm-dark);
}

.sm-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--sm-spacing-lg);
    max-width: 1200px;
    margin: 0 auto;
}

.sm-feature-card {
    background: var(--sm-light);
    padding: var(--sm-spacing-lg);
    border-radius: var(--sm-radius-md);
    text-align: center;
    transition: transform var(--sm-transition), box-shadow var(--sm-transition);
}

.sm-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--sm-shadow-lg);
}

.sm-feature-icon {
    width: 60px;
    height: 60px;
    background: var(--sm-primary);
    color: var(--sm-white);
    border-radius: var(--sm-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--sm-spacing-md);
}

.sm-feature-icon svg {
    width: 30px;
    height: 30px;
}

.sm-feature-title {
    font-size: 1.25rem;
    margin-bottom: var(--sm-spacing-sm);
}

.sm-feature-desc {
    color: var(--sm-text-light);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.sm-contact-section {
    padding: var(--sm-spacing-xxl) var(--sm-spacing-lg);
    background: var(--sm-light);
}

.sm-contact-section h2 {
    text-align: center;
    margin-bottom: var(--sm-spacing-xl);
}

.sm-contact-form-wrap {
    max-width: 600px;
    margin: 0 auto;
    background: var(--sm-white);
    padding: var(--sm-spacing-xl);
    border-radius: var(--sm-radius-md);
    box-shadow: var(--sm-shadow-md);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.sm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sm-spacing-sm);
    padding: var(--sm-spacing-sm) var(--sm-spacing-lg);
    border: none;
    border-radius: var(--sm-radius-sm);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--sm-transition-fast);
    text-decoration: none;
}

.sm-btn svg {
    width: 18px;
    height: 18px;
}

.sm-btn-primary {
    background: var(--sm-primary);
    color: var(--sm-white);
}

.sm-btn-primary:hover {
    background: var(--sm-primary-dark);
    color: var(--sm-white);
}

.sm-btn-outline {
    background: transparent;
    color: #374151;
    border: 2px solid #d1d5db;
}

.sm-btn-outline:hover {
    background: #f3f4f6;
    color: #1f2937 !important;
    border-color: #9ca3af;
}

.sm-btn-outline-white {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.sm-btn-outline-white:hover {
    background: white;
    color: #374151 !important;
}

.sm-btn-outline-secondary {
    background: transparent;
    color: #6b7280;
    border: 2px solid #d1d5db;
}

.sm-btn-outline-secondary:hover {
    background: #f3f4f6;
    color: #374151 !important;
    border-color: #9ca3af;
}

.sm-btn-secondary {
    background: white;
    color: #374151;
    border: 2px solid #d1d5db;
}

.sm-btn-secondary:hover {
    background: #f3f4f6;
    color: #1f2937 !important;
    border-color: #9ca3af;
}

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

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

.sm-btn-warning {
    background: var(--sm-warning);
    color: var(--sm-dark);
}

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

.sm-btn-ghost {
    background: transparent;
    color: var(--sm-gray);
    border: none;
}

.sm-btn-ghost:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--sm-dark);
}

.sm-btn-outline-primary {
    background: transparent;
    color: var(--sm-primary);
    border: 1px solid var(--sm-primary);
}

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

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

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

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

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

/* Table action buttons - base style for buttons without color class */
.sm-table .sm-btn-ghost {
    background: var(--sm-light);
    color: var(--sm-dark);
    border: 1px solid var(--sm-gray-light);
}

.sm-table .sm-btn-ghost:hover {
    background: var(--sm-primary);
    color: var(--sm-white);
    border-color: var(--sm-primary);
}

/* Table buttons with specific colors - keep their colors */
.sm-table .sm-btn-sm.sm-btn-success {
    background: var(--sm-success);
    color: var(--sm-white);
    border: 1px solid var(--sm-success);
}

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

.sm-table .sm-btn-sm.sm-btn-danger {
    background: var(--sm-danger);
    color: var(--sm-white);
    border: 1px solid var(--sm-danger);
}

.sm-table .sm-btn-sm.sm-btn-danger:hover {
    background: #b91c1c;
    border-color: #b91c1c;
}

.sm-table .sm-btn-sm.sm-btn-warning {
    background: var(--sm-warning);
    color: var(--sm-dark);
    border: 1px solid var(--sm-warning);
}

.sm-table .sm-btn-sm.sm-btn-warning:hover {
    background: #d97706;
    color: var(--sm-white);
    border-color: #d97706;
}

.sm-table .sm-btn-sm.sm-btn-primary {
    background: var(--sm-primary);
    color: var(--sm-white);
    border: 1px solid var(--sm-primary);
}

.sm-table .sm-btn-sm.sm-btn-primary:hover {
    background: #c1121f;
    border-color: #c1121f;
}

.sm-table .sm-btn-ghost.sm-text-danger,
.sm-table .sm-btn-sm.sm-text-danger {
    color: var(--sm-danger);
}

.sm-table .sm-btn-ghost.sm-text-danger:hover,
.sm-table .sm-btn-sm.sm-text-danger:hover {
    background: var(--sm-danger);
    color: var(--sm-white);
}

/* Table actions column */
.sm-table-actions {
    white-space: nowrap;
}

.sm-table-actions .sm-btn {
    margin-right: 4px;
}

.sm-table-actions .sm-btn:last-child {
    margin-right: 0;
}

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

.sm-btn-sm {
    padding: var(--sm-spacing-xs) var(--sm-spacing-md);
    font-size: 0.875rem;
}

.sm-btn-block {
    width: 100%;
}

.sm-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ==========================================================================
   Forms
   ========================================================================== */
.sm-form-group {
    margin-bottom: var(--sm-spacing-md);
}

.sm-form-label {
    display: block;
    margin-bottom: var(--sm-spacing-xs);
    font-weight: 500;
    color: var(--sm-dark);
}

.sm-form-label.required::after {
    content: ' *';
    color: var(--sm-danger);
}

.sm-form-input,
.sm-form-select,
.sm-form-textarea {
    width: 100%;
    padding: var(--sm-spacing-sm) var(--sm-spacing-md);
    border: 1px solid var(--sm-gray-300);
    border-radius: var(--sm-radius-sm);
    font-size: 1rem;
    transition: border-color var(--sm-transition-fast), box-shadow var(--sm-transition-fast);
}

.sm-form-input:focus,
.sm-form-select:focus,
.sm-form-textarea:focus {
    outline: none;
    border-color: var(--sm-primary);
    box-shadow: 0 0 0 3px rgba(var(--sm-primary), 0.1);
}

.sm-form-input.error,
.sm-form-select.error,
.sm-form-textarea.error {
    border-color: var(--sm-danger);
}

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

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

.sm-form-error {
    font-size: 0.875rem;
    color: var(--sm-danger);
    margin-top: var(--sm-spacing-xs);
}

.sm-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--sm-spacing-md);
}

/* Checkbox & Radio */
.sm-form-check {
    display: flex;
    align-items: flex-start;
    gap: var(--sm-spacing-sm);
    cursor: pointer;
}

.sm-form-check input {
    margin-top: 4px;
    cursor: pointer;
}

.sm-form-check-label {
    font-size: 0.9375rem;
    color: var(--sm-text);
}

/* File Upload */
.sm-file-upload {
    border: 2px dashed var(--sm-gray-300);
    border-radius: var(--sm-radius-md);
    padding: var(--sm-spacing-xl);
    text-align: center;
    cursor: pointer;
    transition: border-color var(--sm-transition-fast);
}

.sm-file-upload:hover {
    border-color: var(--sm-primary);
}

.sm-file-upload.dragover {
    border-color: var(--sm-primary);
    background: rgba(var(--sm-primary), 0.05);
}

.sm-file-upload svg {
    width: 40px;
    height: 40px;
    color: var(--sm-gray-400);
    margin-bottom: var(--sm-spacing-sm);
}

.sm-file-upload input {
    display: none;
}

/* ==========================================================================
   Cards
   ========================================================================== */
.sm-card {
    background: var(--sm-white);
    border-radius: var(--sm-radius-md);
    box-shadow: var(--sm-shadow-sm);
    overflow: hidden;
}

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

.sm-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

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

.sm-card-footer {
    padding: var(--sm-spacing-md) var(--sm-spacing-lg);
    border-top: 1px solid var(--sm-gray-200);
    background: var(--sm-gray-100);
}

/* CSE Reports Grid */
.sm-cse-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.sm-cse-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.2s ease;
}

.sm-cse-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.sm-cse-card-header {
    display: flex;
    gap: 15px;
    padding: 20px;
    align-items: flex-start;
}

.sm-cse-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    min-width: 60px;
}

.sm-cse-day {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.sm-cse-month {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sm-cse-year {
    font-size: 11px;
    opacity: 0.8;
}

.sm-cse-info {
    flex: 1;
}

.sm-cse-info h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: #1a1a1a;
}

.sm-cse-excerpt {
    margin: 0;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.sm-cse-card-footer {
    padding: 15px 20px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.sm-cse-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Detail sections */
.sm-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.sm-detail-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
}

.sm-detail-item i {
    font-size: 18px;
    margin-top: 2px;
}

.sm-detail-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.sm-detail-section h4 {
    margin: 0 0 10px 0;
    color: #374151;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   Modals
   ========================================================================== */
.sm-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--sm-z-modal-backdrop);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--sm-transition);
    padding: var(--sm-spacing-md);
}

.sm-modal-backdrop.show {
    opacity: 1;
    visibility: visible;
}

/* Modal with active class (direct modal without backdrop) */
.sm-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: var(--sm-spacing-md);
}

.sm-modal.active {
    display: flex !important;
}

/* Body state when modal is open */
body.sm-modal-open {
    overflow: hidden;
}

.sm-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
    cursor: pointer;
}

.sm-modal-container {
    position: relative;
    z-index: 2;
    background: var(--sm-white);
    border-radius: var(--sm-radius-lg);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--sm-shadow-xl);
    animation: sm-modal-in 0.2s ease-out;
}

@keyframes sm-modal-in {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Old modal backdrop system (keep for compatibility) */
.sm-modal-backdrop-old {
    background: var(--sm-white);
    border-radius: var(--sm-radius-lg);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.95);
    transition: transform var(--sm-transition);
}

.sm-modal-backdrop.show .sm-modal {
    transform: scale(1);
}

.sm-modal-lg,
.sm-modal-lg .sm-modal-container {
    max-width: 800px;
}

.sm-modal-xl,
.sm-modal-xl .sm-modal-container {
    max-width: 1100px;
}

.sm-modal-fullscreen {
    max-width: 100%;
    height: 100%;
    max-height: 100vh;
    border-radius: 0;
}

.sm-modal-header {
    padding: var(--sm-spacing-lg);
    border-bottom: 1px solid var(--sm-gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sm-modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.sm-modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--sm-gray-500);
    border-radius: var(--sm-radius-sm);
    transition: background var(--sm-transition-fast);
}

.sm-modal-close:hover {
    background: var(--sm-gray-100);
    color: var(--sm-dark);
}

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

.sm-modal-footer {
    padding: var(--sm-spacing-lg);
    border-top: 1px solid var(--sm-gray-200);
    display: flex;
    justify-content: flex-end;
    gap: var(--sm-spacing-sm);
}

/* ==========================================================================
   Toasts
   ========================================================================== */
.sm-toast-container {
    position: fixed;
    bottom: var(--sm-spacing-lg);
    right: var(--sm-spacing-lg);
    z-index: var(--sm-z-toast);
    display: flex;
    flex-direction: column;
    gap: var(--sm-spacing-sm);
}

.sm-toast {
    background: var(--sm-dark);
    color: var(--sm-white);
    padding: var(--sm-spacing-md) var(--sm-spacing-lg);
    border-radius: var(--sm-radius-md);
    box-shadow: var(--sm-shadow-lg);
    display: flex;
    align-items: center;
    gap: var(--sm-spacing-md);
    min-width: 300px;
    max-width: 450px;
    animation: sm-slide-in 0.3s ease;
}

.sm-toast.success { background: var(--sm-success); }
.sm-toast.warning { background: var(--sm-warning); color: var(--sm-dark); }
.sm-toast.danger { background: var(--sm-danger); }
.sm-toast.info { background: var(--sm-info); }

/* Toast type classes (alternative naming) */
.sm-toast-success { background: var(--sm-success) !important; }
.sm-toast-warning { background: var(--sm-warning) !important; color: var(--sm-dark) !important; }
.sm-toast-danger, .sm-toast-error { background: var(--sm-danger) !important; }
.sm-toast-info { background: var(--sm-info) !important; }

/* Force toasts above everything */
#sm-toasts, .sm-toasts, .sm-toast-container {
    z-index: 2147483647 !important;
}
.sm-toast {
    z-index: 2147483647 !important;
}

.sm-toast svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.sm-toast-message {
    flex: 1;
}

.sm-toast-close {
    background: none;
    border: none;
    color: inherit;
    opacity: 0.7;
    cursor: pointer;
}

.sm-toast-close:hover {
    opacity: 1;
}

@keyframes sm-slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ==========================================================================
   Dashboard
   ========================================================================== */
.sm-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--sm-spacing-lg);
    margin-bottom: var(--sm-spacing-lg);
}

.sm-stat-card {
    background: var(--sm-white);
    padding: var(--sm-spacing-lg);
    border-radius: var(--sm-radius-md);
    box-shadow: var(--sm-shadow-sm);
    display: flex;
    align-items: center;
    gap: var(--sm-spacing-md);
    transition: all 0.2s ease;
}

.sm-stat-card.sm-stat-clickable:hover {
    transform: translateY(-2px);
    box-shadow: var(--sm-shadow-md);
    background: linear-gradient(135deg, #fff 0%, #f5f5f5 100%);
}

.sm-stat-card.sm-stat-clickable:active {
    transform: translateY(0);
}

.sm-stat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--sm-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sm-primary);
    color: var(--sm-white);
}

.sm-stat-icon svg {
    width: 24px;
    height: 24px;
}

.sm-stat-content {
    flex: 1;
}

.sm-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--sm-dark);
    line-height: 1;
}

.sm-stat-label {
    font-size: 0.875rem;
    color: var(--sm-text-muted);
    margin-top: var(--sm-spacing-xs);
}

/* ==========================================================================
   Tables
   ========================================================================== */
.sm-table-wrap {
    overflow-x: auto;
}

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

.sm-table th,
.sm-table td {
    padding: var(--sm-spacing-md);
    text-align: left;
    border-bottom: 1px solid var(--sm-gray-200);
}

.sm-table th {
    background: var(--sm-gray-100);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--sm-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sm-table tbody tr:hover {
    background: var(--sm-gray-100);
}

.sm-table .actions {
    white-space: nowrap;
}

/* Badges */
.sm-badge {
    display: inline-flex;
    align-items: center;
    padding: var(--sm-spacing-xs) var(--sm-spacing-sm);
    border-radius: var(--sm-radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.sm-badge-success { background: rgba(67, 160, 71, 0.1); color: var(--sm-success); }
.sm-badge-warning { background: rgba(255, 152, 0, 0.1); color: var(--sm-warning); }
.sm-badge-danger { background: rgba(229, 57, 53, 0.1); color: var(--sm-danger); }
.sm-badge-info { background: rgba(3, 155, 229, 0.1); color: var(--sm-info); }
.sm-badge-primary { background: rgba(var(--sm-primary), 0.1); color: var(--sm-primary); }

/* ==========================================================================
   Chat
   ========================================================================== */
.sm-chat-modal {
    max-width: 900px;
}

.sm-chat-container {
    display: flex;
    height: 500px;
}

.sm-chat-sidebar {
    width: 250px;
    border-right: 1px solid var(--sm-gray-200);
    overflow-y: auto;
}

.sm-chat-list {
    list-style: none;
}

.sm-chat-list-item {
    display: flex;
    align-items: center;
    gap: var(--sm-spacing-sm);
    padding: var(--sm-spacing-md);
    cursor: pointer;
    border-bottom: 1px solid var(--sm-gray-100);
    transition: background var(--sm-transition-fast);
}

.sm-chat-list-item:hover,
.sm-chat-list-item.active {
    background: var(--sm-gray-100);
}

.sm-chat-avatar {
    width: 40px;
    height: 40px;
    background: var(--sm-primary);
    color: var(--sm-white);
    border-radius: var(--sm-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.sm-chat-avatar.online::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    background: var(--sm-success);
    border: 2px solid var(--sm-white);
    border-radius: var(--sm-radius-full);
}

.sm-chat-preview {
    flex: 1;
    min-width: 0;
}

.sm-chat-name {
    font-weight: 600;
    color: var(--sm-dark);
}

.sm-chat-last-msg {
    font-size: 0.875rem;
    color: var(--sm-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sm-chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sm-chat-header {
    padding: var(--sm-spacing-md);
    border-bottom: 1px solid var(--sm-gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sm-chat-messages {
    flex: 1;
    padding: var(--sm-spacing-md);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: var(--sm-spacing-md);
}

.sm-message {
    max-width: 70%;
    padding: var(--sm-spacing-sm) var(--sm-spacing-md);
    border-radius: var(--sm-radius-md);
    position: relative;
}

.sm-message.sent {
    align-self: flex-end;
    background: var(--sm-primary);
    color: var(--sm-white);
}

.sm-message.received {
    align-self: flex-start;
    background: var(--sm-gray-100);
    color: var(--sm-text);
}

.sm-message-time {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: var(--sm-spacing-xs);
}

.sm-chat-input {
    padding: var(--sm-spacing-md);
    border-top: 1px solid var(--sm-gray-200);
    display: flex;
    gap: var(--sm-spacing-sm);
}

.sm-chat-input input {
    flex: 1;
}

/* ==========================================================================
   News Articles
   ========================================================================== */
.sm-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--sm-spacing-lg);
}

.sm-news-card {
    background: var(--sm-white);
    border-radius: var(--sm-radius-md);
    overflow: hidden;
    box-shadow: var(--sm-shadow-sm);
    transition: transform var(--sm-transition), box-shadow var(--sm-transition);
}

.sm-news-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--sm-shadow-md);
}

.sm-news-image {
    height: 200px;
    background: var(--sm-gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sm-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sm-news-content {
    padding: var(--sm-spacing-md);
}

.sm-news-date {
    font-size: 0.875rem;
    color: var(--sm-text-muted);
    margin-bottom: var(--sm-spacing-xs);
}

.sm-news-title {
    font-size: 1.125rem;
    margin-bottom: var(--sm-spacing-sm);
}

.sm-news-excerpt {
    color: var(--sm-text-light);
    font-size: 0.9375rem;
}

/* ==========================================================================
   Training Cards - Survey Workflow
   ========================================================================== */
.sm-trainings {
    padding: 20px;
}

.sm-training-info-banner {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    padding: 20px 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.sm-training-info-banner i {
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.sm-training-info-banner p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

.sm-training-info-banner strong {
    display: block;
    font-size: 15px;
    margin-bottom: 5px;
}

.sm-trainings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.sm-training-card {
    background: #fff;
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.sm-training-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.sm-training-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
    gap: 10px;
}

.sm-btn-details {
    width: 100%;
    margin-top: 12px;
    background: linear-gradient(135deg, #e63946 0%, #c1121f 100%);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.sm-btn-details:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
}

.sm-btn-details i {
    font-size: 14px;
}

.sm-training-theme {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sm-training-theme i {
    color: #e63946;
}

.sm-training-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #1a1a1a;
    padding: 15px 20px 0;
}

.sm-training-description {
    font-size: 14px;
    color: #666;
    margin: 0;
    padding: 0 20px 10px;
    line-height: 1.5;
}

.sm-training-details {
    padding: 0 20px 15px;
}

.sm-training-details p {
    margin: 8px 0;
    font-size: 14px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sm-training-details i {
    width: 16px;
    color: #888;
}

.sm-training-votes {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.sm-training-actions {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    background: #fafafa;
}

/* Vote Toggle Styles */
.sm-vote-toggle-container {
    text-align: center;
}

.sm-vote-question {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.sm-vote-question i {
    color: #e63946;
}

.sm-vote-toggle {
    display: flex;
    background: #f3f4f6;
    border-radius: 12px;
    padding: 4px;
    gap: 4px;
}

.sm-vote-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    color: #666;
}

.sm-vote-option i {
    font-size: 16px;
}

.sm-vote-option:hover:not(.active) {
    background: rgba(255,255,255,0.8);
    color: #333;
}

.sm-vote-yes-btn.active {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.4);
}

.sm-vote-yes-btn.active i {
    animation: pulse-check 0.5s ease;
}

.sm-vote-no-btn.active {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.4);
}

.sm-vote-yes-btn:not(.active):hover {
    background: rgba(5, 150, 105, 0.1);
    color: #059669;
}

.sm-vote-no-btn:not(.active):hover {
    background: rgba(107, 114, 128, 0.1);
    color: #4b5563;
}

.sm-vote-hint {
    margin: 10px 0 0 0;
    font-size: 12px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.sm-vote-hint i {
    font-size: 11px;
}

@keyframes pulse-check {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Old styles kept for backward compatibility */
.sm-training-vote-buttons {
    display: flex;
    gap: 10px;
}

.sm-training-vote-buttons .sm-btn {
    flex: 1;
}

.sm-training-vote-status {
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.sm-training-vote-status.sm-vote-yes {
    background: #d1fae5;
    color: #065f46;
}

.sm-training-vote-status.sm-vote-no {
    background: #fee2e2;
    color: #991b1b;
}

.sm-training-admin-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #ddd;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.sm-training-confirmed-info {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #059669;
    font-weight: 500;
}

/* Training Admin Footer */
.sm-training-admin-footer {
    padding: 15px 20px;
    border-top: 1px dashed #e5e7eb;
    background: #fafafa;
    display: flex;
    justify-content: flex-end;
}

/* Date Range Picker */
.sm-date-picker-group {
    margin-bottom: 20px;
}

.sm-date-range {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f9fafb;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.sm-date-input {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sm-date-label {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
}

.sm-date-separator {
    color: #9ca3af;
    font-size: 18px;
}

.sm-date-input input[type="date"] {
    padding: 12px;
    font-size: 15px;
}

/* Header Actions */
.sm-header-actions {
    display: flex;
    gap: 10px;
}

/* Training Validation Section */
.sm-training-validation {
    border-top: 1px solid #e5e7eb;
    padding-top: 15px;
}

@media (max-width: 768px) {
    .sm-date-range {
        flex-direction: column;
    }
    
    .sm-date-separator {
        transform: rotate(90deg);
    }
    
    .sm-header-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .sm-header-actions .sm-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Selection Modal Styles */
.sm-selection-info {
    background: linear-gradient(135deg, #e63946 0%, #c1121f 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
}

.sm-selection-info h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
}

.sm-selection-info p {
    margin: 0;
    opacity: 0.9;
}

.sm-selection-counter {
    background: #f0fdf4;
    color: #059669;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 15px;
}

.sm-selection-list {
    max-height: 400px;
    overflow-y: auto;
}

.sm-selection-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background: #f9fafb;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.sm-selection-item:hover {
    background: #f3f4f6;
}

.sm-selection-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #059669;
}

.sm-selection-user {
    flex: 1;
}

.sm-selection-name {
    font-weight: 600;
    color: #1a1a1a;
    display: block;
}

.sm-selection-workplace {
    font-size: 12px;
    color: #666;
}

.sm-selection-date {
    font-size: 11px;
    color: #888;
    display: block;
    margin-top: 2px;
}

/* Voters Modal Styles */
.sm-voters-section h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.sm-voters-list li {
    padding: 10px 15px;
    background: #f9fafb;
    border-radius: 6px;
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sm-voter-name {
    font-weight: 500;
}

.sm-voter-workplace {
    font-size: 12px;
    color: #888;
}

/* Info and Warning Boxes */
.sm-info-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 15px;
}

.sm-info-box i {
    color: #3b82f6;
    font-size: 18px;
    flex-shrink: 0;
}

.sm-info-box p {
    margin: 0;
    font-size: 13px;
    color: #1e40af;
    line-height: 1.5;
}

.sm-warning-box {
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.sm-warning-box i {
    color: #f59e0b;
    font-size: 18px;
    flex-shrink: 0;
}

.sm-warning-box p {
    margin: 0;
    font-size: 13px;
    color: #92400e;
    line-height: 1.5;
}

/* Form Row */
.sm-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

@media (max-width: 768px) {
    .sm-trainings-grid {
        grid-template-columns: 1fr;
    }
    
    .sm-form-row {
        grid-template-columns: 1fr;
    }
    
    .sm-training-vote-buttons {
        flex-direction: column;
    }
    
    .sm-training-admin-actions {
        flex-direction: column;
    }
    
    .sm-vote-toggle {
        flex-direction: column;
    }
    
    .sm-vote-option {
        padding: 12px 16px;
    }
    
    .sm-vote-option span {
        display: inline;
    }
}

/* ==========================================================================
   Meeting Cards
   ========================================================================== */
.sm-meeting-card {
    background: var(--sm-white);
    border-left: 4px solid var(--sm-primary);
    border-radius: var(--sm-radius-md);
    padding: var(--sm-spacing-lg);
    box-shadow: var(--sm-shadow-sm);
    margin-bottom: var(--sm-spacing-md);
}

.sm-meeting-date-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: var(--sm-primary);
    color: var(--sm-white);
    padding: var(--sm-spacing-sm) var(--sm-spacing-md);
    border-radius: var(--sm-radius-sm);
    margin-right: var(--sm-spacing-md);
}

.sm-meeting-date-day {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.sm-meeting-date-month {
    font-size: 0.75rem;
    text-transform: uppercase;
}

.sm-meeting-response {
    display: flex;
    gap: var(--sm-spacing-sm);
    margin-top: var(--sm-spacing-md);
}

.sm-meeting-response .sm-btn {
    flex: 1;
}

/* ==========================================================================
   Invoices
   ========================================================================== */
.sm-invoice-card {
    background: var(--sm-white);
    border-radius: var(--sm-radius-md);
    padding: var(--sm-spacing-lg);
    box-shadow: var(--sm-shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--sm-spacing-md);
}

.sm-invoice-info {
    display: flex;
    align-items: center;
    gap: var(--sm-spacing-md);
}

.sm-invoice-icon {
    width: 50px;
    height: 50px;
    background: var(--sm-gray-100);
    border-radius: var(--sm-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sm-primary);
}

.sm-invoice-number {
    font-weight: 600;
}

.sm-invoice-date {
    font-size: 0.875rem;
    color: var(--sm-text-muted);
}

.sm-invoice-amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--sm-dark);
}

/* ==========================================================================
   Profile Page
   ========================================================================== */
.sm-profile-header {
    display: flex;
    align-items: center;
    gap: var(--sm-spacing-lg);
    padding: var(--sm-spacing-xl);
    background: linear-gradient(135deg, var(--sm-primary), var(--sm-primary-dark));
    color: var(--sm-white);
    border-radius: var(--sm-radius-md);
    margin-bottom: var(--sm-spacing-lg);
}

.sm-profile-avatar {
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.2);
    border-radius: var(--sm-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 600;
}

.sm-profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--sm-spacing-xs);
    color: var(--sm-white);
}

.sm-profile-role {
    opacity: 0.9;
}

.sm-profile-section {
    margin-bottom: var(--sm-spacing-lg);
}

.sm-profile-section h3 {
    font-size: 1.125rem;
    margin-bottom: var(--sm-spacing-md);
    padding-bottom: var(--sm-spacing-sm);
    border-bottom: 2px solid var(--sm-primary);
    display: inline-block;
}

/* ==========================================================================
   AI Search
   ========================================================================== */
.sm-ai-search {
    max-width: 800px;
    margin: 0 auto;
}

.sm-ai-search-input {
    display: flex;
    gap: var(--sm-spacing-md);
    margin-bottom: var(--sm-spacing-lg);
}

.sm-ai-search-input input {
    flex: 1;
}

.sm-ai-categories {
    display: flex;
    gap: var(--sm-spacing-sm);
    margin-bottom: var(--sm-spacing-lg);
    flex-wrap: wrap;
}

.sm-ai-category {
    padding: var(--sm-spacing-xs) var(--sm-spacing-md);
    border: 1px solid var(--sm-gray-300);
    border-radius: var(--sm-radius-full);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--sm-transition-fast);
}

.sm-ai-category:hover,
.sm-ai-category.active {
    background: var(--sm-primary);
    color: var(--sm-white);
    border-color: var(--sm-primary);
}

.sm-ai-results {
    background: var(--sm-white);
    border-radius: var(--sm-radius-md);
    padding: var(--sm-spacing-lg);
}

.sm-ai-response {
    line-height: 1.8;
}

.sm-ai-loading {
    display: flex;
    align-items: center;
    gap: var(--sm-spacing-md);
    color: var(--sm-text-muted);
}

/* ==========================================================================
   Staff Cards
   ========================================================================== */
.sm-staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--sm-spacing-lg);
}

.sm-staff-card {
    background: var(--sm-white);
    border-radius: var(--sm-radius-md);
    padding: var(--sm-spacing-lg);
    text-align: center;
    box-shadow: var(--sm-shadow-sm);
}

.sm-staff-photo {
    width: 100px;
    height: 100px;
    border-radius: var(--sm-radius-full);
    margin: 0 auto var(--sm-spacing-md);
    background: var(--sm-gray-200);
    overflow: hidden;
}

.sm-staff-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sm-staff-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--sm-spacing-xs);
}

.sm-staff-role {
    color: var(--sm-text-muted);
    font-size: 0.875rem;
    margin-bottom: var(--sm-spacing-md);
}

/* ==========================================================================
   Notifications Panel
   ========================================================================== */
.sm-notifications-panel {
    position: fixed;
    top: 70px; /* Fallback */
    top: var(--sm-header-height, 70px);
    right: 0;
    width: 350px;
    max-width: 100vw;
    height: calc(100vh - 70px);
    height: calc(100vh - var(--sm-header-height, 70px));
    background: #fff;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 99999; /* Maximum z-index to be above everything */
    overflow-y: auto;
}

.sm-notifications-panel.show {
    transform: translateX(0);
}

.sm-panel-header {
    padding: var(--sm-spacing-md);
    border-bottom: 1px solid var(--sm-gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background: var(--sm-white);
    z-index: 1;
}

.sm-panel-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.sm-panel-close {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--sm-gray-100);
    border-radius: var(--sm-radius-full);
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sm-text-muted);
    transition: all var(--sm-transition-fast);
}

.sm-panel-close:hover {
    background: var(--sm-gray-200);
    color: var(--sm-text);
}

.sm-panel-content {
    padding: 0;
}

.sm-notifications-header {
    padding: var(--sm-spacing-md);
    border-bottom: 1px solid var(--sm-gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background: var(--sm-white);
}

.sm-notification-item {
    padding: var(--sm-spacing-md);
    border-bottom: 1px solid var(--sm-gray-100);
    display: flex;
    gap: var(--sm-spacing-md);
    cursor: pointer;
    transition: background var(--sm-transition-fast);
    position: relative;
    align-items: flex-start;
}

.sm-notification-item:hover {
    background: var(--sm-gray-100);
}

.sm-notification-item.unread,
.sm-notification-item.sm-unread {
    background: rgba(230, 57, 70, 0.08);
    border-left: 3px solid var(--sm-primary);
}

.sm-notification-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--sm-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--sm-gray-100);
    color: var(--sm-primary);
}

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

.sm-notification-content strong {
    display: block;
    font-size: 13px;
    margin-bottom: 2px;
    color: var(--sm-text);
}

.sm-notification-content p {
    margin: 0;
    font-size: 12px;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.sm-notification-time {
    font-size: 0.75rem;
    color: var(--sm-text-muted);
    display: block;
    margin-top: 4px;
}

/* Notification delete button (desktop) */
.sm-notification-delete {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: #999;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.2s ease;
}

.sm-notification-item:hover .sm-notification-delete {
    opacity: 1;
}

.sm-notification-delete:hover {
    background: #fee;
    color: #e63946;
}

/* Swipe to delete (mobile) */
.sm-notification-swipe-container {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--sm-gray-100);
}

.sm-notification-swipe-item {
    display: flex;
    gap: 12px;
    padding: 12px 15px;
    background: #fff;
    position: relative;
    z-index: 2;
    touch-action: pan-y;
    align-items: flex-start;
}

.sm-notification-swipe-item.sm-unread {
    background: rgba(230, 57, 70, 0.08);
    border-left: 3px solid var(--sm-primary);
}

.sm-notification-swipe-item .sm-notification-icon {
    width: 36px;
    height: 36px;
    background: #f0f0f0;
    color: var(--sm-primary);
}

.sm-notification-swipe-item .sm-notification-content {
    flex: 1;
    min-width: 0;
}

.sm-notification-swipe-item .sm-notification-content strong {
    display: block;
    font-size: 13px;
    margin-bottom: 2px;
}

.sm-notification-swipe-item .sm-notification-content p {
    margin: 0;
    font-size: 12px;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sm-notification-swipe-item .sm-notification-time {
    font-size: 11px;
    color: #999;
    margin-top: 3px;
}

.sm-notification-swipe-action {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 70px;
    background: #e63946;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 1;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.sm-notification-swipe-container.swiped .sm-notification-swipe-action,
.sm-notification-swipe-container.swiping .sm-notification-swipe-action {
    opacity: 1;
}

.sm-notification-swipe-action:active {
    background: #c0313e;
}

/* Highlight animation for cards from notifications */
.sm-highlight {
    animation: sm-highlight-pulse 1s ease-in-out 3;
    box-shadow: 0 0 20px rgba(230, 57, 70, 0.5) !important;
}

@keyframes sm-highlight-pulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(230, 57, 70, 0.3);
        border-color: rgba(230, 57, 70, 0.3);
    }
    50% {
        box-shadow: 0 0 25px rgba(230, 57, 70, 0.6);
        border-color: rgba(230, 57, 70, 0.8);
    }
}

/* Profile logout section - only visible on mobile */
.sm-profile-logout-section {
    display: none;
    margin-top: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

@media (max-width: 768px) {
    .sm-profile-logout-section {
        display: block;
    }
}

/* ==========================================================================
   Desktop/Mobile Visibility Helpers
   ========================================================================== */
.sm-desktop-only {
    display: flex !important;
}
.sm-mobile-only {
    display: none !important;
}

@media (max-width: 768px) {
    .sm-desktop-only {
        display: none !important;
    }
    .sm-mobile-only {
        display: flex !important;
    }
}

/* ==========================================================================
   User Area with Dropdown
   ========================================================================== */
.sm-user-area {
    position: relative;
    display: flex;
    align-items: center;
}

.sm-user-display {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 6px;
    background: #f3f4f6;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
}

.sm-user-display:hover {
    background: #e5e7eb;
}

.sm-topbar-user-photo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e63946 0%, #1d3557 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.sm-topbar-user-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sm-user-initials {
    color: white;
    font-weight: 600;
    font-size: 12px;
}

.sm-user-firstname {
    font-weight: 500;
    font-size: 14px;
    color: #374151;
}

/* User dropdown menu */
.sm-user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 10001;
    overflow: hidden;
}

.sm-user-area:hover .sm-user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sm-user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
    border: none;
    background: none;
    width: 100%;
    cursor: pointer;
    text-align: left;
}

.sm-user-dropdown-item:hover {
    background: #f3f4f6;
}

.sm-user-dropdown-item i {
    width: 16px;
    color: #6b7280;
}

.sm-user-dropdown hr {
    margin: 4px 0;
    border: none;
    border-top: 1px solid #e5e7eb;
}

.sm-logout-item {
    color: #dc2626;
}

.sm-logout-item i {
    color: #dc2626;
}

.sm-logout-item:hover {
    background: #fee2e2;
}

@media (max-width: 768px) {
    .sm-user-area {
        display: none;
    }
    
    .sm-user-firstname {
        display: none;
    }
}

/* ==========================================================================
   Empty States
   ========================================================================== */
.sm-empty-state {
    text-align: center;
    padding: var(--sm-spacing-xxl);
    color: var(--sm-text-muted);
}

.sm-empty-state svg {
    width: 80px;
    height: 80px;
    color: var(--sm-gray-300);
    margin-bottom: var(--sm-spacing-md);
}

.sm-empty-state h3 {
    color: var(--sm-text-light);
    margin-bottom: var(--sm-spacing-sm);
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */
@media (max-width: 1024px) {
    .sm-sidebar {
        position: fixed;
        left: 0;
        top: var(--sm-header-height);
        height: calc(100vh - var(--sm-header-height));
        height: calc(100dvh - var(--sm-header-height)); /* Dynamic viewport height */
        transform: translateX(-100%);
        z-index: 9000; /* Very high to be above messaging app */
        transition: transform var(--sm-transition);
        padding-bottom: env(safe-area-inset-bottom, 0px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .sm-sidebar.show {
        transform: translateX(0);
    }
    
    .sm-sidebar-overlay {
        z-index: 8999; /* Just below sidebar */
    }
    
    .sm-sidebar-overlay.show {
        display: block;
    }
    
    .sm-mobile-menu-btn {
        display: flex;
    }
    
    .sm-content {
        width: 100%;
        min-height: calc(100vh - var(--sm-header-height));
        min-height: calc(100dvh - var(--sm-header-height));
        padding-bottom: env(safe-area-inset-bottom, 20px);
    }
    
    .sm-chat-sidebar {
        display: none;
    }
    
    .sm-chat-sidebar.show {
        display: block;
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        background: var(--sm-white);
        z-index: 10;
    }
}

@media (max-width: 768px) {
    :root {
        --sm-header-height: 56px;
    }
    
    .sm-header {
        padding: 0 var(--sm-spacing-md);
    }
    
    .sm-header-title {
        font-size: 1rem;
    }
    
    .sm-content {
        padding: var(--sm-spacing-md);
    }
    
    .sm-hero {
        padding: var(--sm-spacing-xl) var(--sm-spacing-md);
    }
    
    .sm-hero-title {
        font-size: 1.75rem;
    }
    
    .sm-hero-subtitle {
        font-size: 1rem;
    }
    
    .sm-hero-values {
        flex-direction: column;
        align-items: center;
    }
    
    .sm-footer {
        flex-direction: column;
        height: auto;
        padding: var(--sm-spacing-md);
        gap: var(--sm-spacing-sm);
        text-align: center;
    }
    
    .sm-modal {
        max-width: 100%;
        margin: var(--sm-spacing-md);
        max-height: calc(100vh - var(--sm-spacing-lg) * 2);
    }
    
    .sm-notifications-panel {
        width: 100%;
    }
    
    .sm-dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .sm-profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .sm-invoice-card {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--sm-spacing-md);
    }
    
    .sm-toast-container {
        left: var(--sm-spacing-md);
        right: var(--sm-spacing-md);
    }
    
    .sm-toast {
        min-width: auto;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .sm-form-row {
        grid-template-columns: 1fr;
    }
    
    .sm-btn-group {
        flex-direction: column;
    }
    
    .sm-btn-group .sm-btn {
        width: 100%;
    }
    
    .sm-meeting-response {
        flex-direction: column;
    }
    
    .sm-ai-search-input {
        flex-direction: column;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
    #sm-app {
        background: white;
    }
    
    .sm-header,
    .sm-footer,
    .sm-sidebar,
    .sm-modal-backdrop,
    .sm-toast-container,
    .sm-btn,
    .sm-notifications-panel {
        display: none !important;
    }
    
    .sm-content {
        padding: 0;
    }
    
    .sm-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.sm-text-center { text-align: center; }
.sm-text-right { text-align: right; }
.sm-text-muted { color: var(--sm-text-muted); }
.sm-text-success { color: var(--sm-success); }
.sm-text-danger { color: var(--sm-danger); }
.sm-text-warning { color: var(--sm-warning); }

.sm-mt-0 { margin-top: 0; }
.sm-mt-1 { margin-top: var(--sm-spacing-sm); }
.sm-mt-2 { margin-top: var(--sm-spacing-md); }
.sm-mt-3 { margin-top: var(--sm-spacing-lg); }
.sm-mb-0 { margin-bottom: 0; }
.sm-mb-1 { margin-bottom: var(--sm-spacing-sm); }
.sm-mb-2 { margin-bottom: var(--sm-spacing-md); }
.sm-mb-3 { margin-bottom: var(--sm-spacing-lg); }

.sm-p-0 { padding: 0; }
.sm-p-1 { padding: var(--sm-spacing-sm); }
.sm-p-2 { padding: var(--sm-spacing-md); }
.sm-p-3 { padding: var(--sm-spacing-lg); }

.sm-d-flex { display: flex; }
.sm-d-none { display: none; }
.sm-d-block { display: block; }

.sm-flex-wrap { flex-wrap: wrap; }
.sm-justify-between { justify-content: space-between; }
.sm-justify-center { justify-content: center; }
.sm-align-center { align-items: center; }
.sm-gap-1 { gap: var(--sm-spacing-sm); }
.sm-gap-2 { gap: var(--sm-spacing-md); }
.sm-gap-3 { gap: var(--sm-spacing-lg); }

.sm-w-100 { width: 100%; }
.sm-hidden { visibility: hidden; }
.sm-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ==========================================================================
   Settings Page
   ========================================================================== */
.sm-settings-page {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--sm-spacing-lg);
}

.sm-settings-page .sm-page-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: var(--sm-spacing-xl);
}

.sm-settings-page .sm-page-title i {
    color: var(--sm-primary);
}

.sm-settings-section {
    margin-bottom: var(--sm-spacing-lg);
}

.sm-settings-section h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--sm-spacing-md);
    padding-bottom: var(--sm-spacing-sm);
    border-bottom: 2px solid var(--sm-primary);
    color: var(--sm-text);
}

.sm-settings-section h2 i {
    color: var(--sm-primary);
    font-size: 1rem;
}

/* Settings Tabs Navigation */
.sm-settings-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: var(--sm-spacing-lg);
    padding: 8px;
    background: var(--sm-gray-100);
    border-radius: var(--sm-radius-lg);
}

.sm-settings-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    background: transparent;
    color: var(--sm-gray-600);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: var(--sm-radius-md);
    transition: all 0.2s ease;
}

.sm-settings-tab:hover {
    background: var(--sm-white);
    color: var(--sm-gray-800);
}

.sm-settings-tab.active {
    background: var(--sm-white);
    color: var(--sm-primary);
    box-shadow: var(--sm-shadow-sm);
}

.sm-settings-tab i {
    font-size: 1rem;
}

.sm-settings-tab-content {
    display: none;
}

.sm-settings-tab-content.active {
    display: block;
    animation: sm-fade-in 0.2s ease-out;
}

@keyframes sm-fade-in {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile responsive tabs */
@media (max-width: 768px) {
    .sm-settings-tabs {
        flex-direction: column;
        padding: 5px;
    }
    
    .sm-settings-tab {
        width: 100%;
        justify-content: center;
        padding: 10px 15px;
    }
    
    .sm-settings-tab span {
        display: inline;
    }
}

/* Settings auto backup options */
.sm-switch-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 500;
}

.sm-switch-label input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.sm-form-help {
    font-size: 0.85rem;
    color: var(--sm-text-muted);
    margin-top: 4px;
}

.sm-current-logo {
    border: 1px solid var(--sm-border);
    border-radius: var(--sm-border-radius);
    padding: 8px;
    background: white;
}

.sm-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--sm-spacing-md);
}

.sm-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
}

.sm-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--sm-primary);
}

input[type="color"] {
    width: 60px;
    height: 40px;
    padding: 2px;
    border: 1px solid var(--sm-border);
    border-radius: var(--sm-border-radius);
    cursor: pointer;
}

.sm-form-actions {
    margin-top: var(--sm-spacing-xl);
    text-align: center;
}

.sm-btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
}

.sm-btn i {
    margin-right: 8px;
}

/* File upload styling */
.sm-file-upload input[type="file"] {
    padding: 10px;
    border: 2px dashed var(--sm-border);
    border-radius: var(--sm-border-radius);
    width: 100%;
    cursor: pointer;
    background: var(--sm-bg-light);
}

.sm-file-upload input[type="file"]:hover {
    border-color: var(--sm-primary);
    background: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sm-settings-page {
        padding: var(--sm-spacing-md);
    }
    
    .sm-form-row {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Fullscreen App Overrides
   ========================================================================== */
body.sm-fullscreen-app {
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body.sm-fullscreen-app #sm-app {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

body.sm-fullscreen-app .sm-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

body.sm-fullscreen-app .sm-main {
    flex: 1;
    overflow: auto;
}

body.sm-fullscreen-app .sm-app-layout {
    height: 100%;
    display: flex;
}

body.sm-fullscreen-app .sm-sidebar {
    width: 260px;
    height: 100%;
    overflow-y: auto;
    flex-shrink: 0;
}

body.sm-fullscreen-app .sm-content {
    overflow-y: auto;
    padding: var(--sm-spacing-lg);
}

/* ==========================================================================
   Member Newsletters
   ========================================================================== */
.sm-newsletters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--sm-spacing-lg);
    margin-top: var(--sm-spacing-lg);
}

.sm-newsletter-card {
    background: var(--sm-white);
    border-radius: var(--sm-radius-lg);
    padding: var(--sm-spacing-lg);
    box-shadow: var(--sm-shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--sm-gray-200);
}

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

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

.sm-newsletter-date {
    font-size: 0.85rem;
    color: var(--sm-gray-500);
}

.sm-newsletter-date i {
    margin-right: 5px;
}

.sm-newsletter-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--sm-dark);
    margin-bottom: var(--sm-spacing-sm);
    line-height: 1.4;
}

.sm-newsletter-preview {
    font-size: 0.95rem;
    color: var(--sm-gray-600);
    line-height: 1.6;
    margin-bottom: var(--sm-spacing-md);
}

.sm-newsletter-content {
    font-size: 1rem;
    line-height: 1.8;
}

.sm-newsletter-content p {
    margin-bottom: 1em;
}

.sm-newsletter-content h1,
.sm-newsletter-content h2,
.sm-newsletter-content h3 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.sm-newsletter-content ul,
.sm-newsletter-content ol {
    margin-left: 1.5em;
    margin-bottom: 1em;
}

@media (max-width: 768px) {
    .sm-newsletters-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Admin Dashboard Cards (Staff/DS/Secretary)
   ========================================================================== */
.sm-admin-cards-section {
    margin-top: var(--sm-spacing-lg);
}

.sm-admin-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--sm-gray-800);
    margin-bottom: var(--sm-spacing-md);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sm-admin-section-title i {
    color: var(--sm-primary);
}

.sm-admin-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--sm-spacing-md);
}

.sm-admin-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--sm-white);
    border-radius: var(--sm-radius-lg);
    padding: 20px;
    box-shadow: var(--sm-shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--sm-gray-200);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.sm-admin-card:hover {
    box-shadow: var(--sm-shadow-md);
    transform: translateY(-3px);
    border-color: var(--sm-primary);
}

.sm-admin-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--sm-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sm-admin-card:hover::before {
    opacity: 1;
}

.sm-admin-card-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--sm-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sm-admin-card-icon i {
    font-size: 22px;
    color: #fff;
}

.sm-admin-card-info {
    flex: 1;
    min-width: 0;
}

.sm-admin-card-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--sm-gray-800);
    margin: 0 0 4px 0;
}

.sm-admin-card-info p {
    font-size: 0.85rem;
    color: var(--sm-gray-500);
    margin: 0;
    line-height: 1.3;
}

.sm-admin-card-arrow {
    color: var(--sm-gray-400);
    transition: all 0.3s ease;
}

.sm-admin-card:hover .sm-admin-card-arrow {
    color: var(--sm-primary);
    transform: translateX(5px);
}

.sm-admin-card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--sm-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    animation: pulse 2s infinite;
}

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

/* Horizontal nav for non-admin users */
.sm-nav-horizontal {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 10px;
}

.sm-nav-horizontal .sm-nav-item {
    flex: 0 0 auto;
}

.sm-nav-horizontal .sm-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 12px 16px;
    border-radius: var(--sm-radius-md);
    font-size: 12px;
    text-align: center;
    min-width: 80px;
}

.sm-nav-horizontal .sm-nav-link i {
    font-size: 20px;
}

.sm-nav-horizontal .sm-nav-link span {
    font-size: 11px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .sm-admin-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .sm-nav-horizontal {
        justify-content: center;
    }
    
    .sm-nav-horizontal .sm-nav-link {
        min-width: 70px;
        padding: 10px 12px;
    }
}

/* ==========================================================================
   Message Bubbles Base Styles
   ========================================================================== */
.sm-msg {
    display: flex;
    margin-bottom: 8px;
    align-items: flex-end;
}

.sm-msg.mine {
    justify-content: flex-end;
}

.sm-msg.other {
    justify-content: flex-start;
}

.sm-msg-bubble {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 18px;
    position: relative;
    word-wrap: break-word;
}

.sm-msg.mine .sm-msg-bubble {
    background: linear-gradient(135deg, #e63946 0%, #c1121f 100%);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.sm-msg.other .sm-msg-bubble {
    background: #fff;
    color: #1a1a1a;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.sm-msg-text {
    font-size: 15px;
    line-height: 1.4;
}

.sm-msg-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    margin-top: 4px;
    font-size: 11px;
    opacity: 0.7;
}

.sm-msg.other .sm-msg-meta {
    color: #888;
}

.sm-msg-read {
    font-size: 12px;
}

.sm-msg-read.read {
    color: #4CAF50;
}

.sm-msg-sender {
    font-size: 12px;
    color: #e63946;
    font-weight: 600;
    margin-bottom: 4px;
}

/* ==========================================================================
   Chat System Messages
   ========================================================================== */
.sm-msg-system {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.sm-msg-system-content {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #666;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 13px;
    text-align: center;
    max-width: 80%;
    border: 1px solid #dee2e6;
}

/* ==========================================================================
   Chat Attachments
   ========================================================================== */
.sm-chat-attach-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 20px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 8px;
}

.sm-chat-attach-btn:hover {
    color: var(--sm-primary);
    background: rgba(230, 57, 70, 0.1);
}

.sm-chat-input-field {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    flex: 1;
}

.sm-chat-input-field textarea {
    flex: 1;
}

.sm-chat-attachment-preview {
    padding: 10px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.sm-attachment-uploading {
    color: #888;
    font-size: 13px;
    padding: 10px;
}

.sm-attachment-preview-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    position: relative;
}

.sm-attachment-preview-item img {
    max-width: 100px;
    max-height: 80px;
    border-radius: 6px;
    object-fit: cover;
}

.sm-attachment-preview-item button {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--sm-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.sm-attachment-preview-file {
    padding: 12px 16px;
}

.sm-attachment-preview-file i {
    font-size: 24px;
    color: var(--sm-primary);
}

.sm-attachment-preview-file span {
    font-size: 13px;
    color: #333;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Message attachments */
.sm-msg-attachment {
    margin-bottom: 8px;
}

.sm-msg-attachment-image img {
    max-width: 250px;
    max-height: 200px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.sm-msg-attachment-image img:hover {
    transform: scale(1.02);
}

.sm-msg-attachment-file a {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.05);
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease;
}

.sm-msg-attachment-file a:hover {
    background: rgba(0, 0, 0, 0.1);
}

.sm-msg-attachment-file i {
    font-size: 20px;
    color: var(--sm-primary);
}

.sm-msg-attachment-file span {
    font-size: 13px;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sm-msg.mine .sm-msg-attachment-file a {
    background: rgba(255, 255, 255, 0.2);
}

.sm-msg.mine .sm-msg-attachment-file a:hover {
    background: rgba(255, 255, 255, 0.3);
}

.sm-msg.mine .sm-msg-attachment-file i {
    color: #fff;
}

/* Closed conversation */
.sm-chat-closed {
    background: #fafafa;
    border-top: 1px solid #eee;
}

/* ====================================
   CANCELLATION CARDS
   ==================================== */

.sm-cancellation-card {
    border-left: 4px solid #f97316;
}

.sm-cancellation-card .sm-avatar {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
}

.sm-cancellation-reason {
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.sm-cancellation-reason h4 {
    font-size: 13px;
    font-weight: 600;
    color: #92400e;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sm-cancellation-reason p {
    font-size: 14px;
    color: #78350f;
    margin: 0;
    font-style: italic;
    line-height: 1.5;
}

/* Badge orange for cancellations */
.sm-admin-card-badge.orange {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

/* ==========================================
   NEWS TIMELINE STYLES
   ========================================== */

.sm-news-timeline {
    padding-bottom: 40px;
}

.sm-timeline {
    position: relative;
    padding-left: 40px;
}

.sm-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #e63946 0%, #1d3557 100%);
}

.sm-timeline-month {
    position: relative;
    margin: 30px 0 20px -40px;
    padding-left: 40px;
}

.sm-timeline-month span {
    display: inline-block;
    background: linear-gradient(135deg, #e63946 0%, #1d3557 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    text-transform: capitalize;
}

.sm-timeline-item {
    position: relative;
    margin-bottom: 25px;
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

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

.sm-timeline-marker {
    position: absolute;
    left: -40px;
    top: 20px;
    z-index: 1;
}

.sm-timeline-dot {
    width: 12px;
    height: 12px;
    background: #e63946;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px #e63946;
    margin-left: 6px;
}

.sm-timeline-content {
    cursor: pointer;
}

.sm-timeline-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f3f4f6;
}

.sm-timeline-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    border-color: #e63946;
}

.sm-timeline-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.sm-timeline-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.sm-timeline-card:hover .sm-timeline-image img {
    transform: scale(1.05);
}

.sm-timeline-body {
    padding: 20px 25px;
}

.sm-timeline-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 12px;
    color: #6b7280;
}

.sm-timeline-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sm-timeline-meta i {
    color: #e63946;
}

.sm-author-badge {
    background: #e63946;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
}

.sm-timeline-category {
    background: #f3f4f6;
    padding: 3px 10px;
    border-radius: 12px;
}

.sm-timeline-title {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 10px;
    line-height: 1.4;
}

.sm-timeline-excerpt {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sm-timeline-footer {
    padding-top: 15px;
    border-top: 1px solid #f3f4f6;
}

.sm-read-more {
    color: #e63946;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.sm-timeline-card:hover .sm-read-more {
    gap: 12px;
}

/* ==========================================
   NEWS EDITOR STYLES
   ========================================== */

.sm-editor-toolbar {
    position: sticky;
    top: 0;
    z-index: 10;
}

.sm-editor-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4b5563;
    transition: all 0.2s ease;
}

.sm-editor-btn:hover {
    background: #e5e7eb;
    color: #1f2937;
}

.sm-editor-btn.sm-ai-btn {
    width: auto;
    padding: 0 12px;
    gap: 6px;
    font-weight: 600;
    font-size: 12px;
}

.sm-editor-btn.sm-ai-btn:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.sm-editor-content {
    font-size: 16px;
    line-height: 1.8;
}

.sm-editor-content:empty::before,
.sm-editor-content.empty::before {
    content: attr(data-placeholder);
    color: #9ca3af;
    pointer-events: none;
}

.sm-editor-content:focus {
    outline: none;
    border-color: #e63946;
}

.sm-editor-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
}

.sm-editor-content a {
    color: #e63946;
    text-decoration: underline;
}

.sm-editor-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 25px 0 15px;
    color: #1f2937;
}

.sm-editor-content ul,
.sm-editor-content ol {
    padding-left: 25px;
    margin: 15px 0;
}

.sm-editor-content li {
    margin-bottom: 8px;
}

/* News Read Modal */
.sm-news-read-modal .sm-news-content {
    font-size: 16px;
    line-height: 1.8;
}

.sm-news-read-modal .sm-news-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.sm-news-read-modal .sm-news-content h2 {
    font-size: 22px;
    margin: 25px 0 15px;
    color: #1f2937;
}

.sm-news-read-modal .sm-news-content ul,
.sm-news-read-modal .sm-news-content ol {
    padding-left: 25px;
}

.sm-news-read-modal .sm-news-content a {
    color: #e63946;
}

/* Responsive */
@media (max-width: 768px) {
    .sm-timeline {
        padding-left: 25px;
    }
    
    .sm-timeline::before {
        left: 8px;
    }
    
    .sm-timeline-month {
        margin-left: -25px;
        padding-left: 25px;
    }
    
    .sm-timeline-marker {
        left: -25px;
    }
    
    .sm-timeline-dot {
        width: 10px;
        height: 10px;
        margin-left: 3px;
    }
    
    .sm-timeline-body {
        padding: 15px;
    }
    
    .sm-timeline-title {
        font-size: 18px;
    }
    
    .sm-news-editor-modal .sm-modal-body > div {
        grid-template-columns: 1fr !important;
    }
    
    .sm-news-editor-modal .sm-modal-body > div > div:first-child {
        border-right: none !important;
        border-bottom: 1px solid #e5e7eb;
    }
}

/* ==========================================
   NEWS EDITOR MODAL - RESPONSIVE
   ========================================== */

/* Container - Fullscreen on all devices */
.sm-news-editor-container {
    width: 95vw !important;
    max-width: 1400px !important;
    height: 90vh !important;
    max-height: 90vh !important;
    display: flex;
    flex-direction: column;
}

/* Body */
.sm-news-editor-body {
    flex: 1;
    overflow: hidden;
    padding: 0 !important;
}

.sm-news-editor-body form {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Tabs - Hidden on desktop, visible on mobile */
.sm-editor-tabs {
    display: none;
    background: #f8f9fa;
    border-bottom: 1px solid #e5e7eb;
    padding: 0;
}

.sm-editor-tab {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.sm-editor-tab.active {
    color: #e63946;
    background: white;
    border-bottom: 2px solid #e63946;
}

/* Layout - Side by side on desktop */
.sm-editor-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    flex: 1;
    overflow: hidden;
}

/* Main editor area */
.sm-editor-main {
    display: flex;
    flex-direction: column;
    padding: 20px;
    overflow-y: auto;
    border-right: 1px solid #e5e7eb;
}

/* Sidebar */
.sm-editor-sidebar {
    padding: 20px;
    background: #f8f9fa;
    overflow-y: auto;
}

/* Title input */
.sm-news-title-input {
    font-size: 22px !important;
    font-weight: 600 !important;
    border: none !important;
    border-bottom: 2px solid #e5e7eb !important;
    border-radius: 0 !important;
    padding: 10px 0 !important;
    background: transparent !important;
    margin-bottom: 15px;
}

.sm-news-title-input:focus {
    border-bottom-color: #e63946 !important;
    box-shadow: none !important;
}

/* Editor toolbar */
.sm-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.sm-toolbar-group {
    display: flex;
    gap: 4px;
    padding-right: 12px;
    border-right: 1px solid #e5e7eb;
}

.sm-toolbar-group:last-child {
    border-right: none;
    padding-right: 0;
}

.sm-toolbar-ai {
    margin-left: auto;
    border-right: none !important;
}

.sm-editor-btn {
    width: 34px;
    height: 34px;
    border: none;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4b5563;
    transition: all 0.2s ease;
    font-size: 14px;
}

.sm-editor-btn:hover {
    background: #e5e7eb;
    color: #1f2937;
}

.sm-editor-btn.sm-ai-btn {
    width: auto;
    padding: 0 14px;
    gap: 6px;
    font-weight: 600;
    font-size: 13px;
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    color: white;
}

.sm-editor-btn.sm-ai-btn:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

/* Content editor */
.sm-editor-content {
    flex: 1;
    min-height: 300px;
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 0 0 8px 8px;
    outline: none;
    line-height: 1.8;
    font-size: 15px;
    background: white;
    overflow-y: auto;
}

.sm-editor-content:focus {
    border-color: #e63946;
}

.sm-editor-content:empty::before,
.sm-editor-content.empty::before {
    content: attr(data-placeholder);
    color: #9ca3af;
    pointer-events: none;
}

/* Sidebar labels */
.sm-editor-label {
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    font-size: 13px;
    color: #374151;
}

.sm-editor-label i {
    color: #e63946;
    margin-right: 6px;
}

/* Featured image preview */
.sm-featured-preview {
    width: 100%;
    height: 140px;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    background: white;
    transition: border-color 0.2s;
}

.sm-featured-preview:hover {
    border-color: #e63946;
}

.sm-featured-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sm-featured-placeholder {
    text-align: center;
    color: #9ca3af;
}

.sm-featured-placeholder i {
    font-size: 28px;
    margin-bottom: 8px;
    display: block;
}

.sm-featured-placeholder span {
    font-size: 12px;
}

/* Footer */
.sm-news-editor-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-top: 1px solid #e5e7eb;
    background: #f8f9fa;
    flex-shrink: 0;
}

.sm-footer-actions {
    display: flex;
    gap: 10px;
}

/* Form groups in sidebar */
.sm-editor-sidebar .sm-form-group {
    margin-bottom: 18px;
}

.sm-editor-sidebar .sm-form-group:last-child {
    margin-bottom: 0;
}

/* ==========================================
   RESPONSIVE - TABLET
   ========================================== */
@media (max-width: 1024px) {
    .sm-news-editor-container {
        width: 98vw !important;
    }
    
    .sm-editor-layout {
        grid-template-columns: 1fr 300px;
    }
    
    .sm-toolbar-ai .sm-ai-label {
        display: none;
    }
}

/* ==========================================
   RESPONSIVE - MOBILE
   ========================================== */
@media (max-width: 768px) {
    .sm-news-editor-container {
        width: 100vw !important;
        height: 100vh !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
        margin: 0 !important;
    }
    
    .sm-news-editor-modal .sm-modal-header {
        border-radius: 0 !important;
    }
    
    /* Show tabs on mobile */
    .sm-editor-tabs {
        display: flex;
    }
    
    /* Stack layout vertically */
    .sm-editor-layout {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
    }
    
    /* Hide panels based on active tab */
    .sm-editor-main {
        display: none;
        border-right: none;
        padding: 15px;
    }
    
    .sm-editor-main.active {
        display: flex;
    }
    
    .sm-editor-sidebar {
        display: none;
        padding: 15px;
    }
    
    .sm-editor-sidebar.active {
        display: block;
    }
    
    /* By default, show content panel */
    .sm-editor-main {
        display: flex;
    }
    
    /* Toolbar adjustments */
    .sm-editor-toolbar {
        gap: 5px;
        padding: 8px;
    }
    
    .sm-toolbar-group {
        padding-right: 8px;
    }
    
    .sm-editor-btn {
        width: 32px;
        height: 32px;
    }
    
    .sm-editor-btn.sm-ai-btn {
        padding: 0 10px;
    }
    
    /* Title input */
    .sm-news-title-input {
        font-size: 18px !important;
    }
    
    /* Content editor */
    .sm-editor-content {
        min-height: 250px;
        padding: 15px;
        font-size: 14px;
    }
    
    /* Footer */
    .sm-news-editor-footer {
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px 15px;
    }
    
    .sm-news-editor-footer .sm-btn-text {
        display: none;
    }
    
    .sm-footer-actions {
        flex: 1;
        justify-content: flex-end;
    }
    
    .sm-footer-actions .sm-btn {
        padding: 10px 15px;
    }
}

/* ==========================================
   RESPONSIVE - SMALL MOBILE
   ========================================== */
@media (max-width: 480px) {
    .sm-toolbar-group {
        padding-right: 5px;
        gap: 2px;
    }
    
    .sm-editor-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .sm-featured-preview {
        height: 120px;
    }
}

/* ==========================================
   NEWS IMAGES - ASPECT RATIO 16:9
   ========================================== */

/* Featured image in read modal */
.sm-news-featured-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 350px;
    overflow: hidden;
    background: #f3f4f6;
}

.sm-news-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Featured image preview in editor - 16:9 ratio */
.sm-featured-preview {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto !important;
    min-height: 120px;
    max-height: 180px;
}

/* Timeline card images - 16:9 ratio */
.sm-timeline-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 220px;
    overflow: hidden;
    background: #f3f4f6;
}

.sm-timeline-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Dashboard news preview click */
.sm-news-item {
    cursor: pointer;
    transition: background 0.2s ease;
}

.sm-news-item:hover {
    background: #f9fafb;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sm-news-featured-image {
        max-height: 200px;
    }
    
    .sm-timeline-image {
        max-height: 180px;
    }
    
    .sm-featured-preview {
        min-height: 100px;
        max-height: 140px;
    }
}

/* ==========================================
   TOPBAR USER DISPLAY - PHOTO + FIRSTNAME
   ========================================== */

.sm-user-display {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 12px;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.1) 0%, rgba(29, 53, 87, 0.1) 100%);
    border-radius: 25px;
    margin-left: 5px;
}

.sm-topbar-user-photo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #e63946 0%, #1d3557 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.sm-topbar-user-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sm-topbar-user-photo .sm-user-initials {
    color: white;
    font-size: 14px;
    font-weight: 600;
}

.sm-user-firstname {
    font-weight: 600;
    color: #1f2937;
    font-size: 14px;
    white-space: nowrap;
}

/* Responsive */
@media (max-width: 1024px) {
    .sm-user-display {
        display: none;
    }
}

@media (max-width: 768px) {
    .sm-user-display {
        display: none;
    }
}

/* ==========================================
   NEWS VIEW MODAL - 2/3 SCREEN WIDTH
   ========================================== */

.sm-news-view-container {
    width: 66vw !important;
    max-width: 1000px !important;
    min-width: 600px;
    height: 85vh !important;
    max-height: 85vh !important;
    display: flex;
    flex-direction: column;
    border-radius: 16px !important;
}

.sm-news-view-body {
    flex: 1;
    overflow-y: auto;
    padding: 0 !important;
}

.sm-news-view-content {
    padding: 30px;
}

.sm-news-view-title {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 25px;
    line-height: 1.3;
}

.sm-news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #6b7280;
}

.sm-news-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sm-news-meta i {
    color: #e63946;
}

.sm-news-meta .sm-author-badge {
    background: #e63946;
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    margin-left: 5px;
    font-weight: 500;
}

.sm-news-view-body .sm-news-content {
    font-size: 16px;
    line-height: 1.9;
    color: #374151;
}

.sm-news-view-body .sm-news-content p {
    margin-bottom: 1.2em;
}

.sm-news-view-body .sm-news-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.sm-news-view-body .sm-news-content h2 {
    font-size: 22px;
    margin: 30px 0 15px;
    color: #1f2937;
}

.sm-news-view-body .sm-news-content ul,
.sm-news-view-body .sm-news-content ol {
    padding-left: 25px;
    margin: 15px 0;
}

.sm-news-view-body .sm-news-content a {
    color: #e63946;
    text-decoration: underline;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .sm-news-view-container {
        width: 85vw !important;
        min-width: auto;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .sm-news-view-container {
        width: 100vw !important;
        height: 100vh !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
    }
    
    .sm-news-view-content {
        padding: 20px;
    }
    
    .sm-news-view-title {
        font-size: 22px;
    }
    
    .sm-news-meta {
        gap: 12px;
        font-size: 13px;
    }
    
    .sm-news-view-body .sm-news-content {
        font-size: 15px;
    }
}

/* ==========================================
   IMAGE GALLERY MODAL
   ========================================== */

.sm-gallery-category {
    margin-bottom: 25px;
}

.sm-gallery-category h4 {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e7eb;
}

.sm-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.sm-gallery-item {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.sm-gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.sm-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sm-gallery-item:hover img {
    transform: scale(1.05);
}

.sm-gallery-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
}

@media (max-width: 768px) {
    .sm-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .sm-gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   SCHEDULE PICKER
   ========================================== */

.sm-schedule-picker {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    border: 1px solid #e5e7eb;
}

.sm-schedule-quick-btns {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.sm-quick-btn {
    flex: 1;
    min-width: 90px;
    padding: 8px 12px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sm-quick-btn:hover {
    background: #e63946;
    color: white;
    border-color: #e63946;
}

.sm-quick-btn.active {
    background: #e63946;
    color: white;
    border-color: #e63946;
}

.sm-schedule-inputs {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sm-schedule-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sm-schedule-row label {
    width: 50px;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
}

.sm-schedule-row input[type="date"] {
    flex: 1;
}

.sm-time-picker {
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 1;
}

.sm-time-select {
    width: auto !important;
    min-width: 65px;
    text-align: center;
}

.sm-time-sep {
    font-size: 18px;
    font-weight: 600;
    color: #374151;
}

/* ==========================================
   FEATURED IMAGE PLACEHOLDER UPDATE
   ========================================== */

.sm-featured-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 120px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sm-featured-placeholder:hover {
    border-color: #e63946;
    background: linear-gradient(135deg, #fff5f5 0%, #fee2e2 100%);
}

.sm-featured-placeholder i {
    font-size: 32px;
    color: #9ca3af;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.sm-featured-placeholder:hover i {
    color: #e63946;
}

.sm-featured-placeholder span {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

/* ==========================================
   SWITCH TOGGLE
   ========================================== */

.sm-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    flex-shrink: 0;
}

.sm-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.sm-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 28px;
}

.sm-switch-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.sm-switch input:checked + .sm-switch-slider {
    background: linear-gradient(135deg, #e63946 0%, #c1121f 100%);
}

.sm-switch input:checked + .sm-switch-slider:before {
    transform: translateX(24px);
}

.sm-switch input:focus + .sm-switch-slider {
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.2);
}

/* ==========================================================================
   MODERN FILTERS & SEARCH STYLES
   ========================================================================== */

/* Filter Container */
.sm-filters-modern {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid #e2e8f0;
}

.sm-filters-modern-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.sm-filters-modern-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sm-filters-modern-header h4 i {
    color: #e63946;
}

.sm-filters-clear {
    font-size: 13px;
    color: #64748b;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.sm-filters-clear:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.sm-filters-grid {
    display: grid;
    grid-template-columns: 2fr repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

@media (max-width: 768px) {
    .sm-filters-grid {
        grid-template-columns: 1fr;
    }
}

/* Modern Search Box */
.sm-search-modern {
    position: relative;
    width: 100%;
}

.sm-search-modern input {
    width: 100%;
    padding: 14px 20px 14px 50px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    background: white;
    transition: all 0.3s ease;
    color: #1e293b;
}

.sm-search-modern input:focus {
    outline: none;
    border-color: #e63946;
    box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.1);
}

.sm-search-modern input::placeholder {
    color: #94a3b8;
}

.sm-search-modern .sm-search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 16px;
    pointer-events: none;
    transition: color 0.3s ease;
}

.sm-search-modern input:focus + .sm-search-icon,
.sm-search-modern:focus-within .sm-search-icon {
    color: #e63946;
}

.sm-search-modern .sm-search-clear {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: #e2e8f0;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    font-size: 12px;
    transition: all 0.2s ease;
}

.sm-search-modern .sm-search-clear:hover {
    background: #e63946;
    color: white;
}

.sm-search-modern.has-value .sm-search-clear {
    display: flex;
}

/* Modern Select */
.sm-select-modern {
    position: relative;
    width: 100%;
}

.sm-select-modern select {
    width: 100%;
    padding: 14px 45px 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    background: white;
    color: #1e293b;
    cursor: pointer;
    appearance: none;
    transition: all 0.3s ease;
}

.sm-select-modern select:focus {
    outline: none;
    border-color: #e63946;
    box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.1);
}

.sm-select-modern::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.sm-select-modern select:focus + .sm-select-modern::after {
    transform: translateY(-50%) rotate(180deg);
}

/* Filter Tags */
.sm-filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.sm-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #e63946 0%, #c1121f 100%);
    color: white;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.sm-filter-tag button {
    background: none;
    border: none;
    color: white;
    opacity: 0.8;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.sm-filter-tag button:hover {
    opacity: 1;
}

/* Year Filter Pills */
.sm-year-filter {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.sm-year-pill {
    padding: 8px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    background: white;
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sm-year-pill:hover {
    border-color: #e63946;
    color: #e63946;
}

.sm-year-pill.active {
    background: linear-gradient(135deg, #e63946 0%, #c1121f 100%);
    border-color: #e63946;
    color: white;
}

/* ==========================================================================
   NEWSLETTER TIMELINE STYLES
   ========================================================================== */

.sm-newsletter-timeline {
    position: relative;
    padding-left: 40px;
}

.sm-newsletter-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #e63946 0%, #f1f5f9 100%);
    border-radius: 3px;
}

.sm-timeline-item {
    position: relative;
    padding: 20px;
    background: white;
    border-radius: 16px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.sm-timeline-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-color: #e63946;
}

.sm-timeline-item::before {
    content: '';
    position: absolute;
    left: -33px;
    top: 28px;
    width: 16px;
    height: 16px;
    background: white;
    border: 3px solid #e63946;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(230, 57, 70, 0.3);
}

.sm-timeline-item.sent::before {
    background: #22c55e;
    border-color: #22c55e;
}

.sm-timeline-item.draft::before {
    background: #f59e0b;
    border-color: #f59e0b;
}

.sm-timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.sm-timeline-title {
    font-size: 17px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.sm-timeline-date {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.sm-timeline-date-day {
    font-size: 24px;
    font-weight: 700;
    color: #e63946;
    line-height: 1;
}

.sm-timeline-date-month {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
}

.sm-timeline-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: #64748b;
    font-size: 14px;
}

.sm-timeline-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sm-timeline-meta i {
    color: #e63946;
    font-size: 13px;
}

.sm-timeline-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.sm-timeline-actions .sm-btn {
    padding: 8px 16px;
    font-size: 13px;
}

/* Newsletter Stats Cards */
.sm-newsletter-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.sm-newsletter-stat-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.sm-newsletter-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.sm-newsletter-stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.sm-newsletter-stat-icon.red {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #e63946;
}

.sm-newsletter-stat-icon.green {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #22c55e;
}

.sm-newsletter-stat-icon.blue {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #3b82f6;
}

.sm-newsletter-stat-icon.purple {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    color: #8b5cf6;
}

.sm-newsletter-stat-content {
    flex: 1;
}

.sm-newsletter-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1;
}

.sm-newsletter-stat-label {
    font-size: 14px;
    color: #64748b;
    margin-top: 4px;
}

/* Last Login Badge */
.sm-last-login {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sm-last-login-date {
    font-size: 13px;
    color: #1e293b;
}

.sm-last-login-time {
    font-size: 11px;
    color: #94a3b8;
}

.sm-last-login-never {
    font-size: 13px;
    color: #94a3b8;
    font-style: italic;
}

.sm-last-login-recent {
    color: #22c55e;
}

.sm-last-login-old {
    color: #f59e0b;
}

.sm-last-login-very-old {
    color: #ef4444;
}

/* ========================================
   MOBILE RESPONSIVE IMPROVEMENTS v0.8.2
   ======================================== */

/* Home Button in topbar-right - Inherits from sm-icon-btn */
.sm-home-btn {
    /* Uses default icon btn styles */
}

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

/* Mobile: Menu hamburger first, then Home button */
@media (max-width: 768px) {
    .sm-topbar-right {
        display: flex;
    }
    
    .sm-mobile-menu-btn {
        order: -2; /* Menu hamburger first */
    }
    
    .sm-home-btn {
        order: -1; /* Home button second */
    }
    
    .sm-topbar-logo span {
        display: none;
    }
}

/* ========================================
   MOBILE CARDS SYSTEM (replaces tables)
   ======================================== */

.sm-mobile-cards {
    display: none;
}

@media (max-width: 768px) {
    /* Show mobile cards only when they exist alongside tables */
    .sm-mobile-cards {
        display: block !important;
    }
    
    /* Hide tables only when mobile cards are present as sibling */
    .sm-mobile-cards + .sm-table-responsive,
    .sm-card:has(.sm-mobile-cards) .sm-table-responsive {
        display: none !important;
    }
    
    /* Mobile Card Style */
    .sm-mobile-card {
        background: white;
        border-radius: 12px;
        padding: 16px;
        margin-bottom: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        border: 1px solid #e2e8f0;
    }
    
    .sm-mobile-card-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 12px;
        gap: 10px;
    }
    
    .sm-mobile-card-title {
        font-weight: 600;
        font-size: 15px;
        color: #1e293b;
        flex: 1;
        line-height: 1.4;
    }
    
    .sm-mobile-card-badge {
        flex-shrink: 0;
    }
    
    .sm-mobile-card-content {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .sm-mobile-card-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 13px;
        padding: 4px 0;
    }
    
    .sm-mobile-card-label {
        color: #64748b;
        display: flex;
        align-items: center;
        gap: 6px;
    }
    
    .sm-mobile-card-value {
        color: #1e293b;
        font-weight: 500;
        text-align: right;
    }
    
    .sm-mobile-card-actions {
        display: flex;
        gap: 8px;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid #e2e8f0;
        flex-wrap: wrap;
    }
    
    .sm-mobile-card-actions .sm-btn {
        flex: 1;
        min-width: 80px;
        justify-content: center;
    }
    
    /* Page Header Mobile */
    .sm-page-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }
    
    .sm-page-header h1 {
        font-size: 20px !important;
    }
    
    .sm-page-actions {
        display: flex;
        gap: 8px;
    }
    
    .sm-page-actions .sm-btn {
        flex: 1;
        justify-content: center;
        font-size: 13px;
        padding: 10px 12px;
    }
    
    /* Filters Mobile */
    .sm-filters-bar,
    .sm-filters-modern {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .sm-filters-bar .sm-filter-group,
    .sm-filters-modern .sm-filter-group {
        width: 100% !important;
    }
    
    .sm-filters-bar select,
    .sm-filters-bar input,
    .sm-filters-modern select,
    .sm-filters-modern input {
        width: 100% !important;
        font-size: 16px !important; /* Prevent zoom on iOS */
    }
    
    .sm-search-modern {
        width: 100% !important;
    }
    
    .sm-search-modern input {
        width: 100% !important;
        font-size: 16px !important;
        padding: 12px 40px 12px 16px !important;
    }
    
    /* Year Pills Scroll */
    .sm-year-filter {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        padding-bottom: 8px;
    }
    
    .sm-year-pill {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    /* Stats Cards Mobile */
    .sm-stats-grid,
    .sm-newsletter-stats {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .sm-stat-card,
    .sm-newsletter-stat-card {
        width: 100% !important;
        padding: 14px !important;
    }
    
    .sm-stat-value,
    .sm-newsletter-stat-value {
        font-size: 22px !important;
    }
    
    .sm-stat-label,
    .sm-newsletter-stat-label {
        font-size: 11px !important;
    }
    
    /* Admin Cards Grid */
    .sm-admin-cards {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
}

/* ========================================
   PV CSE PAGE - Mobile Improvements
   ======================================== */

@media (max-width: 768px) {
    .sm-pv-search-bar,
    .sm-meetings-search {
        flex-direction: column;
        gap: 10px;
    }
    
    .sm-pv-search-bar input,
    .sm-meetings-search input {
        width: 100% !important;
        min-width: unset !important;
        font-size: 16px !important;
        padding: 14px 16px !important;
        border-radius: 10px !important;
    }
    
    .sm-pv-search-bar select,
    .sm-meetings-search select {
        width: 100% !important;
        font-size: 16px !important;
        padding: 14px 16px !important;
    }
}

/* ========================================
   GROUPS / DISCUSSIONS PAGE - Mobile
   ======================================== */

@media (max-width: 768px) {
    .sm-groups-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    
    .sm-group-card {
        padding: 16px !important;
    }
    
    .sm-group-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .sm-group-members-list {
        flex-wrap: wrap;
    }
    
    .sm-group-actions {
        width: 100%;
        display: flex;
        gap: 8px;
    }
    
    .sm-group-actions .sm-btn {
        flex: 1;
        justify-content: center;
    }
}

/* ========================================
   ADMIN PENDING PAGES - Mobile
   ======================================== */

@media (max-width: 768px) {
    .sm-pending-list {
        gap: 12px;
    }
    
    .sm-pending-card {
        padding: 16px;
    }
    
    .sm-pending-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .sm-pending-info {
        width: 100%;
    }
    
    .sm-pending-actions {
        width: 100%;
        display: flex;
        gap: 8px;
    }
    
    .sm-pending-actions .sm-btn {
        flex: 1;
        justify-content: center;
        padding: 10px;
    }
    
    .sm-validation-card {
        padding: 16px;
    }
    
    .sm-validation-card-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .sm-validation-actions {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .sm-validation-actions .sm-btn {
        flex: 1;
        min-width: 100px;
    }
}

/* ========================================
   ADMIN MEMBERS PAGE - Mobile Cards
   ======================================== */

@media (max-width: 768px) {
    .sm-members-filters {
        flex-direction: column;
        gap: 10px;
    }
    
    .sm-members-filters select,
    .sm-members-filters input {
        width: 100% !important;
        font-size: 16px !important;
        padding: 12px !important;
    }
    
    /* Member Cards instead of table */
    .sm-member-mobile-card {
        background: white;
        border-radius: 12px;
        padding: 16px;
        margin-bottom: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        border: 1px solid #e2e8f0;
    }
    
    .sm-member-mobile-header {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 12px;
    }
    
    .sm-member-mobile-avatar {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background: linear-gradient(135deg, #e63946, #d62839);
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
        font-size: 18px;
        flex-shrink: 0;
    }
    
    .sm-member-mobile-info {
        flex: 1;
        min-width: 0;
    }
    
    .sm-member-mobile-name {
        font-weight: 600;
        font-size: 16px;
        color: #1e293b;
        margin-bottom: 2px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .sm-member-mobile-email {
        font-size: 13px;
        color: #64748b;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .sm-member-mobile-details {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-bottom: 12px;
        padding: 12px;
        background: #f8fafc;
        border-radius: 8px;
    }
    
    .sm-member-mobile-detail {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }
    
    .sm-member-mobile-detail-label {
        font-size: 11px;
        color: #94a3b8;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .sm-member-mobile-detail-value {
        font-size: 13px;
        color: #1e293b;
        font-weight: 500;
    }
    
    .sm-member-mobile-actions {
        display: flex;
        gap: 8px;
    }
    
    .sm-member-mobile-actions .sm-btn {
        flex: 1;
        justify-content: center;
        padding: 10px;
        font-size: 13px;
    }
}

/* ========================================
   ADMIN ACCOUNTING PAGE - Mobile
   ======================================== */

@media (max-width: 768px) {
    /* Tabs scrollable */
    .sm-accounting-tabs,
    .sm-tabs {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 0;
        padding-bottom: 2px;
        border-bottom: 2px solid #e2e8f0;
        margin-bottom: 16px;
    }
    
    .sm-accounting-tab,
    .sm-tab {
        flex-shrink: 0;
        padding: 12px 16px;
        font-size: 13px;
        white-space: nowrap;
        border-bottom: 2px solid transparent;
        margin-bottom: -2px;
    }
    
    .sm-accounting-tab.active,
    .sm-tab.active {
        border-bottom-color: var(--sm-primary, #e63946);
    }
    
    /* Accounting filters */
    .sm-accounting-filters {
        flex-direction: column;
        gap: 10px;
    }
    
    .sm-accounting-filters select,
    .sm-accounting-filters input {
        width: 100% !important;
        font-size: 16px !important;
        padding: 12px !important;
    }
    
    /* Transaction Cards */
    .sm-transaction-card {
        background: white;
        border-radius: 12px;
        padding: 16px;
        margin-bottom: 10px;
        border: 1px solid #e2e8f0;
    }
    
    .sm-transaction-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 10px;
    }
    
    .sm-transaction-title {
        font-weight: 600;
        color: #1e293b;
        font-size: 14px;
    }
    
    .sm-transaction-amount {
        font-weight: 700;
        font-size: 16px;
    }
    
    .sm-transaction-amount.income {
        color: #22c55e;
    }
    
    .sm-transaction-amount.expense {
        color: #ef4444;
    }
    
    .sm-transaction-details {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        font-size: 12px;
        color: #64748b;
    }
    
    .sm-transaction-detail {
        display: flex;
        align-items: center;
        gap: 4px;
    }
}

/* ========================================
   ADMIN STATISTICS PAGE - Mobile
   ======================================== */

@media (max-width: 768px) {
    .sm-stats-page {
        padding: 0 !important;
    }
    
    .sm-stats-page .sm-card {
        border-radius: 0;
        margin: 0 -16px 16px;
        padding: 16px;
    }
    
    .sm-chart-container {
        height: 250px !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .sm-stats-summary {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }
    
    .sm-stats-period-selector {
        flex-direction: column;
        gap: 10px;
    }
    
    .sm-stats-period-selector select,
    .sm-stats-period-selector input {
        width: 100% !important;
        font-size: 16px !important;
    }
    
    /* Prevent horizontal scroll */
    .sm-stats-page,
    .sm-admin-stats {
        max-width: 100vw;
        overflow-x: hidden;
    }
}

/* ========================================
   GENERAL MOBILE FIXES
   ======================================== */

@media (max-width: 768px) {
    /* Prevent horizontal scroll globally */
    .sm-app-layout,
    .sm-main-content,
    .sm-page-content {
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    /* Card padding */
    .sm-card {
        padding: 16px !important;
        border-radius: 12px;
    }
    
    /* Buttons */
    .sm-btn {
        font-size: 13px;
        padding: 10px 14px;
    }
    
    .sm-btn-sm {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    /* Modals always fullscreen on mobile */
    .sm-modal-container {
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        border-radius: 0 !important;
        margin: 0 !important;
    }
    
    /* Empty state */
    .sm-empty-state {
        padding: 40px 20px;
    }
    
    .sm-empty-state i {
        font-size: 48px;
    }
    
    .sm-empty-state h3 {
        font-size: 18px;
    }
}

/* ========================================
   MODERN DROPDOWN SELECT - Mobile
   ======================================== */

.sm-dropdown-select {
    position: relative;
    width: 100%;
}

.sm-dropdown-select-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 16px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.2s;
}

.sm-dropdown-select-btn:hover,
.sm-dropdown-select-btn:focus {
    border-color: var(--sm-primary, #e63946);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

.sm-dropdown-select-btn i.fa-chevron-down {
    transition: transform 0.2s;
}

.sm-dropdown-select.open .sm-dropdown-select-btn i.fa-chevron-down {
    transform: rotate(180deg);
}

.sm-dropdown-select-btn .sm-dropdown-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--sm-primary, #e63946) 0%, #1d3557 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.sm-dropdown-select-btn .sm-dropdown-text {
    flex: 1;
    text-align: left;
}

.sm-dropdown-select-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    overflow: hidden;
}

.sm-dropdown-select.open .sm-dropdown-select-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sm-dropdown-select-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid #f1f5f9;
}

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

.sm-dropdown-select-item:hover {
    background: #f8fafc;
}

.sm-dropdown-select-item.active {
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.1) 0%, rgba(29, 53, 87, 0.1) 100%);
}

.sm-dropdown-select-item .sm-dropdown-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 14px;
}

.sm-dropdown-select-item.active .sm-dropdown-item-icon {
    background: linear-gradient(135deg, var(--sm-primary, #e63946) 0%, #1d3557 100%);
    color: white;
}

.sm-dropdown-select-item .sm-dropdown-item-text {
    flex: 1;
}

.sm-dropdown-select-item .sm-dropdown-item-title {
    font-weight: 500;
    color: #1e293b;
    font-size: 14px;
}

.sm-dropdown-select-item .sm-dropdown-item-desc {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
}

.sm-dropdown-select-item .sm-badge {
    margin-left: auto;
}

/* Modern Select Wrapper */
.sm-select-wrapper {
    position: relative;
}

.sm-select-modern-styled {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    padding: 12px 40px 12px 16px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.2s;
}

.sm-select-modern-styled:hover,
.sm-select-modern-styled:focus {
    border-color: var(--sm-primary, #e63946);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
    outline: none;
}

.sm-select-wrapper::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    pointer-events: none;
    font-size: 12px;
}

/* Mobile Tabs as Dropdown */
@media (max-width: 768px) {
    .sm-tabs-mobile-dropdown {
        display: block !important;
        margin-bottom: 16px;
    }
    
    .sm-tabs-desktop {
        display: none !important;
    }
    
    /* Table responsive scroll on mobile for accounting */
    .sm-admin-accounting .sm-table-responsive {
        display: block !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .sm-admin-accounting .sm-table {
        min-width: 600px;
    }
}

@media (min-width: 769px) {
    .sm-tabs-mobile-dropdown {
        display: none !important;
    }
    
    .sm-tabs-desktop {
        display: flex !important;
    }
}

/* ========================================
   ACCOUNTING CARDS - Mobile Design
   ======================================== */

.sm-accounting-filters {
    margin-bottom: 16px;
}

.sm-accounting-filters .sm-filter-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.sm-accounting-filters .sm-select-wrapper {
    flex: 1;
    min-width: 150px;
}

.sm-accounting-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sm-accounting-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.sm-accounting-card-success {
    border-left: 4px solid #22c55e;
}

.sm-accounting-card-warning {
    border-left: 4px solid #f59e0b;
}

.sm-accounting-card-danger {
    border-left: 4px solid #ef4444;
}

.sm-accounting-card-expense {
    border-left: 4px solid #ef4444;
    background: #fef2f2;
}

.sm-accounting-card-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.sm-accounting-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.sm-accounting-card-warning .sm-accounting-card-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.sm-accounting-card-danger .sm-accounting-card-icon,
.sm-accounting-card-icon-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
}

.sm-accounting-card-info {
    flex: 1;
    min-width: 0;
}

.sm-accounting-card-name {
    font-weight: 600;
    font-size: 15px;
    color: #1e293b;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sm-accounting-card-date {
    font-size: 12px;
    color: #94a3b8;
}

.sm-accounting-card-amount {
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.sm-accounting-card-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    color: #64748b;
    padding: 10px 0;
    border-top: 1px solid #f1f5f9;
    margin-bottom: 10px;
}

.sm-accounting-card-details span {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #f8fafc;
    padding: 4px 8px;
    border-radius: 6px;
}

.sm-accounting-card-details .sm-badge {
    padding: 4px 8px;
}

.sm-accounting-card-iban {
    font-size: 11px;
    color: #64748b;
    background: #f8fafc;
    padding: 8px 10px;
    border-radius: 6px;
    margin-bottom: 12px;
    font-family: monospace;
}

.sm-accounting-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}

.sm-accounting-card-actions .sm-btn {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
    flex: none;
}

.sm-accounting-card-actions .sm-btn-success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border: none;
    color: white;
    box-shadow: 0 2px 6px rgba(34, 197, 94, 0.3);
}

.sm-accounting-card-actions .sm-btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}

.sm-accounting-card-actions .sm-btn-danger {
    background: transparent;
    border: 1px solid #fecaca;
    color: #ef4444;
    padding: 8px 12px;
}

.sm-accounting-card-actions .sm-btn-danger:hover {
    background: #fef2f2;
    border-color: #ef4444;
}

.sm-accounting-card-actions .sm-btn-secondary {
    background: transparent;
    border: 1px solid #e2e8f0;
    color: #64748b;
}

.sm-accounting-card-actions .sm-btn-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #475569;
}

.sm-accounting-card-actions .sm-btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: none;
    color: white;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}

.sm-accounting-card-actions .sm-btn-warning:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.sm-accounting-card-actions .sm-btn i {
    font-size: 12px;
}

/* Accounting Actions - Main buttons */
.sm-accounting-actions {
    margin-bottom: 20px;
}

.sm-accounting-actions .sm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.2s ease;
    width: auto;
}

.sm-accounting-actions .sm-btn-success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.sm-accounting-actions .sm-btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.sm-accounting-actions .sm-btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.sm-accounting-actions .sm-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.sm-accounting-actions .sm-btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.sm-accounting-actions .sm-btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

/* Card Header with badge */
.sm-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.sm-card-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

/* Text colors */
.sm-text-success {
    color: #22c55e !important;
}

.sm-text-warning {
    color: #f59e0b !important;
}

.sm-text-danger {
    color: #ef4444 !important;
}

/* ========================================
   MOBILE FIXES v0.8.5
   ======================================== */

/* 1. Modal SEPA - Mobile responsive */
@media (max-width: 768px) {
    #sm-sepa-modal {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    #sm-sepa-modal .sm-modal-overlay {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
    }
    
    #sm-sepa-modal .sm-modal-container {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        border-radius: 0 !important;
        margin: 0 !important;
        transform: none !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    #sm-sepa-modal .sm-modal-header {
        flex-shrink: 0 !important;
        padding: 15px !important;
    }
    
    #sm-sepa-modal .sm-modal-header h2 {
        font-size: 16px !important;
    }
    
    #sm-sepa-modal .sm-modal-body {
        flex: 1 !important;
        overflow-y: auto !important;
        padding: 15px !important;
        max-height: none !important;
    }
    
    #sm-sepa-modal .sepa-summary-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    
    #sm-sepa-modal .sepa-summary-grid > div {
        padding: 12px !important;
    }
    
    #sm-sepa-modal .sepa-summary-grid > div > div:first-child {
        font-size: 28px !important;
    }
    
    #sm-sepa-modal .sepa-info-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    
    #sm-sepa-modal .sepa-table-wrapper {
        max-height: 250px !important;
    }
    
    #sm-sepa-modal .sepa-table {
        min-width: 500px !important;
        font-size: 12px !important;
    }
    
    #sm-sepa-modal .sepa-table th,
    #sm-sepa-modal .sepa-table td {
        padding: 8px 10px !important;
        font-size: 12px !important;
    }
    
    #sm-sepa-modal .sm-modal-footer {
        flex-direction: column !important;
        gap: 10px !important;
        padding: 15px !important;
    }
    
    #sm-sepa-modal .sm-modal-footer .sm-btn {
        width: 100% !important;
        justify-content: center;
    }
    
    #sm-sepa-modal .sm-modal-footer span {
        text-align: center;
        width: 100%;
    }
}

/* 2. News Filters - Mobile Stack */
@media (max-width: 768px) {
    .sm-news-timeline .sm-filters-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    
    .sm-news-timeline .sm-search-modern {
        width: 100% !important;
    }
    
    .sm-news-timeline .sm-select-modern {
        width: 100% !important;
    }
    
    .sm-news-timeline .sm-select-modern select {
        width: 100% !important;
        font-size: 16px !important;
        padding: 12px 16px !important;
    }
    
    .sm-news-timeline .sm-year-filter {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 8px;
        padding-bottom: 8px;
    }
    
    .sm-news-timeline .sm-year-pill {
        flex-shrink: 0;
    }
}

/* 3. Messaging - Remove white bar at bottom */
@media (max-width: 768px) {
    .sm-imessage-container {
        height: 100% !important;
        max-height: 100% !important;
        padding-bottom: 0 !important;
    }
    
    .sm-chat-main {
        padding-bottom: 0 !important;
    }
    
    .sm-chat-input {
        position: relative !important;
        bottom: 0 !important;
        padding-bottom: env(safe-area-inset-bottom, 0) !important;
    }
    
    /* Remove any extra spacing */
    .sm-imessage-chat-area {
        flex: 1;
        display: flex;
        flex-direction: column;
        height: 100%;
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }
    
    /* Fix input area */
    .sm-chat-input-form {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
    
    /* Hide any extra whitespace */
    .sm-imessage-container::after {
        display: none !important;
    }
}

/* 4. PDF Viewer Modal */
.sm-pdf-modal {
    z-index: 9999999 !important;
}

.sm-pdf-modal .sm-modal-container {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    border-radius: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
}

.sm-pdf-modal .sm-modal-header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
}

.sm-pdf-modal .sm-modal-header h2 {
    margin: 0;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sm-pdf-modal .sm-modal-body {
    flex: 1;
    padding: 0 !important;
    overflow: hidden;
}

.sm-pdf-modal iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.sm-pdf-modal .sm-modal-footer {
    flex-shrink: 0;
    padding: 12px 20px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.sm-pdf-modal .sm-modal-footer .sm-btn {
    flex: 1;
    max-width: 200px;
    justify-content: center;
}

/* 5. Invoice cards mobile */
@media (max-width: 768px) {
    .sm-invoices-stats {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    
    .sm-invoice-stat-card {
        padding: 15px !important;
    }
    
    .sm-invoices-list .sm-invoice-card {
        padding: 15px !important;
    }
    
    .sm-invoice-card .sm-invoice-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .sm-invoice-card .sm-invoice-actions .sm-btn {
        width: 100%;
        justify-content: center;
    }
    
    .sm-synthesis-cards {
        flex-direction: column !important;
    }
    
    .sm-synthesis-card {
        flex-direction: column !important;
        text-align: center;
        gap: 10px !important;
    }
}

/* 6. General responsive improvements */
@media (max-width: 768px) {
    /* All modals fullscreen */
    .sm-modal-container {
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        border-radius: 0 !important;
        margin: 0 !important;
    }
    
    /* Page padding */
    .sm-page-content {
        padding: 15px !important;
    }
    
    /* Cards */
    .sm-card {
        padding: 15px !important;
        border-radius: 12px !important;
    }
    
    /* Buttons full width in groups */
    .sm-btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .sm-btn-group .sm-btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Alerts */
    .sm-alert {
        padding: 12px !important;
        font-size: 13px !important;
    }
    
    .sm-alert i {
        font-size: 16px !important;
    }
}

/* ========================================
   MESSAGING FIX - Remove white bar
   ======================================== */
@media (max-width: 768px) {
    /* Fix messaging height calculation */
    .sm-imessage-app {
        height: calc(100vh - 56px) !important;
        height: calc(100dvh - 56px) !important;
        bottom: 0 !important;
    }
    
    /* Chat area fills available space */
    .sm-chat-main {
        display: flex !important;
        flex-direction: column !important;
        height: 100% !important;
    }
    
    /* Messages area grows to fill space */
    .sm-chat-messages {
        flex: 1 !important;
        min-height: 0 !important;
    }
    
    /* Input fixed at actual bottom */
    .sm-chat-input {
        flex-shrink: 0 !important;
        margin-bottom: 0 !important;
        padding-bottom: max(12px, env(safe-area-inset-bottom)) !important;
    }
    
    /* Remove any ::after pseudo elements that might create space */
    .sm-imessage-app::after,
    .sm-chat-main::after,
    .sm-chat-input::after {
        display: none !important;
        content: none !important;
    }
    
    /* Ensure no overflow creates extra space */
    .sm-imessage-app,
    .sm-chat-main {
        overflow: hidden !important;
    }
}

/* SEPA Modal Fullscreen Mobile Fix */
@media (max-width: 768px) {
    .sm-sepa-modal-fullscreen {
        padding: 0 !important;
    }
    
    .sm-sepa-modal-fullscreen .sm-modal-container {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        border-radius: 0 !important;
        margin: 0 !important;
    }
}

/* ========================================
   NEWS DATE STYLING - Dashboard
   ======================================== */
.sm-news-item .sm-news-date {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #e63946 0%, #c1121f 100%);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 15px;
}

.sm-news-item .sm-date-day {
    font-size: 22px;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.sm-news-item .sm-date-month {
    font-size: 11px;
    font-weight: 500;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sm-news-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 10px;
    background: #f8fafc;
    transition: all 0.2s;
}

.sm-news-item:hover {
    background: #f1f5f9;
    transform: translateX(5px);
}

.sm-news-item:last-child {
    margin-bottom: 0;
}

.sm-news-item .sm-news-content {
    flex: 1;
    min-width: 0;
}

.sm-news-item .sm-news-content h4 {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sm-news-item .sm-news-content p {
    margin: 0;
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========================================
   HOME BUTTON - Same style as other icons
   ======================================== */
.sm-topbar-right .sm-home-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--gray-100, #f3f4f6);
    color: var(--gray-600, #4b5563);
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.sm-topbar-right .sm-home-btn:hover {
    background: var(--gray-200, #e5e7eb);
    color: var(--gray-900, #111827);
}

.sm-topbar-right .sm-home-btn i {
    font-size: 16px;
}

@media (max-width: 768px) {
    .sm-topbar-right .sm-home-btn {
        width: 36px;
        height: 36px;
    }
    
    .sm-topbar-right .sm-home-btn i {
        font-size: 14px;
    }
}

/* ========================================
   DASHBOARD SECTIONS MOBILE - Centered
   ======================================== */
@media (max-width: 768px) {
    .sm-dashboard-sections {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 16px !important;
        width: 100% !important;
    }
    
    .sm-dashboard-sections .sm-section-card {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
    }
    
    .sm-section-card {
        border-radius: 16px !important;
    }
    
    .sm-section-header {
        text-align: left;
    }
    
    .sm-section-header h3 {
        font-size: 15px;
    }
}

/* ========================================
   NEWS PREVIEW MOBILE - Better display
   ======================================== */
/* Desktop: show date box, hide text date */
.sm-news-date-mobile {
    display: none;
}

.sm-news-date-desktop {
    display: flex;
}

/* Mobile: hide date box, show text date */
@media (max-width: 768px) {
    .sm-news-item {
        flex-direction: column !important;
        gap: 8px !important;
    }
    
    .sm-news-date-desktop {
        display: none !important;
    }
    
    .sm-news-date-mobile {
        display: block !important;
        font-size: 12px !important;
        color: #e63946 !important;
        font-weight: 500 !important;
        margin: 0 0 4px 0 !important;
    }
    
    .sm-news-content h4 {
        font-size: 14px !important;
        line-height: 1.3 !important;
        margin-bottom: 4px !important;
    }
    
    .sm-news-excerpt {
        font-size: 12px !important;
        color: #64748b !important;
        line-height: 1.4 !important;
        margin: 0 !important;
    }
}


/* ========================================
   BILAN COMPTABLE / BALANCE STYLES
   ======================================== */

.sm-balance-container {
    padding: 0;
}

.sm-balance-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
}

.sm-balance-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sm-balance-header h2 i {
    color: #6366f1;
}

.sm-balance-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.sm-balance-controls .sm-select-wrapper select {
    min-width: 120px;
}

/* Year Selector */
.sm-year-selector {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
}

.sm-year-btn {
    background: transparent;
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    color: var(--sm-primary);
    transition: all 0.2s;
    font-size: 14px;
}

.sm-year-btn:hover {
    background: var(--sm-primary);
    color: white;
}

.sm-year-display {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 18px;
    font-weight: 700;
    color: var(--sm-text);
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
}

.sm-year-display i {
    color: var(--sm-primary);
    font-size: 16px;
}

.sm-balance-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.sm-btn-outline {
    background: transparent;
    border: 2px solid #d1d5db;
    color: #374151;
}

.sm-btn-outline:hover {
    border-color: #9ca3af;
    color: #1f2937 !important;
    background: #f3f4f6;
}

/* Balance Tabs */
.sm-balance-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    background: #f1f5f9;
    padding: 6px;
    border-radius: 12px;
}

.sm-balance-tab {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.sm-balance-tab:hover {
    color: var(--sm-text);
    background: rgba(255,255,255,0.5);
}

.sm-balance-tab.active {
    background: white;
    color: var(--sm-primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.sm-balance-tab i {
    font-size: 13px;
}

/* Balance Stats Cards */
.sm-balance-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.sm-balance-stat-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.sm-balance-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.sm-balance-stat-card .sm-stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.sm-balance-stat-card.sm-stat-success .sm-stat-icon {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(34, 197, 94, 0.05) 100%);
    color: #22c55e;
}

.sm-balance-stat-card.sm-stat-danger .sm-stat-icon {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.05) 100%);
    color: #ef4444;
}

.sm-balance-stat-card.sm-stat-primary .sm-stat-icon {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(99, 102, 241, 0.05) 100%);
    color: #6366f1;
}

.sm-balance-stat-card.sm-stat-warning .sm-stat-icon {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(245, 158, 11, 0.05) 100%);
    color: #f59e0b;
}

.sm-balance-stat-card.sm-stat-info .sm-stat-icon {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.05) 100%);
    color: #3b82f6;
}

.sm-balance-stat-card.sm-stat-secondary .sm-stat-icon {
    background: linear-gradient(135deg, rgba(100, 116, 139, 0.15) 0%, rgba(100, 116, 139, 0.05) 100%);
    color: #64748b;
}

.sm-balance-stat-card .sm-stat-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.sm-balance-stat-card .sm-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
}

.sm-balance-stat-card .sm-stat-label {
    font-size: 0.8rem;
    color: #64748b;
    white-space: nowrap;
}

.sm-balance-stat-card .sm-stat-variation {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.sm-stat-variation.positive {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.sm-stat-variation.negative {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* Balance Charts */
.sm-balance-charts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.sm-balance-chart-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
}

.sm-balance-chart-card h3 {
    margin: 0 0 20px 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sm-balance-chart-card h3 i {
    color: #6366f1;
}

.sm-chart-container {
    height: 220px;
    position: relative;
}

.sm-chart-container-large {
    height: 300px;
    position: relative;
}

.sm-chart-legend {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.sm-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #64748b;
}

.sm-legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    flex-shrink: 0;
}

.sm-legend-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.sm-legend-value {
    font-weight: 600;
    color: #1e293b;
}

/* Evolution Chart */
.sm-balance-evolution-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
    margin-bottom: 24px;
}

.sm-balance-evolution-card h3 {
    margin: 0 0 20px 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sm-balance-evolution-card h3 i {
    color: #3b82f6;
}

/* Balance Tables */
.sm-balance-tables {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.sm-balance-table-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
}

.sm-balance-table-card .sm-table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.sm-balance-table-card .sm-table-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sm-balance-table {
    width: 100%;
    border-collapse: collapse;
}

.sm-balance-table th,
.sm-balance-table td {
    padding: 12px 10px;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.875rem;
}

.sm-balance-table th {
    font-weight: 600;
    color: #64748b;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sm-balance-table td {
    color: #1e293b;
}

.sm-balance-table .text-right {
    text-align: right;
}

.sm-balance-table .text-muted {
    color: #94a3b8;
}

.sm-balance-table .sm-row-highlight {
    background: #f8fafc;
}

.sm-balance-table .sm-row-highlight td:first-child {
    font-weight: 500;
}

.sm-balance-table tfoot .sm-row-total {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.sm-balance-table tfoot .sm-row-total td {
    border-top: 2px solid #e2e8f0;
    border-bottom: none;
    padding: 14px 10px;
}

/* Detail View Styles */
.sm-detail-view {
    animation: fadeIn 0.3s ease-out;
}

.sm-detail-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.sm-summary-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
}

.sm-summary-card.sm-summary-success {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #86efac;
}

.sm-summary-card.sm-summary-danger {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-color: #fca5a5;
}

.sm-summary-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--sm-primary);
}

.sm-summary-card.sm-summary-success .sm-summary-icon {
    background: rgba(34, 197, 94, 0.15);
    color: #16a34a;
}

.sm-summary-card.sm-summary-danger .sm-summary-icon {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

.sm-summary-content {
    flex: 1;
}

.sm-summary-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--sm-text);
}

.sm-summary-label {
    display: block;
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 2px;
}

.sm-detail-charts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.sm-chart-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
}

.sm-chart-card h3 {
    margin: 0 0 16px 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--sm-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sm-chart-card h3 i {
    color: var(--sm-primary);
}

.sm-chart-container-medium {
    height: 250px;
}

.sm-detail-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
}

.sm-detail-section h3 {
    margin: 0 0 16px 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--sm-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sm-detail-section h3 i {
    color: var(--sm-primary);
}

.sm-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.sm-section-header h3 {
    margin: 0;
}

.sm-section-actions {
    display: flex;
    gap: 8px;
}

.sm-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.sm-category-card {
    background: #f8fafc;
    border-radius: 10px;
    padding: 16px;
    border: 1px solid #e2e8f0;
}

.sm-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.sm-category-name {
    font-weight: 600;
    color: var(--sm-text);
}

.sm-category-amount {
    font-weight: 700;
    color: #ef4444;
}

.sm-category-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.sm-category-progress {
    height: 100%;
    background: linear-gradient(90deg, #ef4444, #f97316);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.sm-category-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #64748b;
}

/* Legal View Styles */
.sm-legal-view {
    animation: fadeIn 0.3s ease-out;
}

.sm-legal-header {
    margin-bottom: 24px;
}

.sm-legal-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
}

.sm-legal-section h3 {
    margin: 0 0 20px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--sm-text);
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.sm-legal-section h3 i {
    color: var(--sm-primary);
}

.sm-legal-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.sm-legal-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
}

.sm-legal-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: #64748b;
}

.sm-legal-card-header i {
    font-size: 1.2rem;
    color: var(--sm-primary);
}

.sm-legal-card-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--sm-text);
    margin-bottom: 12px;
}

.sm-legal-card-status {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 8px;
}

.sm-legal-card-status.status-ok {
    background: #dcfce7;
    color: #16a34a;
}

.sm-legal-card-status.status-warning {
    background: #fef3c7;
    color: #d97706;
}

.sm-legal-card-status.status-info {
    background: #dbeafe;
    color: #2563eb;
}

.sm-checklist {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sm-checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.sm-checklist-item i {
    font-size: 1.2rem;
    color: #cbd5e1;
    margin-top: 2px;
}

.sm-checklist-item.checked i {
    color: #22c55e;
}

.sm-checklist-item strong {
    display: block;
    margin-bottom: 4px;
    color: var(--sm-text);
}

.sm-checklist-item p {
    margin: 0;
    font-size: 0.9rem;
    color: #64748b;
}

.sm-legal-refs {
    display: grid;
    gap: 12px;
}

.sm-legal-ref {
    padding: 16px;
    background: #f8fafc;
    border-radius: 10px;
    border-left: 4px solid var(--sm-primary);
}

.sm-legal-ref strong {
    display: block;
    margin-bottom: 6px;
    color: var(--sm-text);
    font-size: 0.95rem;
}

.sm-legal-ref p {
    margin: 0;
    font-size: 0.9rem;
    color: #64748b;
}

.sm-legal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
}

/* Result Card */
.sm-balance-result-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    padding: 28px;
    border: 1px solid #e2e8f0;
}

.sm-balance-result-card h3 {
    margin: 0 0 20px 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sm-balance-result-card h3 i {
    color: #f59e0b;
}

.sm-result-grid {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.sm-result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.sm-result-row:last-child {
    border-bottom: none;
}

.sm-result-label {
    color: #64748b;
    font-size: 0.9rem;
}

.sm-result-value {
    font-size: 1rem;
    font-weight: 600;
}

.sm-result-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 8px 0;
}

.sm-result-highlight {
    background: #f8fafc;
    margin: 0 -20px;
    padding: 12px 20px !important;
    border-bottom: none !important;
}

.sm-result-final {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    margin: 16px -20px -20px -20px;
    padding: 16px 20px !important;
    border-radius: 0 0 12px 12px;
    border-bottom: none !important;
}

.sm-result-final .sm-result-label,
.sm-result-final .sm-result-value {
    color: white !important;
}

.sm-result-final .sm-result-value {
    font-size: 1.3rem;
}

/* Text colors for balance */
.text-success { color: #22c55e !important; }
.text-danger { color: #ef4444 !important; }
.text-warning { color: #f59e0b !important; }
.text-center { text-align: center; }

/* Loading placeholder */
.sm-loading-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #64748b;
}

.sm-loading-placeholder i {
    font-size: 2rem;
    margin-bottom: 12px;
    color: #6366f1;
}

/* Grid 6 columns for tabs */
.sm-accounting-tabs-grid {
    grid-template-columns: repeat(6, 1fr) !important;
}

/* Responsive */
@media (max-width: 1200px) {
    .sm-balance-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .sm-accounting-tabs-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 992px) {
    .sm-balance-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sm-balance-charts,
    .sm-balance-tables {
        grid-template-columns: 1fr;
    }
    
    .sm-accounting-tabs-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .sm-balance-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .sm-balance-controls {
        width: 100%;
    }
    
    .sm-balance-controls .sm-btn {
        flex: 1;
    }
    
    .sm-balance-stats {
        grid-template-columns: 1fr;
    }
    
    .sm-balance-stat-card {
        padding: 16px;
    }
    
    .sm-balance-stat-card .sm-stat-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
    
    .sm-balance-stat-card .sm-stat-value {
        font-size: 1.25rem;
    }
    
    .sm-accounting-tabs-grid {
        display: none !important;
    }
}


/* =========================================
   BDSE & Assembly Minutes Styles
   ========================================= */

/* Page Header Gradient */
.sm-page-header-gradient {
    padding: 24px;
    border-radius: 16px;
    color: white;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.sm-page-header-gradient h1 {
    margin: 0 0 8px;
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sm-page-header-gradient p {
    margin: 0;
    opacity: 0.9;
    font-size: 14px;
}

.sm-page-header-content {
    flex: 1;
}

.sm-btn-white {
    background: white !important;
    color: #333 !important;
    font-weight: 600;
}

.sm-btn-white:hover {
    background: #f3f4f6 !important;
}

/* Filters Bar */
.sm-filters-bar {
    background: white;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.sm-search-box {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.sm-search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.sm-search-box input {
    width: 100%;
    padding: 10px 14px 10px 40px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
}

.sm-search-box input:focus {
    outline: none;
    border-color: #e63946;
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

.sm-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sm-filter-pill {
    padding: 8px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    background: white;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    color: #4b5563;
}

.sm-filter-pill:hover {
    border-color: #e63946;
    color: #e63946;
}

.sm-filter-pill.active {
    background: #e63946;
    border-color: #e63946;
    color: white;
}

/* Documents List */
.sm-documents-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sm-document-card {
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.2s;
}

.sm-document-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.sm-document-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.sm-document-info {
    flex: 1;
    min-width: 0;
}

.sm-document-info h3 {
    margin: 0 0 6px;
    font-size: 15px;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sm-document-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: #6b7280;
}

.sm-document-meta i {
    margin-right: 4px;
}

.sm-document-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* Stats Mini */
.sm-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.sm-stat-mini {
    background: white;
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.sm-stat-mini .sm-stat-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}

.sm-stat-mini .sm-stat-label {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

/* Info Banner */
.sm-info-banner {
    padding: 16px 20px;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.sm-info-banner i {
    font-size: 20px;
    margin-top: 2px;
}

.sm-info-banner strong {
    display: block;
    margin-bottom: 4px;
}

/* Current File Display */
.sm-current-file {
    padding: 12px 16px;
    background: #f3f4f6;
    border-radius: 8px;
    font-size: 14px;
    color: #4b5563;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sm-current-file i {
    color: #ef4444;
}

/* File Upload Enhanced */
.sm-file-upload {
    position: relative;
    border: 2px dashed #e5e7eb;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.sm-file-upload:hover {
    border-color: #e63946;
    background: #fef2f2;
}

.sm-file-upload input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.sm-file-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #6b7280;
}

.sm-file-upload-placeholder i {
    font-size: 32px;
    color: #9ca3af;
}

.sm-file-upload-placeholder small {
    color: #9ca3af;
    font-size: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .sm-page-header-gradient {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .sm-page-header-gradient .sm-btn-white {
        width: 100%;
        justify-content: center;
    }
    
    .sm-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sm-document-card {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .sm-document-actions {
        width: 100%;
        margin-top: 12px;
    }
    
    .sm-document-actions .sm-btn {
        flex: 1;
        justify-content: center;
    }
    
    .sm-filter-pills {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
    }
    
    .sm-filter-pill {
        white-space: nowrap;
    }
}



/* Modern Tabs */
.sm-tabs-modern {
    display: flex;
    gap: 8px;
    background: #f3f4f6;
    padding: 6px;
    border-radius: 12px;
    width: fit-content;
}

.sm-tab-modern {
    padding: 10px 20px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sm-tab-modern:hover {
    color: #374151;
    background: rgba(255,255,255,0.5);
}

.sm-tab-modern.active {
    background: white;
    color: #e63946;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.sm-tab-content {
    display: none;
}

.sm-tab-content.active {
    display: block;
}

.sm-loading-placeholder {
    padding: 40px;
    text-align: center;
    color: #9ca3af;
}

.sm-loading-placeholder i {
    margin-right: 8px;
}



/* Dynamic Modal Styles */
.sm-modal-header {
    padding: 16px 20px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.sm-modal-header h3 {
    margin: 0;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sm-modal-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.sm-modal-close:hover {
    background: rgba(255,255,255,0.3);
}

.sm-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.sm-modal-footer {
    padding: 16px 20px;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-shrink: 0;
}

.sm-form-group {
    margin-bottom: 16px;
}

.sm-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
    color: #374151;
}

.sm-form-group input,
.sm-form-group select,
.sm-form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
    box-sizing: border-box;
}

.sm-form-group input:focus,
.sm-form-group select:focus,
.sm-form-group textarea:focus {
    outline: none;
    border-color: #e63946;
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

.sm-form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (max-width: 480px) {
    .sm-form-row {
        grid-template-columns: 1fr;
    }
}


/* =========================================
   BDSE CENTRALISÉE - Styles
   ========================================= */

/* Header Buttons */
.sm-header-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.sm-btn-white-outline {
    background: transparent !important;
    border: 2px solid rgba(255,255,255,0.8) !important;
    color: white !important;
}

.sm-btn-white-outline:hover {
    background: rgba(255,255,255,0.1) !important;
}

/* Filter Pills with Colors */
.sm-filter-pill .sm-cat-icon {
    font-size: 14px;
    margin-right: 4px;
}

.sm-filter-pill .sm-cat-count {
    font-size: 11px;
    opacity: 0.7;
    margin-left: 2px;
}

.sm-filter-pill[data-category]:not([data-category="all"]).active {
    background: var(--pill-color, #3b82f6) !important;
    border-color: var(--pill-color, #3b82f6) !important;
    color: white !important;
}

/* Dispatch Badge */
.sm-dispatch-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    background: #dbeafe;
    color: #1e40af;
    border-radius: 4px;
    font-size: 10px;
    margin-left: 6px;
}

/* File Input Wrapper - Modern Style */
.sm-file-input-wrapper {
    position: relative;
}

.sm-file-input-wrapper input[type="file"] {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

.sm-file-input-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 16px;
    border: 2px dashed #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    background: #fafafa;
}

.sm-file-input-label:hover {
    border-color: #3b82f6;
    background: #f0f7ff;
}

.sm-file-input-label i {
    font-size: 32px;
    color: #9ca3af;
    margin-bottom: 8px;
}

.sm-file-input-label span {
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
}

.sm-file-input-label small {
    font-size: 12px;
    color: #9ca3af;
}

/* Current File Display */
.sm-current-file {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #f3f4f6;
    border-radius: 8px;
    font-size: 14px;
    color: #374151;
}

.sm-current-file i {
    color: #ef4444;
}

/* Categories List Modal */
.sm-categories-list {
    border-top: 1px solid #e5e7eb;
}

.sm-category-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.sm-category-item:hover {
    background: #f8fafc;
}

.sm-category-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.sm-category-info {
    flex: 1;
    min-width: 0;
}

.sm-category-label {
    display: block;
    font-weight: 600;
    color: #1f2937;
    font-size: 14px;
}

.sm-category-dispatch {
    display: block;
    font-size: 11px;
    color: #10b981;
    margin-top: 2px;
}

.sm-category-system {
    display: inline-block;
    font-size: 10px;
    color: #9ca3af;
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 2px;
}

.sm-category-actions {
    display: flex;
    gap: 6px;
}

/* Icon & Color Grids */
.sm-icon-grid,
.sm-color-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.sm-icon-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s;
}

.sm-icon-btn:hover {
    border-color: #3b82f6;
    background: #f0f7ff;
}

.sm-icon-btn.selected {
    border: 2px solid #e63946;
    background: #fef2f2;
}

.sm-color-btn {
    width: 32px;
    height: 32px;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.sm-color-btn:hover {
    transform: scale(1.1);
}

.sm-color-btn.selected {
    border-color: #1f2937;
    box-shadow: 0 0 0 2px white, 0 0 0 4px #1f2937;
}

/* Stats Grid Mini */
.sm-stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    background: white;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .sm-stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .sm-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.sm-stat-mini {
    text-align: center;
    padding: 8px;
}

.sm-stat-mini .sm-stat-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
}

.sm-stat-mini .sm-stat-label {
    display: block;
    font-size: 11px;
    color: #6b7280;
    margin-top: 2px;
}

/* Document Cards Enhanced */
.sm-document-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: white;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: all 0.2s;
}

.sm-document-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.sm-document-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.sm-document-info {
    flex: 1;
    min-width: 0;
}

.sm-document-info h3 {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.sm-document-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    color: #6b7280;
}

.sm-document-meta .sm-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.sm-document-meta i {
    margin-right: 4px;
    font-size: 11px;
}

.sm-document-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .sm-document-card {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .sm-document-actions {
        width: 100%;
        margin-top: 12px;
    }
    
    .sm-document-actions .sm-btn {
        flex: 1;
    }
}

/* Form Row */
.sm-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 480px) {
    .sm-form-row {
        grid-template-columns: 1fr;
    }
}

/* Empty State */
.sm-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
}

.sm-empty-state h3 {
    margin: 16px 0 8px;
    color: #374151;
}

.sm-empty-state p {
    margin: 0;
    color: #6b7280;
}

/* Info Banner */
.sm-info-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: 12px;
}

.sm-info-banner i {
    font-size: 18px;
    flex-shrink: 0;
}

/* =========================================
   RICH TEXT EDITOR
   ========================================= */

.sm-rich-editor {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.sm-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.sm-toolbar-group {
    display: flex;
    gap: 2px;
}

.sm-toolbar-separator {
    width: 1px;
    background: #e5e7eb;
    margin: 0 6px;
}

.sm-editor-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.2s;
}

.sm-editor-btn:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.sm-editor-btn:active,
.sm-editor-btn.active {
    background: #3b82f6;
    color: white;
}

.sm-editor-content {
    min-height: 120px;
    max-height: 300px;
    overflow-y: auto;
    padding: 12px;
    font-size: 14px;
    line-height: 1.6;
    outline: none;
}

.sm-editor-content:focus {
    background: #fafafa;
}

.sm-editor-content:empty:before {
    content: attr(data-placeholder);
    color: #9ca3af;
    pointer-events: none;
}

/* Icon Dropdown */
.sm-icon-dropdown {
    position: relative;
}

.sm-icon-trigger {
    width: auto !important;
    padding: 0 8px;
    gap: 4px;
}

.sm-icon-dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    width: 240px;
    max-height: 200px;
    overflow-y: auto;
    padding: 8px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    flex-wrap: wrap;
    gap: 4px;
}

.sm-icon-dropdown-content.show {
    display: flex;
}

.sm-icon-option {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.sm-icon-option:hover {
    background: #e2e8f0;
    transform: scale(1.1);
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .sm-editor-toolbar {
        padding: 6px;
    }
    
    .sm-editor-btn {
        width: 28px;
        height: 28px;
    }
    
    .sm-toolbar-separator {
        display: none;
    }
    
    .sm-icon-dropdown-content {
        width: 200px;
        right: 0;
        left: auto;
    }
}

/* =========================================
   DOCUMENT VIEW BUTTON IN NEWS
   ========================================= */

.sm-document-btn-wrap {
    text-align: center;
    margin-top: 24px;
    margin-bottom: 8px;
}

.sm-btn-document-view {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px !important;
    font-size: 15px !important;
    font-weight: 600;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    color: white !important;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    transition: all 0.3s ease;
    border: none !important;
}

.sm-btn-document-view:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
}

.sm-btn-document-view:active {
    transform: translateY(0);
}

.sm-btn-document-view i {
    font-size: 18px;
}

/* =========================================
   BDSE FILTER CHIPS (MULTICHOIX)
   ========================================= */

.sm-filters-section {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.sm-filter-chips-wrapper {
    margin-top: 16px;
}

.sm-filter-chips-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.sm-filter-label {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
}

.sm-filter-label i {
    margin-right: 6px;
}

.sm-filter-actions {
    display: flex;
    gap: 8px;
}

.sm-chip-action {
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 6px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.sm-chip-action:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #334155;
}

.sm-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sm-filter-chip {
    position: relative;
    cursor: pointer;
}

.sm-filter-chip input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.sm-chip-content {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    background: #f1f5f9;
    border: 2px solid transparent;
    color: #64748b;
    transition: all 0.2s ease;
}

.sm-filter-chip input:checked + .sm-chip-content {
    background: #e0f2fe;
    border-color: var(--chip-color, #3b82f6);
    color: var(--chip-color, #3b82f6);
}

.sm-chip-icon {
    font-size: 14px;
}

.sm-chip-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 10px;
    background: rgba(0,0,0,0.1);
}

.sm-filter-chip input:checked + .sm-chip-content .sm-chip-count {
    background: var(--chip-color, #3b82f6);
    color: white;
}

.sm-filter-result {
    padding: 10px 16px;
    background: #f8fafc;
    border-radius: 8px;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 16px;
}

.sm-filter-result #bdse-count {
    font-weight: 700;
    color: #1e3a5f;
}

/* Hide on mobile */
@media (max-width: 768px) {
    .sm-hide-mobile {
        display: none !important;
    }
    
    .sm-filter-chips-wrapper {
        margin-top: 12px;
    }
    
    .sm-chip-content {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .sm-chip-count {
        min-width: 18px;
        height: 18px;
        font-size: 10px;
    }
}

/* =========================================
   MOBILE: FAB FILTER BUTTON
   ========================================= */

.sm-fab-filter {
    display: none;
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.5);
    cursor: pointer;
    z-index: 100;
    font-size: 20px;
    transition: all 0.3s ease;
}

.sm-fab-filter:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(59, 130, 246, 0.6);
}

.sm-fab-filter:active {
    transform: scale(0.95);
}

.sm-fab-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: #ef4444;
    color: white;
    border-radius: 11px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

/* =========================================
   MOBILE: BOTTOM SHEET
   ========================================= */

.sm-bottom-sheet-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sm-bottom-sheet-overlay.active {
    display: block;
    opacity: 1;
}

.sm-bottom-sheet {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 20px 20px 0 0;
    z-index: 1001;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    max-height: 80vh;
    overflow: hidden;
}

.sm-bottom-sheet.active {
    display: block;
    transform: translateY(0);
}

.sm-bottom-sheet-handle {
    width: 40px;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    margin: 12px auto;
    cursor: pointer;
}

.sm-bottom-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px 16px;
    border-bottom: 1px solid #f1f5f9;
}

.sm-bottom-sheet-header h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sm-bottom-sheet-header h4 i {
    color: #3b82f6;
}

.sm-bottom-sheet-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.sm-bottom-sheet-close:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.sm-bottom-sheet-content {
    padding: 20px;
    max-height: calc(80vh - 160px);
    overflow-y: auto;
}

.sm-bottom-sheet-content .sm-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.sm-bottom-sheet-content .sm-chip-content {
    padding: 10px 16px;
    font-size: 14px;
}

.sm-bottom-sheet-content .sm-chip-count {
    min-width: 24px;
    height: 24px;
    font-size: 12px;
}

.sm-filter-actions-sheet {
    display: flex;
    gap: 12px;
}

.sm-filter-actions-sheet .sm-btn {
    flex: 1;
    padding: 12px;
    font-size: 14px;
}

.sm-bottom-sheet-footer {
    padding: 16px 20px;
    border-top: 1px solid #f1f5f9;
    background: #f8fafc;
}

.sm-bottom-sheet-footer .sm-btn {
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
}

/* Prevent body scroll when sheet is open */
body.sm-sheet-open {
    overflow: hidden;
}

/* =========================================
   MOBILE: SHOW/HIDE CLASSES
   ========================================= */

.sm-show-mobile {
    display: none !important;
}

@media (max-width: 768px) {
    .sm-hide-mobile {
        display: none !important;
    }
    
    .sm-show-mobile {
        display: block !important;
    }
    
    .sm-show-mobile.sm-mobile-tabs,
    .sm-show-mobile.sm-mobile-filters,
    .sm-show-mobile.sm-mobile-stats-row,
    .sm-show-mobile.sm-mobile-create-btn {
        display: flex !important;
    }
    
    .sm-fab-filter {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Search only on mobile - no wrapper margin */
    .sm-search-only-mobile {
        padding: 12px;
    }
    
    .sm-search-only-mobile .sm-filter-chips-wrapper {
        display: none;
    }
    
    /* Adjust document list for FAB */
    .sm-bdse-page {
        padding-bottom: 120px;
    }
    
    /* Smaller filter result */
    .sm-filter-result {
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* =========================================
   MOBILE: FILTER ROWS (Full Width)
   ========================================= */

.sm-filter-rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sm-filter-row {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.sm-filter-row input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.sm-filter-row-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    background: #f1f5f9;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.sm-filter-row input:checked + .sm-filter-row-content {
    background: #eff6ff;
    border-color: var(--row-color, #3b82f6);
}

.sm-filter-row-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sm-filter-row-icon {
    font-size: 20px;
}

.sm-filter-row-label {
    font-size: 15px;
    font-weight: 500;
    color: #334155;
}

.sm-filter-row input:checked + .sm-filter-row-content .sm-filter-row-label {
    color: var(--row-color, #3b82f6);
}

.sm-filter-row-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 10px;
    background: rgba(0,0,0,0.08);
    border-radius: 14px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
}

.sm-filter-row input:checked + .sm-filter-row-content .sm-filter-row-count {
    background: var(--row-color, #3b82f6);
    color: white;
}

/* Empty categories styling */
.sm-filter-row.sm-filter-empty .sm-filter-row-content {
    background: #f8fafc;
    opacity: 0.7;
}

.sm-filter-row.sm-filter-empty .sm-filter-row-label {
    color: #94a3b8;
}

.sm-filter-row.sm-filter-empty .sm-filter-row-count {
    background: #e2e8f0;
    color: #94a3b8;
}

/* Separator: first empty after a non-empty */
.sm-filter-row:not(.sm-filter-empty) + .sm-filter-row.sm-filter-empty {
    margin-top: 8px;
    padding-top: 18px;
    border-top: 1px dashed #cbd5e1;
}

/* =========================================
   PAGES: Management & Administration
   ========================================= */

.sm-page-header-large {
    padding: 40px 30px;
    border-radius: 20px;
    color: white;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.sm-page-header-large::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    pointer-events: none;
}

.sm-page-header-large::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    pointer-events: none;
}

.sm-page-header-large h1 {
    font-size: 28px;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.sm-page-header-large p {
    font-size: 16px;
    margin: 0;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.sm-management-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.sm-management-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    text-decoration: none;
    transition: all 0.25s ease;
    position: relative;
}

.sm-management-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    border-color: transparent;
}

.sm-management-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
}

.sm-management-card-content {
    flex: 1;
    min-width: 0;
}

.sm-management-card-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 4px 0;
}

.sm-management-card-content p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

.sm-management-card-arrow {
    color: #cbd5e1;
    font-size: 14px;
    transition: all 0.2s;
}

.sm-management-card:hover .sm-management-card-arrow {
    color: #64748b;
    transform: translateX(4px);
}

.sm-management-card-badge {
    position: absolute;
    top: 16px;
    right: 40px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    min-width: 24px;
    text-align: center;
}

/* Mobile responsive */
@media (max-width: 1024px) {
    .sm-management-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sm-page-header-large {
        padding: 30px 20px;
        border-radius: 16px;
        margin-bottom: 20px;
    }
    
    .sm-page-header-large h1 {
        font-size: 22px;
    }
    
    .sm-page-header-large p {
        font-size: 14px;
    }
    
    .sm-management-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .sm-management-card {
        padding: 18px;
        border-radius: 14px;
    }
    
    .sm-management-card-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
        border-radius: 12px;
    }
    
    .sm-management-card-content h3 {
        font-size: 15px;
    }
    
    .sm-management-card-content p {
        font-size: 12px;
    }
    
    .sm-management-card-badge {
        top: 12px;
        right: 36px;
        font-size: 11px;
        padding: 3px 8px;
    }
}

/* =========================================
   DASHBOARD: Welcome Card Glassmorphism
   ========================================= */

.sm-welcome-glass {
    background: linear-gradient(135deg, #e63946 0%, #c1121f 100%);
    border-radius: 20px;
    padding: 28px;
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
}

.sm-welcome-glass::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    pointer-events: none;
}

.sm-welcome-glass::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    pointer-events: none;
}

.sm-welcome-glass-content {
    position: relative;
    z-index: 1;
}

.sm-welcome-glass-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

.sm-welcome-glass-avatar {
    width: 85px;
    height: 85px;
    border-radius: 20px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    overflow: hidden;
}

.sm-welcome-glass-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sm-welcome-glass-info {
    flex: 1;
    color: white;
    padding-right: 120px;
}

.sm-welcome-glass-info h2 {
    font-size: 26px;
    margin: 0 0 6px 0;
    font-weight: 700;
}

.sm-welcome-glass-role {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.sm-welcome-glass-role .separator {
    opacity: 0.5;
}

.sm-welcome-glass-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.sm-welcome-glass-badges .badge {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: white;
}

.sm-welcome-glass-badges .badge.highlight {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #78350f;
    font-weight: 600;
}

.sm-welcome-card-btn {
    position: absolute;
    top: 28px;
    right: 28px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 12px 18px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    z-index: 2;
}

.sm-welcome-card-btn span {
    display: inline;
}

.sm-welcome-card-btn:hover {
    background: white;
    color: #e63946;
}

.sm-welcome-glass-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.sm-welcome-glass-stats .stat-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: rgba(255,255,255,0.1);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s;
}

.sm-welcome-glass-stats .stat-chip:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.sm-welcome-glass-stats .stat-chip .icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.sm-welcome-glass-stats .stat-chip .icon.blue { background: #3b82f6; color: white; }
.sm-welcome-glass-stats .stat-chip .icon.green { background: #22c55e; color: white; }
.sm-welcome-glass-stats .stat-chip .icon.purple { background: #8b5cf6; color: white; }
.sm-welcome-glass-stats .stat-chip .icon.orange { background: #f59e0b; color: white; }
.sm-welcome-glass-stats .stat-chip .icon.pink { background: #ec4899; color: white; }
.sm-welcome-glass-stats .stat-chip .icon.gray { background: rgba(255,255,255,0.3); color: white; }

.sm-welcome-glass-stats .stat-chip .stat-info {
    display: flex;
    flex-direction: column;
}

.sm-welcome-glass-stats .stat-chip .value {
    font-size: 18px;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.sm-welcome-glass-stats .stat-chip .label {
    font-size: 11px;
    color: rgba(255,255,255,0.75);
}

.sm-welcome-glass-stats .stat-chip.coming-soon {
    opacity: 0.6;
    cursor: default;
}

.sm-welcome-glass-stats .stat-chip.coming-soon:hover {
    transform: none;
    background: rgba(255,255,255,0.1);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .sm-welcome-glass {
        padding: 20px;
        border-radius: 16px;
    }
    
    .sm-welcome-glass-stats {
        justify-content: center;
    }
    
    .sm-welcome-glass-stats .stat-chip {
        padding: 8px 12px;
    }
    
    .sm-welcome-glass-stats .stat-chip .icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .sm-welcome-glass-stats .stat-chip .value {
        font-size: 16px;
    }
    
    .sm-welcome-glass-stats .stat-chip .label {
        font-size: 10px;
    }
    
    .sm-welcome-glass-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 16px;
    }
    
    .sm-welcome-glass-avatar {
        width: 70px;
        height: 70px;
        font-size: 28px;
        border-radius: 16px;
    }
    
    .sm-welcome-glass-info {
        padding-right: 0;
    }
    
    .sm-welcome-glass-info h2 {
        font-size: 22px;
    }
    
    .sm-welcome-glass-role {
        justify-content: center;
    }
    
    .sm-welcome-glass-badges {
        justify-content: center;
    }
    
    .sm-welcome-glass-badges .badge {
        font-size: 11px;
        padding: 5px 12px;
    }
    
    .sm-welcome-card-btn {
        position: relative;
        top: auto;
        right: auto;
        margin: 16px auto 0;
        width: fit-content;
    }
    
    .sm-welcome-glass-stats {
        margin-top: 16px;
        padding-top: 16px;
    }
    
    .sm-welcome-glass-stats .stat-item .value {
        font-size: 20px;
    }
    
    .sm-welcome-glass-stats .stat-item .label {
        font-size: 10px;
    }
}

/* =========================================
   DASHBOARD: New Member Dashboard
   ========================================= */

/* Stats Cards */
.sm-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.sm-dash-stat {
    background: white;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
    position: relative;
}

.sm-dash-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.sm-dash-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    flex-shrink: 0;
}

.sm-dash-stat-icon.blue { background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); }
.sm-dash-stat-icon.green { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.sm-dash-stat-icon.orange { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }

.sm-dash-stat-content {
    display: flex;
    flex-direction: column;
}

.sm-dash-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1;
}

.sm-dash-stat-label {
    font-size: 13px;
    color: #64748b;
    margin-top: 4px;
}

.sm-dash-stat-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    color: white;
}

.sm-dash-stat-badge.green { background: #10b981; }
.sm-dash-stat-badge.orange { background: #f59e0b; }

/* Dashboard Cards Grid */
.sm-dashboard-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.sm-dash-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.sm-dash-card-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sm-dash-card-header.purple {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
}

.sm-dash-card-header.orange {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.sm-dash-card-header h3 {
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.sm-dash-link {
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: color 0.2s;
}

.sm-dash-link:hover {
    color: white;
}

.sm-dash-card-body {
    padding: 16px;
}

/* Featured News */
.sm-dash-featured {
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 16px;
    transition: all 0.2s;
    border: 2px solid;
}

.sm-dash-featured.flash {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-color: #fecaca;
}

.sm-dash-featured.doc {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: #bfdbfe;
}

.sm-dash-featured:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.sm-dash-featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sm-dash-featured.flash .sm-dash-featured-badge { background: #dc2626; }
.sm-dash-featured.doc .sm-dash-featured-badge { background: #2563eb; }

.sm-dash-featured h4 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}

.sm-dash-featured.flash h4 { color: #991b1b; }
.sm-dash-featured.doc h4 { color: #1e40af; }

.sm-dash-featured p {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.sm-dash-featured.flash p { color: #b91c1c; }
.sm-dash-featured.doc p { color: #1e40af; }

.sm-dash-featured-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 12px;
    font-weight: 500;
}

.sm-dash-featured.flash .sm-dash-featured-meta { color: #dc2626; }
.sm-dash-featured.doc .sm-dash-featured-meta { color: #2563eb; }

.sm-dash-featured-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* News List */
.sm-dash-news-list {
    display: flex;
    flex-direction: column;
}

.sm-dash-news-item {
    display: flex;
    align-items: center;
    padding: 14px 8px;
    gap: 12px;
    border-radius: 10px;
    transition: background 0.2s;
}

.sm-dash-news-item:hover {
    background: #f8fafc;
}

.sm-dash-news-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.sm-dash-news-icon.flash { background: #fee2e2; color: #dc2626; }
.sm-dash-news-icon.doc { background: #dbeafe; color: #2563eb; }

.sm-dash-news-title {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sm-dash-news-date {
    font-size: 12px;
    color: #94a3b8;
    flex-shrink: 0;
    font-weight: 500;
}

/* Events List */
.sm-dash-event {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 8px;
    border-radius: 12px;
    transition: background 0.2s;
}

.sm-dash-event:hover {
    background: #f8fafc;
}

.sm-dash-event-date {
    text-align: center;
    padding: 10px 14px;
    border-radius: 12px;
    min-width: 58px;
    flex-shrink: 0;
}

.sm-dash-event-date.green { background: #dcfce7; }
.sm-dash-event-date.purple { background: #f3e8ff; }
.sm-dash-event-date.orange { background: #ffedd5; }

.sm-dash-event-date .day {
    display: block;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.sm-dash-event-date.green .day { color: #16a34a; }
.sm-dash-event-date.purple .day { color: #7c3aed; }
.sm-dash-event-date.orange .day { color: #ea580c; }

.sm-dash-event-date .month {
    display: block;
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    margin-top: 4px;
    font-weight: 600;
}

.sm-dash-event-info {
    flex: 1;
    min-width: 0;
}

.sm-dash-event-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sm-dash-event-type {
    font-size: 13px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.sm-dash-event-action {
    flex-shrink: 0;
}

.sm-dash-event-action .open {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    background: #dcfce7;
    color: #16a34a;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #bbf7d0;
}

.sm-dash-event-action .closed {
    display: inline-block;
    padding: 8px 14px;
    background: #f1f5f9;
    color: #94a3b8;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

/* Empty State */
.sm-dash-empty {
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
}

.sm-dash-empty i {
    font-size: 32px;
    margin-bottom: 12px;
    display: block;
}

.sm-dash-empty p {
    font-size: 14px;
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .sm-dashboard-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sm-dashboard-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .sm-dash-stat {
        padding: 16px;
    }
    
    .sm-dash-stat-icon {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }
    
    .sm-dash-stat-value {
        font-size: 24px;
    }
    
    .sm-dash-stat-badge {
        font-size: 9px;
        padding: 3px 8px;
    }
    
    .sm-dashboard-cards {
        gap: 16px;
    }
    
    .sm-dash-card-header h3 {
        font-size: 14px;
    }
    
    .sm-dash-card-body {
        padding: 12px;
    }
    
    .sm-dash-featured {
        padding: 14px;
        margin-bottom: 12px;
    }
    
    .sm-dash-featured h4 {
        font-size: 15px;
    }
    
    .sm-dash-featured p {
        font-size: 12px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .sm-dash-featured-meta {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .sm-dash-news-item {
        padding: 12px 4px;
    }
    
    .sm-dash-news-icon {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .sm-dash-news-title {
        font-size: 13px;
    }
    
    .sm-dash-event {
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px 4px;
    }
    
    .sm-dash-event-date {
        min-width: 50px;
        padding: 8px 12px;
    }
    
    .sm-dash-event-date .day {
        font-size: 20px;
    }
    
    .sm-dash-event-info h4 {
        font-size: 14px;
        white-space: normal;
    }
    
    .sm-dash-event-type {
        font-size: 12px;
    }
    
    .sm-dash-event-action {
        width: 100%;
        padding-left: 64px;
        margin-top: -5px;
    }
    
    .sm-dash-event-action .open,
    .sm-dash-event-action .closed {
        font-size: 11px;
        padding: 6px 12px;
    }
}

/* =========================================
   DASHBOARD: Legacy Featured News (keep for compatibility)
   ========================================= */

.sm-featured-news {
    padding: 12px;
}

.sm-news-featured-section {
    padding: 0;
}

.sm-featured-item {
    border: 2px solid;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 16px;
    transition: all 0.2s;
}

.sm-featured-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.sm-featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: white;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sm-featured-item h4 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}

.sm-featured-item p {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 12px;
    opacity: 0.85;
}

.sm-featured-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 12px;
    font-weight: 500;
}

.sm-featured-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Compact list */
.sm-news-compact-list {
    display: flex;
    flex-direction: column;
    padding: 0 12px 12px;
}

.sm-news-compact-item {
    display: flex;
    align-items: center;
    padding: 14px 12px;
    border-radius: 10px;
    gap: 12px;
    transition: all 0.2s;
    margin: 0 -12px;
}

.sm-news-compact-item:hover {
    background: #f1f5f9;
}

.sm-compact-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 14px;
    flex-shrink: 0;
}

.sm-compact-title {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sm-compact-date {
    font-size: 12px;
    color: #94a3b8;
    flex-shrink: 0;
    font-weight: 500;
}

/* =========================================
   DASHBOARD: Legacy Events List
   ========================================= */

.sm-events-list {
    padding: 12px;
}

.sm-event-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    margin: 0 -12px;
    border-radius: 12px;
    transition: all 0.2s;
}

.sm-event-row:hover {
    background: #f8fafc;
}

.sm-event-date-box {
    text-align: center;
    padding: 10px 14px;
    border-radius: 12px;
    min-width: 60px;
    flex-shrink: 0;
    border: 1px solid;
}

.sm-event-day {
    display: block;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.sm-event-month {
    display: block;
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    margin-top: 4px;
    font-weight: 600;
}

.sm-event-details {
    flex: 1;
    min-width: 0;
}

.sm-event-details h4 {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sm-event-type-info {
    font-size: 13px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.sm-event-type-info i {
    font-size: 12px;
}

.sm-event-status {
    flex-shrink: 0;
}

.sm-event-badge-open {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    background: #dcfce7;
    color: #16a34a;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #bbf7d0;
}

.sm-event-badge-closed {
    display: inline-block;
    padding: 8px 14px;
    background: #f1f5f9;
    color: #94a3b8;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}


/* ========== BDSE PAGINATION ========== */
.sm-pagination-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    flex-wrap: wrap;
    gap: 16px;
}

.sm-pagination {
    display: flex;
    align-items: center;
    gap: 4px;
}

.sm-pagination-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sm-pagination-btn:hover:not(:disabled) {
    border-color: #e30613;
    color: #e30613;
    background: rgba(227, 6, 19, 0.05);
}

.sm-pagination-btn.active {
    background: #e30613;
    border-color: #e30613;
    color: white;
}

.sm-pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.sm-pagination-ellipsis {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
}

/* Items per page selector */
.sm-items-per-page {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #4b5563;
}

.sm-items-per-page select {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.sm-items-per-page select:hover {
    border-color: #e30613;
}

.sm-items-per-page select:focus {
    outline: none;
    border-color: #e30613;
    box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.1);
}

/* Mobile pagination controls */
.sm-pagination-mobile-controls {
    display: none;
    margin-top: 16px;
}

.sm-pagination-mobile-controls select {
    padding: 10px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    background: white;
    width: 100%;
}

@media (max-width: 768px) {
    .sm-pagination-wrapper {
        flex-direction: column;
        align-items: center;
    }
    
    .sm-pagination-btn {
        min-width: 36px;
        height: 36px;
        padding: 0 8px;
        font-size: 13px;
    }
    
    .sm-pagination-ellipsis {
        width: 30px;
    }
    
    .sm-pagination-mobile-controls {
        display: block;
        width: 100%;
    }
}


/* ========== BDSE SEARCH & FILTERS - OPTION B DESIGN ========== */
.sm-bdse-search-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
}

.sm-bdse-search-box {
    flex: 1;
    position: relative;
}

.sm-bdse-search-box input {
    width: 100%;
    padding: 14px 20px 14px 48px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    background: #f3f4f6;
    transition: all 0.2s;
}

.sm-bdse-search-box input:focus {
    outline: none;
    background: white;
    box-shadow: 0 0 0 2px #e30613, 0 4px 12px rgba(0,0,0,0.1);
}

.sm-bdse-search-box input::placeholder {
    color: #9ca3af;
}

.sm-bdse-search-box i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 16px;
}

.sm-bdse-per-page {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6b7280;
    white-space: nowrap;
}

.sm-bdse-per-page select {
    padding: 10px 14px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    background: #f3f4f6;
    cursor: pointer;
    transition: all 0.2s;
}

.sm-bdse-per-page select:hover {
    background: #e5e7eb;
}

.sm-bdse-per-page select:focus {
    outline: none;
    box-shadow: 0 0 0 2px #e30613;
}

/* Filters Row */
.sm-bdse-filters-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: #f9fafb;
    border-radius: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.sm-bdse-filter-label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sm-bdse-filter-label i {
    font-size: 12px;
}

/* Toggle buttons Tout/Aucun */
.sm-bdse-filter-toggle {
    display: flex;
    gap: 4px;
    background: #e5e7eb;
    padding: 3px;
    border-radius: 8px;
}

.sm-bdse-filter-toggle button {
    padding: 6px 14px;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
}

.sm-bdse-filter-toggle button:hover {
    background: rgba(255,255,255,0.5);
    color: #374151;
}

.sm-bdse-filter-toggle button.active {
    background: white;
    color: #e30613;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .sm-bdse-search-row {
        flex-direction: column;
        gap: 12px;
    }
    
    .sm-bdse-search-box {
        width: 100%;
    }
    
    .sm-bdse-per-page {
        display: none;
    }
    
    .sm-bdse-filters-row {
        display: none;
    }
}

/* ========== FLASH INFO - MAGAZINE STYLE ========== */
.sm-news-magazine {
    max-width: 100%;
    padding: 16px;
}

/* Flash Info Hero Header */
.sm-news-hero {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    padding: 32px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    border-radius: 16px;
    margin-bottom: 20px;
}

.sm-news-hero-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sm-news-hero-icon {
    width: 64px;
    height: 64px;
    background: rgba(255,255,255,0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
}

.sm-news-hero-text h1 {
    margin: 0 0 4px 0;
    font-size: 26px;
    font-weight: 700;
    color: white;
}

.sm-news-hero-text p {
    margin: 0;
    font-size: 14px;
    color: rgba(255,255,255,0.9);
}

.sm-news-hero-badge {
    background: white;
    color: #d97706;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    animation: magazine-pulse 2s infinite;
}

/* Team Hero Header */
.sm-team-page {
    padding: 16px;
}

.sm-team-hero {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    padding: 32px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    border-radius: 16px;
    margin-bottom: 24px;
}

.sm-team-hero-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sm-team-hero-icon {
    width: 64px;
    height: 64px;
    background: rgba(255,255,255,0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
}

.sm-team-hero-text h1 {
    margin: 0 0 4px 0;
    font-size: 26px;
    font-weight: 700;
    color: white;
}

.sm-team-hero-text p {
    margin: 0;
    font-size: 14px;
    color: rgba(255,255,255,0.9);
}

.sm-magazine-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f3f4f6;
}

.sm-magazine-title-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sm-magazine-title-row h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.sm-magazine-title-row h1 i {
    color: #e30613;
}

.sm-magazine-new-badge {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    animation: magazine-pulse 2s infinite;
}

@keyframes magazine-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Filters */
.sm-magazine-filters {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.sm-magazine-search {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.sm-magazine-search input {
    width: 100%;
    padding: 14px 20px 14px 48px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    background: #f3f4f6;
    transition: all 0.2s;
}

.sm-magazine-search input:focus {
    outline: none;
    background: white;
    box-shadow: 0 0 0 2px #e30613, 0 4px 12px rgba(0,0,0,0.1);
}

.sm-magazine-search input::placeholder {
    color: #9ca3af;
}

.sm-magazine-search i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 16px;
}

.sm-magazine-year-filter {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.sm-magazine-year-pill {
    padding: 10px 18px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    background: #f3f4f6;
    cursor: pointer;
    transition: all 0.2s;
}

.sm-magazine-year-pill:hover {
    background: #e5e7eb;
    color: #374151;
}

.sm-magazine-year-pill.active {
    background: linear-gradient(135deg, #e30613 0%, #b8050f 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(227, 6, 19, 0.3);
}

/* Results */
.sm-magazine-results {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 20px;
    padding: 10px 16px;
    background: #f9fafb;
    border-radius: 8px;
    display: inline-block;
}

.sm-magazine-results #news-magazine-count {
    font-weight: 700;
    color: #111827;
}

/* Grid */
.sm-magazine-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

/* Featured (first item) */
.sm-magazine-featured {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
    border-radius: 20px;
    padding: 32px;
    color: white;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.sm-magazine-featured:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(30, 58, 95, 0.4);
}

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

.sm-magazine-badge {
    background: #f59e0b;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
}

.sm-magazine-featured h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.3;
    position: relative;
}

.sm-magazine-featured p {
    font-size: 15px;
    opacity: 0.9;
    line-height: 1.6;
    margin: 0 0 20px 0;
    position: relative;
}

.sm-magazine-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    opacity: 0.8;
    flex-wrap: wrap;
    position: relative;
}

.sm-magazine-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Cards */
.sm-magazine-card {
    background: #f9fafb;
    border-radius: 16px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.sm-magazine-card:hover {
    background: white;
    border-color: #e30613;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(227, 6, 19, 0.15);
}

.sm-magazine-card-date {
    font-size: 12px;
    color: #d97706;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sm-new-dot {
    width: 8px;
    height: 8px;
    background: #e30613;
    border-radius: 50%;
    animation: magazine-pulse 1.5s infinite;
}

.sm-magazine-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.sm-magazine-card p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
    margin: 0 0 16px 0;
}

.sm-magazine-read-more {
    color: #e30613;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s;
}

.sm-magazine-card:hover .sm-magazine-read-more {
    gap: 10px;
}

/* Empty state */
.sm-magazine-empty {
    grid-column: 1 / -1;
    background: white;
    border-radius: 16px;
    padding: 60px 20px;
    text-align: center;
}

.sm-magazine-empty i {
    font-size: 48px;
    color: #d1d5db;
    margin-bottom: 16px;
}

.sm-magazine-empty h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
    margin: 0 0 8px 0;
}

.sm-magazine-empty p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

/* Pagination */
.sm-magazine-pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

/* Responsive */
@media (max-width: 768px) {
    .sm-magazine-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .sm-magazine-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .sm-magazine-title-row h1 {
        font-size: 1.5rem;
    }
    
    .sm-magazine-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .sm-magazine-search {
        min-width: 100%;
    }
    
    .sm-magazine-year-filter {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }
    
    .sm-magazine-year-pill {
        flex-shrink: 0;
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .sm-magazine-grid {
        grid-template-columns: 1fr;
    }
    
    .sm-magazine-featured {
        padding: 24px;
    }
    
    .sm-magazine-featured h3 {
        font-size: 1.25rem;
    }
    
    .sm-magazine-meta {
        gap: 12px;
    }
    
    .sm-magazine-card {
        padding: 20px;
    }
}

/* ========== FLASH INFO MODAL - GLASSMORPHISM DESIGN ========== */
.sm-news-read-modal.sm-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.sm-news-read-modal.sm-modal.active {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.sm-news-read-modal .sm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.sm-news-modal-glass {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
    max-width: 700px;
    width: 95%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: modalSlideIn 0.3s ease-out;
    margin: auto;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Header sombre avec avatar - Nouveau design */
.sm-news-modal-header-dark {
    padding: 24px 28px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    flex-shrink: 0;
    position: relative;
}

.sm-news-modal-close-dark {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.sm-news-modal-close-dark:hover {
    background: rgba(255, 255, 255, 0.2);
}

.sm-news-modal-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e30613;
    color: white;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 16px;
}

.sm-news-modal-title-dark {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 20px 0;
    padding-right: 50px;
    color: white;
}

.sm-news-modal-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.sm-news-modal-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e30613, #ff6b6b);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 16px;
    flex-shrink: 0;
}

.sm-news-modal-author-info h4 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: white;
}

.sm-news-modal-author-info p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.sm-news-author-role-dark {
    background: rgba(230, 57, 70, 0.3);
    color: #ff8a8a;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    margin-left: 8px;
    font-weight: 600;
}

/* Ancien header (gardé pour rétro-compatibilité) */
.sm-news-modal-header {
    padding: 28px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
}

.sm-news-modal-top-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}

.sm-news-modal-close {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #f3f4f6;
    border: none;
    color: #6b7280;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.sm-news-modal-close:hover {
    background: #e30613;
    color: white;
    transform: rotate(90deg);
}

.sm-news-modal-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #111827;
    line-height: 1.35;
    margin: 0 0 20px 0;
}

.sm-news-modal-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.sm-news-modal-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #f3f4f6;
    border-radius: 10px;
    font-size: 13px;
    color: #4b5563;
    font-weight: 500;
}

.sm-news-modal-meta-item i {
    color: #e30613;
    font-size: 12px;
}

.sm-news-author-role {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    margin-left: 6px;
    text-transform: uppercase;
}

.sm-news-modal-body {
    padding: 28px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.sm-news-modal-image {
    margin: -28px -28px 24px -28px;
    border-radius: 0;
    overflow: hidden;
}

.sm-news-modal-image img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    display: block;
}

.sm-news-modal-content {
    color: #374151;
    font-size: 15px;
    line-height: 1.85;
    text-align: justify;
    text-justify: inter-word;
}

.sm-news-modal-content p {
    margin-bottom: 16px;
    text-align: justify;
}

.sm-news-modal-content h2,
.sm-news-modal-content h3,
.sm-news-modal-content h4 {
    color: #111827;
    margin: 24px 0 12px;
    font-weight: 700;
    text-align: left;
}

.sm-news-modal-content h2 {
    font-size: 1.25rem;
}

.sm-news-modal-content h3 {
    font-size: 1.1rem;
}

.sm-news-modal-content ul,
.sm-news-modal-content ol {
    margin: 16px 0;
    padding-left: 24px;
    text-align: left;
}

.sm-news-modal-content li {
    margin-bottom: 8px;
}

.sm-news-modal-content a {
    color: #e30613;
    text-decoration: none;
    font-weight: 500;
}

.sm-news-modal-content a:hover {
    text-decoration: underline;
}

.sm-news-modal-content blockquote {
    border-left: 4px solid #e30613;
    padding-left: 20px;
    margin: 20px 0;
    color: #6b7280;
    font-style: italic;
    text-align: left;
}

.sm-news-modal-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 16px 0;
}

.sm-news-modal-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.sm-news-modal-content th,
.sm-news-modal-content td {
    border: 1px solid #e5e7eb;
    padding: 10px 12px;
    text-align: left;
}

.sm-news-modal-content th {
    background: #f9fafb;
    font-weight: 600;
}

.sm-news-modal-content strong,
.sm-news-modal-content b {
    font-weight: 600;
    color: #111827;
}

.sm-news-modal-content em,
.sm-news-modal-content i {
    font-style: italic;
}

.sm-news-modal-content code {
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
}

.sm-news-modal-content pre {
    background: #1f2937;
    color: #f9fafb;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 16px 0;
}

.sm-news-modal-content hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 24px 0;
}

/* Footer avec stats - Nouveau design */
.sm-news-modal-footer-dark {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 28px;
    background: linear-gradient(to top, #f8f9fa, #fff);
    border-top: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.sm-news-modal-stats {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #6b7280;
}

.sm-news-modal-stats span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sm-news-modal-stats i {
    color: #9ca3af;
}

/* Galerie photos en bas - Nouveau design */
.sm-news-gallery-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.sm-news-gallery-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 12px;
}

.sm-news-gallery-header i {
    color: #e30613;
}

.sm-news-gallery-thumbs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.sm-news-gallery-thumbs img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.sm-news-gallery-thumbs img:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Ancien footer (gardé pour rétro-compatibilité) */
.sm-news-modal-footer {
    padding: 20px 28px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.02), transparent);
    display: flex;
    justify-content: flex-end;
    flex-shrink: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.sm-news-modal-btn {
    padding: 14px 28px;
    background: linear-gradient(135deg, #e30613 0%, #be123c 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(227, 6, 19, 0.3);
}

.sm-news-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(227, 6, 19, 0.4);
}

.sm-news-modal-btn:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .sm-news-modal-glass {
        border-radius: 20px 20px 0 0;
        max-height: 95vh;
        margin-top: auto;
    }
    
    .sm-news-modal-header {
        padding: 20px;
    }
    
    .sm-news-modal-title {
        font-size: 1.25rem;
    }
    
    .sm-news-modal-meta {
        gap: 8px;
    }
    
    .sm-news-modal-meta-item {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .sm-news-modal-body {
        padding: 20px;
    }
    
    .sm-news-modal-image {
        margin: -20px -20px 20px -20px;
    }
    
    .sm-news-modal-footer {
        padding: 16px 20px;
    }
    
    .sm-news-modal-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }
}

/* ========== NEWS WIZARD (3 STEPS) ========== */
.sm-news-wizard .sm-wizard-container {
    position: relative;
    z-index: 2;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    max-width: 700px;
    width: 95%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    margin: auto;
    animation: wizardSlideIn 0.3s ease-out;
}

@keyframes wizardSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Header avec stepper */
.sm-wizard-header {
    background: linear-gradient(135deg, #e30613 0%, #be123c 100%);
    color: white;
    padding: 20px 28px;
    flex-shrink: 0;
}

.sm-wizard-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.sm-wizard-header h3 {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.sm-wizard-close {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s;
}

.sm-wizard-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Stepper */
.sm-wizard-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.sm-wizard-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    opacity: 1;
    transition: all 0.3s;
    color: rgba(255, 255, 255, 0.7);
}

.sm-wizard-step.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.sm-wizard-step.done {
    color: rgba(255, 255, 255, 0.85);
}

.sm-wizard-step-num {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: white;
}

.sm-wizard-step.active .sm-wizard-step-num {
    background: white;
    color: #e30613;
}

.sm-wizard-step.done .sm-wizard-step-num {
    background: #10b981;
    color: white;
}

.sm-wizard-step.done .sm-wizard-step-num i {
    font-size: 12px;
}

.sm-wizard-connector {
    width: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.4);
}

/* Progress bar */
.sm-wizard-progress {
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
}

.sm-wizard-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    transition: width 0.4s ease;
}

/* Step content */
.sm-wizard-step-content {
    display: none;
}

.sm-wizard-step-content.active {
    display: block;
    animation: stepFadeIn 0.3s ease;
}

@keyframes stepFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.sm-wizard-body {
    padding: 28px;
    overflow-y: auto;
    flex: 1;
    min-height: 340px;
    max-height: calc(90vh - 220px);
}

.sm-wizard-step-title {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.sm-wizard-step-desc {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 24px;
}

/* Form elements */
.sm-wizard-field {
    margin-bottom: 20px;
}

.sm-wizard-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.sm-wizard-label i {
    margin-right: 6px;
}

.sm-wizard-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.sm-wizard-input:focus {
    outline: none;
    border-color: #e30613;
    box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.1);
}

.sm-wizard-input::placeholder {
    color: #9ca3af;
}

.sm-wizard-select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: border-color 0.2s;
}

.sm-wizard-select:focus {
    outline: none;
    border-color: #e30613;
}

.sm-wizard-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 14px;
    resize: none;
    height: 100px;
    transition: border-color 0.2s;
}

.sm-wizard-textarea:focus {
    outline: none;
    border-color: #e30613;
}

/* Toolbar */
.sm-wizard-toolbar {
    display: flex;
    gap: 4px;
    padding: 8px 12px;
    background: #f3f4f6;
    border-radius: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.sm-wizard-toolbar button {
    width: 34px;
    height: 34px;
    border: none;
    background: none;
    border-radius: 6px;
    cursor: pointer;
    color: #6b7280;
    font-size: 13px;
    transition: all 0.15s;
}

.sm-wizard-toolbar button:hover {
    background: white;
    color: #111827;
}

.sm-wizard-toolbar-sep {
    width: 1px;
    height: 24px;
    background: #d1d5db;
    margin: 0 8px;
}

.sm-wizard-ai-btn {
    background: linear-gradient(135deg, #8b5cf6, #6366f1) !important;
    color: white !important;
    width: auto !important;
    padding: 0 14px !important;
    margin-left: auto !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.sm-wizard-ai-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

/* Editor */
.sm-wizard-editor {
    width: 100%;
    min-height: 160px;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    line-height: 1.6;
    outline: none;
    transition: border-color 0.2s;
}

.sm-wizard-editor:focus {
    border-color: #e30613;
}

.sm-wizard-editor:empty::before {
    content: attr(data-placeholder);
    color: #9ca3af;
}

/* Media cards (step 2) */
.sm-wizard-media-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.sm-wizard-media-card {
    border: 2px dashed #d1d5db;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #fafafa;
}

.sm-wizard-media-card:hover {
    border-color: #e30613;
    background: #fef2f2;
}

.sm-wizard-media-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 24px;
}

.sm-wizard-media-icon-red {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #dc2626;
}

.sm-wizard-media-icon-blue {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #2563eb;
}

.sm-wizard-media-title {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.sm-wizard-media-desc {
    font-size: 12px;
    color: #6b7280;
}

.sm-wizard-media-hint {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 8px;
}

.sm-wizard-media-preview {
    margin-top: 12px;
}

.sm-wizard-media-preview img {
    max-width: 100%;
    max-height: 80px;
    border-radius: 8px;
}

.sm-wizard-gallery-preview {
    margin-top: 12px;
}

/* Params grid (step 3) */
.sm-wizard-params-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.sm-wizard-schedule {
    margin-top: 12px;
}

.sm-wizard-schedule-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.sm-wizard-time-picker {
    display: flex;
    align-items: center;
    gap: 4px;
}

.sm-wizard-time {
    width: 70px !important;
    padding: 10px 8px !important;
}

/* Footer */
.sm-wizard-footer {
    display: flex;
    justify-content: space-between;
    padding: 20px 28px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.sm-wizard-footer-left {
    display: flex;
    gap: 10px;
}

.sm-wizard-btn {
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
    border: none;
}

.sm-wizard-btn-back {
    background: white;
    border: 1px solid #d1d5db !important;
    color: #6b7280;
}

.sm-wizard-btn-back:hover:not(:disabled) {
    background: #f3f4f6;
}

.sm-wizard-btn-back:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.sm-wizard-btn-draft {
    background: white;
    border: 1px solid #d1d5db !important;
    color: #374151;
}

.sm-wizard-btn-draft:hover {
    background: #f3f4f6;
}

.sm-wizard-btn-next {
    background: linear-gradient(135deg, #e30613, #be123c);
    color: white;
    box-shadow: 0 4px 14px rgba(227, 6, 19, 0.3);
}

.sm-wizard-btn-next:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(227, 6, 19, 0.4);
}

.sm-wizard-btn-publish {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.sm-wizard-btn-publish:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* Responsive wizard */
@media (max-width: 768px) {
    /* Modal plein écran sur mobile */
    .sm-news-wizard {
        align-items: stretch !important;
    }
    
    .sm-news-wizard .sm-modal-overlay {
        display: none;
    }
    
    .sm-news-wizard .sm-wizard-container {
        border-radius: 0;
        max-height: 100vh;
        height: 100vh;
        width: 100vw;
        max-width: 100vw;
        margin: 0;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }
    
    .sm-wizard-header {
        padding: 16px 20px;
        padding-top: calc(16px + env(safe-area-inset-top, 0px));
    }
    
    .sm-wizard-header-top {
        margin-bottom: 16px;
    }
    
    .sm-wizard-stepper {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .sm-wizard-step span {
        display: none;
    }
    
    .sm-wizard-connector {
        width: 20px;
    }
    
    .sm-wizard-body {
        padding: 20px;
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .sm-wizard-media-grid,
    .sm-wizard-params-grid {
        grid-template-columns: 1fr;
    }
    
    .sm-wizard-footer {
        flex-direction: column-reverse;
        gap: 12px;
        padding: 16px 20px;
        padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    }
    
    .sm-wizard-footer-left {
        width: 100%;
        order: 2;
    }
    
    .sm-wizard-btn {
        flex: 1;
        justify-content: center;
    }
    
    .sm-wizard-btn-next,
    .sm-wizard-btn-publish {
        width: 100%;
        justify-content: center;
        order: 1;
    }
    
    /* Masquer le bouton brouillon sur mobile pour simplifier */
    .sm-wizard-btn-draft {
        display: none;
    }
    
    /* Masquer aussi le bouton précédent à l'étape 1 */
    .sm-wizard-btn-back:disabled {
        display: none;
    }
}

/* ========== MEMBER CARD MODAL ========== */
.sm-member-card-modal-wrapper {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.sm-member-card-modal-wrapper.active {
    display: flex;
}

.sm-member-card-modal-wrapper .sm-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.sm-member-card-modal-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    animation: cardModalSlideIn 0.3s ease-out;
}

@keyframes cardModalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.sm-member-card-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.sm-member-card-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

.sm-member-card-modal-body {
    display: flex;
    justify-content: center;
}

.sm-member-card-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.sm-member-card-btn {
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.sm-member-card-btn-outline {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.sm-member-card-btn-outline:hover {
    background: rgba(255, 255, 255, 0.25);
}

.sm-member-card-btn-primary {
    background: linear-gradient(135deg, #e30613 0%, #be123c 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(227, 6, 19, 0.4);
}

.sm-member-card-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(227, 6, 19, 0.5);
}

.sm-member-card-pending {
    text-align: center;
    padding: 60px 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    max-width: 380px;
}

.sm-member-card-pending i {
    font-size: 56px;
    color: #d1d5db;
    margin-bottom: 20px;
}

.sm-member-card-pending h3 {
    color: #374151;
    margin-bottom: 12px;
    font-size: 20px;
}

.sm-member-card-pending p {
    font-size: 14px;
    line-height: 1.6;
    color: #6b7280;
}

/* ========== MEMBER CARD - CLASSIC (Option A) ========== */
.sm-member-card {
    width: 100%;
    max-width: 500px;
    min-height: 280px;
    border-radius: 20px;
    padding: 28px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0,0,0,0.4);
}

.sm-member-card-classic {
    background: linear-gradient(135deg, #1e3a5f 0%, #0f1f33 100%);
}

.sm-member-card-classic .sm-card-glow {
    position: absolute;
    top: -50%;
    right: -30%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, rgba(227,6,19,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.sm-member-card .sm-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.sm-member-card .sm-card-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sm-member-card-classic .sm-card-logo-icon {
    width: 48px;
    height: 48px;
    background: #e30613;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 16px;
    color: white;
}

.sm-member-card-classic .sm-card-logo-text {
    color: white;
}

.sm-member-card-classic .sm-card-logo-text h3 {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 1px;
    margin: 0;
}

.sm-member-card-classic .sm-card-logo-text p {
    font-size: 9px;
    opacity: 0.7;
    margin: 2px 0 0;
}

.sm-member-card-classic .sm-card-badge {
    background: #e30613;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.sm-member-card-classic .sm-card-member {
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.sm-member-card-classic .sm-card-name {
    color: white;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}

.sm-member-card-classic .sm-card-role {
    color: rgba(255,255,255,0.6);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sm-member-card-classic .sm-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    position: relative;
    z-index: 1;
}

.sm-member-card-classic .sm-card-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sm-member-card-classic .sm-card-info-row {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.8);
    font-size: 11px;
}

.sm-member-card-classic .sm-card-info-row i {
    width: 16px;
    color: #e30613;
    font-size: 11px;
}

.sm-member-card-classic .sm-card-number {
    font-family: 'Courier New', monospace;
    font-size: 24px;
    font-weight: 700;
    color: white;
    letter-spacing: 4px;
}

/* Logo image for both cards */
.sm-card-logo-img {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: contain;
}

/* CGT VIVEST text white for classic card */
.sm-card-logo-text-white {
    color: white;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 1px;
}

/* Classic card content (same layout as premium) */
.sm-member-card-classic .sm-card-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    position: relative;
    z-index: 1;
    margin-top: 28px;
}

.sm-member-card-classic .sm-card-member-info {
    flex: 1;
}

.sm-card-label-classic {
    color: rgba(255,255,255,0.6);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.sm-member-card-classic .sm-card-name {
    color: white;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

/* ========== MEMBER CARD - PREMIUM GOLD (Option C) ========== */
.sm-member-card-premium {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    border: 1px solid rgba(212,175,55,0.3);
}

.sm-member-card-premium .sm-card-gold-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #d4af37, #f4d03f, #d4af37);
}

.sm-member-card-premium .sm-card-logo-icon-gold {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #d4af37, #f4d03f);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    font-weight: 900;
    font-size: 16px;
}

.sm-member-card-premium .sm-card-logo-text-gold {
    color: #d4af37;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 2px;
}

.sm-member-card-premium .sm-card-badge-gold {
    background: linear-gradient(135deg, #d4af37, #f4d03f);
    color: #1a1a1a;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.sm-member-card-premium .sm-card-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    position: relative;
    z-index: 1;
    margin-top: 28px;
}

.sm-member-card-premium .sm-card-member-info {
    flex: 1;
}

.sm-member-card-premium .sm-card-label-gold {
    color: #d4af37;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
    opacity: 0.9;
}

.sm-member-card-premium .sm-card-name-dark {
    color: white;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.sm-member-card-premium .sm-card-role-gold {
    color: rgba(255,255,255,0.5);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.sm-member-card-premium .sm-card-number-gold {
    font-family: 'Courier New', monospace;
    font-size: 26px;
    font-weight: 700;
    color: #d4af37;
    letter-spacing: 5px;
}

/* ========== QR CODE ========== */
.sm-member-card .sm-card-qr {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 12px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sm-member-card .sm-card-qr img,
.sm-member-card .sm-card-qr canvas {
    width: 100% !important;
    height: 100% !important;
}

.sm-member-card-premium .sm-card-qr {
    border: 2px solid #d4af37;
}

.sm-qr-placeholder {
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, #374151 50%, transparent 50%),
        linear-gradient(#374151 50%, transparent 50%);
    background-size: 8px 8px;
    border-radius: 6px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 480px) {
    .sm-member-card {
        max-width: 100%;
        padding: 20px;
        min-height: 240px;
    }
    
    .sm-member-card-classic .sm-card-name,
    .sm-member-card-premium .sm-card-name-dark {
        font-size: 20px;
    }
    
    .sm-member-card-classic .sm-card-number,
    .sm-member-card-premium .sm-card-number-gold {
        font-size: 20px;
        letter-spacing: 3px;
    }
    
    .sm-member-card .sm-card-qr {
        width: 80px;
        height: 80px;
    }
    
    .sm-card-logo-img {
        width: 48px;
        height: 48px;
    }
    
    .sm-card-logo-text-white,
    .sm-member-card-premium .sm-card-logo-text-gold {
        font-size: 18px;
    }
    
    .sm-card-label-classic,
    .sm-member-card-premium .sm-card-label-gold {
        font-size: 10px;
    }
}

/* ==========================================================================
   NOUVEAU SYSTÈME DE GESTION DES FORMATIONS
   ========================================================================== */

/* Page Header */
.sm-formations-header {
    background: linear-gradient(135deg, #e30613 0%, #c1121f 100%);
    color: white;
    padding: 28px 24px;
    border-radius: 16px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.sm-formations-header .sm-page-title {
    color: white;
    margin: 0;
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sm-formations-header .sm-page-title i {
    display: inline-block;
    font-size: 24px;
    color: white;
}

.sm-formations-header .sm-page-subtitle {
    color: rgba(255,255,255,0.85);
    margin: 6px 0 0;
    font-size: 14px;
}

.sm-formations-header .sm-btn-outline-white {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.5);
    color: white;
}

.sm-formations-header .sm-btn-outline-white:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
}

.sm-formations-header .sm-btn-white {
    background: white;
    color: #e30613;
    border: none;
}

.sm-formations-header .sm-btn-white:hover {
    background: #f3f4f6;
}

/* Stats Cards */
.sm-formations-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.sm-formation-stat {
    background: white;
    border-radius: 14px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.sm-formation-stat:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.sm-formation-stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.sm-formation-stat-icon.purple { background: #f3e8ff; color: #8b5cf6; }
.sm-formation-stat-icon.orange { background: #ffedd5; color: #f59e0b; }
.sm-formation-stat-icon.green { background: #dcfce7; color: #10b981; }
.sm-formation-stat-icon.blue { background: #dbeafe; color: #3b82f6; }
.sm-formation-stat-icon.gray { background: #f3f4f6; color: #6b7280; }

.sm-formation-stat-content {
    flex: 1;
}

.sm-formation-stat-value {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: #1f2937;
    line-height: 1.2;
}

.sm-formation-stat-label {
    font-size: 13px;
    color: #6b7280;
}

.sm-formation-stat-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.sm-formation-stat-badge.orange {
    background: #ffedd5;
    color: #c2410c;
}

/* Info Banner */
.sm-formations-info-banner {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #93c5fd;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.sm-formations-info-banner .sm-info-icon {
    color: #3b82f6;
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.sm-formations-info-banner .sm-info-content {
    color: #1e40af;
    font-size: 14px;
    line-height: 1.5;
}

/* Filter Tabs */
.sm-formations-tabs {
    display: flex;
    gap: 6px;
    background: #f3f4f6;
    padding: 5px;
    border-radius: 12px;
    margin-bottom: 24px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.sm-formations-tab {
    padding: 10px 18px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.sm-formations-tab:hover {
    background: rgba(255,255,255,0.5);
    color: #374151;
}

.sm-formations-tab.active {
    background: white;
    color: #1f2937;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.sm-tab-count {
    background: #e5e7eb;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    margin-left: 6px;
}

.sm-formations-tab.active .sm-tab-count {
    background: #e30613;
    color: white;
}

/* Formations Grid */
.sm-formations-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Formation Card */
.sm-formation-card {
    background: white;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: all 0.2s;
    cursor: pointer;
    position: relative;
}

.sm-formation-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border-color: #d1d5db;
}

.sm-formation-card.needs-action {
    border-left: 4px solid #f59e0b;
}

.sm-formation-card-header {
    display: flex;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid #f3f4f6;
}

/* Date Badge */
/* Badge date rond moderne (Option 2) */
.sm-formation-date-badge {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    /* Background set via inline styles based on event type */
}

.sm-formation-day {
    color: white;
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
}

.sm-formation-month {
    color: rgba(255, 255, 255, 0.9);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 2px;
    letter-spacing: 0.5px;
}

/* Formation Info */
.sm-formation-info {
    flex: 1;
    min-width: 0;
}

.sm-formation-title {
    font-size: 17px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 10px;
    line-height: 1.3;
}

.sm-formation-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 13px;
    color: #6b7280;
}

.sm-formation-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.sm-formation-meta i {
    color: #9ca3af;
    width: 14px;
}

/* Status Area */
.sm-formation-status-area {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.sm-formation-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.sm-formation-status.survey { background: #f3e8ff; color: #7c3aed; }
.sm-formation-status.selection { background: #ffedd5; color: #c2410c; }
.sm-formation-status.confirmed { background: #dcfce7; color: #166534; }
.sm-formation-status.warning { background: #fef3c7; color: #92400e; }
.sm-formation-status.completed { background: #f3f4f6; color: #6b7280; }

.sm-formation-status-info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: #6b7280;
}

.sm-formation-deadline {
    display: flex;
    align-items: center;
    gap: 4px;
}

.sm-formation-deadline.urgent {
    color: #dc2626;
}

/* Progress Info */
.sm-formation-progress-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #6b7280;
}

.sm-formation-progress-bar {
    width: 80px;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

.sm-formation-progress-fill {
    height: 100%;
    background: #10b981;
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Card Body - Workflow */
.sm-formation-card-body {
    padding: 16px 20px;
    background: #fafafa;
}

/* Workflow Tracker */
.sm-workflow-tracker {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.sm-workflow-tracker::before {
    content: '';
    position: absolute;
    top: 13px;
    left: 25px;
    right: 25px;
    height: 2px;
    background: #e5e7eb;
    z-index: 0;
}

.sm-workflow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 1;
}

.sm-workflow-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: white;
    border: 2px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #9ca3af;
    transition: all 0.2s;
}

.sm-workflow-step.completed .sm-workflow-dot {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

.sm-workflow-step.active .sm-workflow-dot {
    background: #e30613;
    border-color: #e30613;
    color: white;
    box-shadow: 0 0 0 4px rgba(227,6,19,0.15);
}

.sm-workflow-label {
    font-size: 10px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
}

.sm-workflow-step.completed .sm-workflow-label,
.sm-workflow-step.active .sm-workflow-label {
    color: #374151;
}

/* Card Footer */
.sm-formation-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: white;
    border-top: 1px solid #f3f4f6;
}

/* Participants Avatars */
.sm-participants-avatars {
    display: flex;
    align-items: center;
}

.sm-avatar-mini {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid white;
    margin-left: -8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    color: white;
}

.sm-avatar-mini:first-child {
    margin-left: 0;
}

.sm-avatar-mini.more {
    background: #9ca3af;
}

.sm-participants-count {
    margin-left: 10px;
    font-size: 13px;
    color: #6b7280;
}

.sm-no-participants {
    font-size: 13px;
    color: #9ca3af;
}

/* Vote Status */
.sm-vote-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
}

.sm-vote-status.voted-yes {
    color: #166534;
}

.sm-vote-status.voted-no {
    color: #991b1b;
}

.sm-btn-link {
    background: none;
    border: none;
    color: #3b82f6;
    cursor: pointer;
    font-size: 12px;
    text-decoration: underline;
    padding: 0;
}

.sm-btn-link:hover {
    color: #1d4ed8;
}

/* Vote Buttons */
.sm-vote-buttons {
    display: flex;
    gap: 8px;
}

.sm-admin-survey-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

/* Confirmed Actions */
.sm-formation-confirmed-actions {
    display: flex;
    gap: 8px;
}

/* Admin Actions */
.sm-formation-admin-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.2s;
}

.sm-formation-card:hover .sm-formation-admin-actions {
    opacity: 1;
}

.sm-btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s;
}

.sm-btn-icon:hover {
    background: #f3f4f6;
}

.sm-btn-icon.danger:hover {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
}

/* Extra Small Button */
.sm-btn-xs {
    padding: 4px 10px;
    font-size: 11px;
}

/* ========== Formation Detail Modal ========== */
.sm-formation-detail-container {
    max-width: 950px;
}

.sm-formation-detail-header {
    background: linear-gradient(135deg, #e30613 0%, #c1121f 100%);
    color: white;
    padding: 24px 28px;
}

.sm-formation-detail-header .sm-modal-close {
    color: white;
}

.sm-formation-theme-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 10px;
}

.sm-formation-detail-header h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
}

.sm-formation-detail-workflow {
    padding: 20px 0;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 24px;
}

.sm-formation-detail-grid {
    margin-bottom: 24px;
}

.sm-formation-detail-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.sm-info-item {
    display: flex;
    gap: 12px;
    padding: 14px;
    background: #f9fafb;
    border-radius: 10px;
}

.sm-info-item i {
    color: #e30613;
    font-size: 18px;
    width: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.sm-info-item strong {
    display: block;
    font-size: 11px;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.sm-info-item span {
    font-size: 14px;
    color: #1f2937;
}

.sm-formation-detail-section {
    margin-bottom: 24px;
}

.sm-formation-detail-section h3 {
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sm-formation-detail-section h3 i {
    color: #e30613;
}

.sm-formation-detail-section p {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
}

.sm-prerequisites {
    background: #f9fafb;
    padding: 16px;
    border-radius: 10px;
    font-size: 14px;
    color: #4b5563;
    line-height: 1.8;
}

/* Survey Results */
.sm-survey-results {
    background: #f9fafb;
    padding: 20px;
    border-radius: 12px;
}

.sm-survey-bar-container {
    margin-bottom: 16px;
}

.sm-survey-bar {
    height: 12px;
    background: #fee2e2;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}

.sm-survey-bar-yes {
    height: 100%;
    background: #10b981;
    border-radius: 6px;
    transition: width 0.5s ease;
}

.sm-survey-labels {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
}

.sm-survey-labels .yes { color: #166534; }
.sm-survey-labels .no { color: #991b1b; }

.sm-survey-deadline {
    color: #6b7280;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Vote Section */
.sm-vote-section {
    text-align: center;
}

.sm-current-vote {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    margin-bottom: 16px;
}

.sm-current-vote.yes {
    background: #dcfce7;
    color: #166534;
}

.sm-current-vote.no {
    background: #fee2e2;
    color: #991b1b;
}

.sm-vote-buttons-large {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.sm-vote-btn {
    flex: 1;
    max-width: 200px;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.sm-vote-btn.yes {
    background: #dcfce7;
    color: #166534;
    border-color: #86efac;
}

.sm-vote-btn.yes:hover,
.sm-vote-btn.yes.active {
    background: #bbf7d0;
    border-color: #22c55e;
}

.sm-vote-btn.no {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fca5a5;
}

.sm-vote-btn.no:hover,
.sm-vote-btn.no.active {
    background: #fecaca;
    border-color: #ef4444;
}

.sm-vote-btn i {
    font-size: 20px;
}

/* Create Formation Modal */
.sm-create-formation-container {
    max-width: 700px;
}

.sm-create-formation-container .sm-modal-header {
    background: linear-gradient(135deg, #e30613 0%, #c1121f 100%);
    color: white;
}

.sm-create-formation-container .sm-modal-header h2 {
    color: white;
}

.sm-create-formation-container .sm-modal-close {
    color: white;
}

.sm-form-section {
    margin-bottom: 28px;
}

.sm-form-section-title {
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f3f4f6;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sm-form-section-title i {
    color: #e30613;
}

.sm-form-hint {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

.sm-info-box {
    display: flex;
    gap: 14px;
    background: #eff6ff;
    border: 1px solid #93c5fd;
    border-radius: 12px;
    padding: 16px;
    font-size: 14px;
    color: #1e40af;
}

.sm-info-box i {
    font-size: 20px;
    color: #3b82f6;
    flex-shrink: 0;
}

.sm-info-box strong {
    display: block;
    margin-bottom: 4px;
}

.sm-info-box p {
    margin: 0;
    line-height: 1.5;
}

/* Text Muted */
.sm-text-muted {
    color: #6b7280;
    font-size: 13px;
}

.sm-info-text {
    background: #f0f9ff;
    border-radius: 10px;
    padding: 14px;
    font-size: 14px;
    color: #0369a1;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.sm-info-text i {
    color: #0284c7;
    margin-top: 2px;
}

/* Responsive */
@media (max-width: 768px) {
    .sm-formations-header {
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .sm-formations-header .sm-header-actions {
        width: 100%;
        display: flex;
        gap: 10px;
    }
    
    .sm-formations-header .sm-btn {
        flex: 1;
        justify-content: center;
    }
    
    .sm-formations-header .btn-text {
        display: none;
    }
    
    .sm-formations-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sm-formation-stat {
        padding: 14px;
    }
    
    .sm-formation-stat-value {
        font-size: 22px;
    }
    
    .sm-formation-card-header {
        flex-direction: column;
        gap: 14px;
    }
    
    .sm-formation-date-badge {
        width: 60px;
        height: 60px;
        align-self: flex-start;
    }
    
    .sm-formation-day {
        font-size: 22px;
    }
    
    .sm-formation-month {
        font-size: 10px;
    }
    
    .sm-formation-status-area {
        align-items: flex-start;
    }
    
    .sm-workflow-label {
        display: none;
    }
    
    .sm-formation-card-footer {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .sm-formation-actions {
        width: 100%;
    }
    
    .sm-vote-buttons {
        width: 100%;
    }
    
    .sm-vote-buttons .sm-btn {
        flex: 1;
    }
    
    .sm-formation-detail-info {
        grid-template-columns: 1fr;
    }
    
    .sm-vote-buttons-large {
        flex-direction: column;
    }
    
    .sm-vote-btn {
        max-width: none;
    }
}

@media (max-width: 480px) {
    .sm-formations-stats {
        grid-template-columns: 1fr;
    }
    
    .sm-formations-tabs {
        flex-wrap: nowrap;
    }
    
    .sm-formations-tab {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .sm-tab-count {
        display: none;
    }
}

/* Fix for vote change button */
.sm-vote-status .sm-btn-link {
    margin-left: 10px;
    padding: 4px 10px;
    background: rgba(255,255,255,0.9);
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.sm-vote-status.voted-yes .sm-btn-link {
    color: #047857;
}

.sm-vote-status.voted-yes .sm-btn-link:hover {
    background: #d1fae5;
}

.sm-vote-status.voted-no .sm-btn-link {
    color: #b91c1c;
}

.sm-vote-status.voted-no .sm-btn-link:hover {
    background: #fee2e2;
}

/* ==========================================================================
   MODAL CONVOCATION
   ========================================================================== */
.sm-convocation-container {
    max-width: 700px;
}

.sm-convocation-container .sm-modal-header {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
}

.sm-convocation-container .sm-modal-header h2 {
    color: white;
}

.sm-convocation-container .sm-modal-close {
    color: white;
}

.sm-convocation-section {
    margin-bottom: 24px;
}

.sm-convocation-section h3 {
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sm-convocation-section h3 i {
    color: #3b82f6;
}

/* Participants list */
.sm-convocation-participants-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 8px;
}

.sm-convocation-participant {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 8px;
    transition: background 0.2s;
}

.sm-convocation-participant:hover {
    background: #f9fafb;
}

.sm-participant-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 16px;
    flex-shrink: 0;
}

.sm-participant-info {
    flex: 1;
    min-width: 0;
}

.sm-participant-info strong {
    display: block;
    font-size: 14px;
    color: #1f2937;
}

.sm-participant-info span {
    display: block;
    font-size: 12px;
    color: #6b7280;
}

.sm-participant-status {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.sm-participant-status.confirmed {
    background: #dcfce7;
    color: #166534;
}

/* File upload */
.sm-convocation-files {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sm-file-upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
}

.sm-file-upload-area:hover {
    border-color: #3b82f6;
    background: #f8fafc;
}

.sm-file-upload-content i {
    font-size: 32px;
    color: #9ca3af;
    margin-bottom: 10px;
}

.sm-file-upload-content p {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin: 0;
}

.sm-file-upload-content span {
    font-size: 12px;
    color: #9ca3af;
}

.sm-file-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sm-file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #f3f4f6;
    border-radius: 8px;
}

.sm-file-item i {
    color: #3b82f6;
    font-size: 18px;
}

.sm-file-name {
    flex: 1;
    font-size: 13px;
    color: #1f2937;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sm-file-size {
    font-size: 12px;
    color: #9ca3af;
}

.sm-file-remove {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.sm-file-remove:hover {
    background: #fee2e2;
    color: #dc2626;
}

/* Convocation options */
.sm-convocation-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sm-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #f9fafb;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.sm-checkbox-label:hover {
    background: #f3f4f6;
}

.sm-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #3b82f6;
}

.sm-checkbox-label span {
    font-size: 14px;
    color: #374151;
}

/* Textarea redimensionnable */
.sm-textarea-resize {
    resize: vertical;
    min-height: 200px;
    max-height: 600px;
}

/* Amélioration du modal convocation pour le grand textarea */
.sm-convocation-container .sm-modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

/* Convocation Modal - Textarea fixe */
.sm-convocation-body {
    max-height: 75vh;
    overflow-y: auto;
    padding: 20px !important;
}

.sm-convocation-message-container {
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 2px;
}

.sm-convocation-textarea {
    width: 100%;
    height: 400px;
    min-height: 400px;
    max-height: 400px;
    padding: 16px;
    border: none;
    border-radius: 8px;
    background: #fff;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.6;
    color: #1f2937;
    resize: none;
    overflow-y: auto;
}

.sm-convocation-textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

.sm-convocation-container {
    max-width: 800px !important;
    width: 95% !important;
}

/* ================================================
   EVENTS CALENDAR & TOOLBAR STYLES
   ================================================ */

/* Toolbar */
.sm-formations-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.sm-formations-toolbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Year Selector */
.sm-year-selector select,
.sm-select-compact {
    padding: 8px 32px 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M2 4l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 10px center;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    min-width: 100px;
}

.sm-year-selector select:hover,
.sm-select-compact:hover {
    border-color: #d1d5db;
}

/* View Toggle */
.sm-view-toggle {
    display: flex;
    background: #f3f4f6;
    border-radius: 8px;
    padding: 4px;
}

.sm-view-btn {
    padding: 8px 12px;
    border: none;
    background: transparent;
    color: #6b7280;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sm-view-btn:hover {
    color: #374151;
}

.sm-view-btn.active {
    background: white;
    color: #e63946;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Events Calendar */
.sm-events-calendar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding: 10px 0;
}

.sm-calendar-month {
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: all 0.2s;
}

.sm-calendar-month.has-events {
    border-color: #d1d5db;
}

.sm-calendar-month.has-events:hover {
    border-color: #e63946;
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.1);
}

.sm-calendar-month-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.sm-calendar-month-name {
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.sm-calendar-month-count {
    background: #e63946;
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
}

.sm-calendar-month-events {
    padding: 10px;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sm-calendar-empty {
    color: #9ca3af;
    font-size: 12px;
    text-align: center;
    margin: auto;
}

.sm-calendar-event {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.sm-calendar-event:hover {
    transform: translateX(3px);
}

.sm-calendar-event.survey {
    background: #ede9fe;
    border-left: 3px solid #8b5cf6;
}

.sm-calendar-event.selection {
    background: #fef3c7;
    border-left: 3px solid #f59e0b;
}

.sm-calendar-event.confirmed {
    background: #d1fae5;
    border-left: 3px solid #10b981;
}

.sm-calendar-event.completed {
    background: #f3f4f6;
    border-left: 3px solid #6b7280;
}

.sm-calendar-event-day {
    font-weight: 700;
    font-size: 14px;
    color: #374151;
    min-width: 24px;
}

.sm-calendar-event-title {
    font-size: 12px;
    color: #4b5563;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

/* Simple Pagination for Events */
.sm-events-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.sm-events-pagination .sm-pagination-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.sm-events-pagination .sm-pagination-btn:hover:not(:disabled) {
    border-color: #e63946;
    color: #e63946;
}

.sm-events-pagination .sm-pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.sm-events-pagination .sm-pagination-info {
    font-size: 14px;
    color: #6b7280;
    padding: 0 10px;
}

/* Responsive Calendar */
@media (max-width: 1200px) {
    .sm-events-calendar {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .sm-events-calendar {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sm-formations-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .sm-formations-toolbar-right {
        justify-content: space-between;
    }
}

@media (max-width: 600px) {
    .sm-events-calendar {
        grid-template-columns: 1fr;
    }
    
    .sm-view-toggle {
        display: none;
    }
}

/* ========================================
   NEWS GALLERY STYLES
   ======================================== */

.sm-news-gallery {
    margin: 15px 0;
    cursor: pointer;
}

.sm-news-gallery-grid {
    display: grid;
    gap: 4px;
    border-radius: 12px;
    overflow: hidden;
}

.sm-news-gallery-grid.sm-gallery-count-1 {
    grid-template-columns: 1fr;
}

.sm-news-gallery-grid.sm-gallery-count-2 {
    grid-template-columns: 1fr 1fr;
}

.sm-news-gallery-grid.sm-gallery-count-3 {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.sm-news-gallery-grid.sm-gallery-count-3 .sm-news-gallery-item:first-child {
    grid-row: span 2;
}

.sm-news-gallery-grid.sm-gallery-count-4 {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.sm-news-gallery-grid.sm-gallery-count-4 .sm-news-gallery-item:first-child {
    grid-row: span 2;
}

.sm-news-gallery-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: #e2e8f0;
}

.sm-news-gallery-item.sm-main {
    aspect-ratio: auto;
    min-height: 200px;
}

.sm-news-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.sm-news-gallery:hover .sm-news-gallery-item img {
    transform: scale(1.05);
}

.sm-gallery-more {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
}

/* ========================================
   LIGHTBOX STYLES
   ======================================== */

.sm-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2147483647; /* Maximum possible z-index */
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sm-lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
}

.sm-lightbox-content {
    position: relative;
    z-index: 1;
    max-width: 90%;
    max-height: 90vh;
}

.sm-lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.sm-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.sm-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.sm-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.sm-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.sm-lightbox-prev {
    left: 20px;
}

.sm-lightbox-next {
    right: 20px;
}

.sm-lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: white;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 20px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .sm-lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .sm-lightbox-prev {
        left: 10px;
    }
    
    .sm-lightbox-next {
        right: 10px;
    }
    
    .sm-news-gallery-grid.sm-gallery-count-3,
    .sm-news-gallery-grid.sm-gallery-count-4 {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    
    .sm-news-gallery-grid.sm-gallery-count-3 .sm-news-gallery-item:first-child,
    .sm-news-gallery-grid.sm-gallery-count-4 .sm-news-gallery-item:first-child {
        grid-row: span 1;
        grid-column: span 2;
    }
}


/* ============================================
   TICKETS / SUPPORT SYSTEM
   ============================================ */

/* Tickets Page Header */
.sm-tickets-page,
.sm-tickets-admin-page {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.sm-tickets-header,
.sm-tickets-admin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.sm-tickets-title h1 {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 4px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sm-tickets-title h1 i {
    color: #e30613;
}

.sm-tickets-title p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

/* Tickets Stats */
.sm-tickets-stats {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.sm-ticket-stat {
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.sm-ticket-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.sm-ticket-stat.active {
    border-color: #e30613;
    background: #fef2f2;
}

.sm-ticket-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
}

.sm-ticket-stat-label {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

.sm-ticket-stat.sm-stat-open .sm-ticket-stat-value { color: #f59e0b; }
.sm-ticket-stat.sm-stat-progress .sm-ticket-stat-value { color: #3b82f6; }
.sm-ticket-stat.sm-stat-resolved .sm-ticket-stat-value { color: #10b981; }

/* Tickets List */
.sm-tickets-list,
.sm-tickets-admin-list {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.sm-ticket-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: background 0.2s;
}

.sm-ticket-item:hover {
    background: #f9fafb;
}

.sm-ticket-item:last-child {
    border-bottom: none;
}

.sm-ticket-status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.sm-ticket-info {
    flex: 1;
    min-width: 0;
}

.sm-ticket-subject {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sm-ticket-meta {
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: #6b7280;
    flex-wrap: wrap;
}

.sm-ticket-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.sm-ticket-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.sm-ticket-category {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sm-ticket-priority {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.sm-ticket-priority.sm-priority-urgent,
.sm-priority-urgent {
    background: #dc2626;
    color: #ffffff;
}

.sm-ticket-priority.sm-priority-high,
.sm-priority-high {
    background: #f59e0b;
    color: #ffffff;
}

.sm-priority-normal {
    background: #3b82f6;
    color: #ffffff;
}

.sm-priority-low {
    background: #10b981;
    color: #ffffff;
}

.sm-ticket-status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.sm-ticket-arrow {
    color: #d1d5db;
    font-size: 14px;
    flex-shrink: 0;
}

/* Admin Stats */
.sm-tickets-admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.sm-admin-stat {
    background: white;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.sm-admin-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.sm-admin-stat i {
    font-size: 24px;
    margin-bottom: 8px;
}

.sm-admin-stat-value {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.sm-admin-stat-label {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

.sm-admin-stat.sm-stat-urgent i,
.sm-admin-stat.sm-stat-urgent .sm-admin-stat-value { color: #dc2626; }
.sm-admin-stat.sm-stat-unassigned i,
.sm-admin-stat.sm-stat-unassigned .sm-admin-stat-value { color: #f59e0b; }
.sm-admin-stat.sm-stat-mine i,
.sm-admin-stat.sm-stat-mine .sm-admin-stat-value { color: #8b5cf6; }
.sm-admin-stat.sm-stat-open i,
.sm-admin-stat.sm-stat-open .sm-admin-stat-value { color: #f59e0b; }
.sm-admin-stat.sm-stat-progress i,
.sm-admin-stat.sm-stat-progress .sm-admin-stat-value { color: #3b82f6; }
.sm-admin-stat.sm-stat-resolved i,
.sm-admin-stat.sm-stat-resolved .sm-admin-stat-value { color: #10b981; }

/* Admin Filters */
.sm-tickets-admin-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 16px;
    flex-wrap: wrap;
}

.sm-filter-tabs {
    display: flex;
    gap: 8px;
}

.sm-filter-tab {
    padding: 10px 16px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.sm-filter-tab:hover {
    background: #f9fafb;
}

.sm-filter-tab.active {
    background: #111827;
    color: white;
    border-color: #111827;
}

.sm-search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.sm-search-box input {
    border: none;
    background: none;
    font-size: 14px;
    width: 200px;
    outline: none;
}

.sm-search-box i {
    color: #9ca3af;
}

/* Admin Ticket Item */
.sm-ticket-admin-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.2s;
}

.sm-ticket-admin-item:hover {
    background: #f9fafb;
}

.sm-ticket-requester {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 150px;
}

.sm-ticket-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.sm-ticket-requester-info {
    display: flex;
    flex-direction: column;
}

.sm-ticket-requester-name {
    font-weight: 600;
    color: #111827;
    font-size: 14px;
}

.sm-ticket-requester-role {
    font-size: 12px;
    color: #6b7280;
}

.sm-ticket-category-badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.sm-ticket-priority-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

.sm-btn-take-charge {
    background: #dbeafe !important;
    color: #2563eb !important;
    border: none !important;
}

.sm-btn-take-charge:hover {
    background: #bfdbfe !important;
}

.sm-btn-reply {
    background: #dcfce7 !important;
    color: #16a34a !important;
    border: none !important;
}

/* Ticket Detail Page */
.sm-ticket-detail-page {
    padding: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.sm-ticket-detail-header {
    margin-bottom: 24px;
}

.sm-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: none;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #6b7280;
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 16px;
}

.sm-back-btn:hover {
    background: #f9fafb;
}

.sm-ticket-detail-title h1 {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 12px 0;
}

.sm-ticket-detail-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.sm-ticket-detail-badges .sm-badge {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sm-ticket-detail-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.sm-ticket-detail-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.sm-ticket-detail-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Original Message */
.sm-ticket-original-message {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.sm-message-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.sm-message-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 16px;
    flex-shrink: 0;
}

.sm-message-author {
    display: flex;
    flex-direction: column;
}

.sm-message-name {
    font-weight: 600;
    color: #111827;
}

.sm-message-time {
    font-size: 12px;
    color: #9ca3af;
}

.sm-message-content {
    font-size: 15px;
    line-height: 1.6;
    color: #374151;
}

.sm-message-attachments {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.sm-message-attachments a,
.sm-attachment {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #f3f4f6;
    border-radius: 6px;
    font-size: 13px;
    color: #374151;
    text-decoration: none;
}

.sm-message-attachments a:hover,
.sm-attachment:hover {
    background: #e5e7eb;
}

/* Conversation */
.sm-ticket-conversation {
    max-height: 400px;
    overflow-y: auto;
    padding: 20px;
    background: #f9fafb;
    border-radius: 16px;
    margin-bottom: 20px;
}

.sm-ticket-message {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.sm-ticket-message.sm-message-staff {
    flex-direction: row-reverse;
}

.sm-ticket-message .sm-message-bubble {
    max-width: 70%;
    background: white;
    padding: 14px 18px;
    border-radius: 16px;
    border-top-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.sm-ticket-message.sm-message-staff .sm-message-bubble {
    background: linear-gradient(135deg, #e30613, #be123c);
    color: white;
    border-top-left-radius: 16px;
    border-top-right-radius: 4px;
}

.sm-ticket-message.sm-message-staff .sm-message-author,
.sm-ticket-message.sm-message-staff .sm-message-time {
    color: rgba(255,255,255,0.9);
}

.sm-ticket-message.sm-message-staff .sm-message-text {
    color: white;
}

.sm-ticket-message.sm-message-internal .sm-message-bubble {
    background: #fef3c7;
    border: 2px dashed #fbbf24;
}

.sm-ticket-message.sm-message-internal.sm-message-staff .sm-message-bubble {
    background: #fef3c7;
    color: #92400e;
}

.sm-ticket-message.sm-message-internal .sm-message-author,
.sm-ticket-message.sm-message-internal .sm-message-text {
    color: #92400e !important;
}

.sm-staff-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    background: #fef2f2;
    color: #dc2626;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sm-message-bubble .sm-message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    gap: 12px;
}

.sm-message-bubble .sm-message-author {
    font-weight: 600;
    font-size: 13px;
}

.sm-message-bubble .sm-message-time {
    font-size: 11px;
    color: #9ca3af;
}

.sm-message-text {
    font-size: 14px;
    line-height: 1.5;
    color: #374151;
}

/* Reply Box */
.sm-ticket-reply-box {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.sm-reply-input textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.sm-reply-input textarea:focus {
    outline: none;
    border-color: #e30613;
}

.sm-reply-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    flex-wrap: wrap;
    gap: 12px;
}

.sm-reply-buttons {
    display: flex;
    gap: 12px;
}

.sm-btn-internal {
    padding: 10px 20px;
    border: 2px solid #f59e0b;
    border-radius: 10px;
    background: white;
    color: #b45309;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.sm-btn-internal:hover {
    background: #fffbeb;
    border-color: #d97706;
}

.sm-ticket-requester {
    cursor: pointer;
    padding: 8px;
    border-radius: 10px;
    transition: background 0.2s;
}

.sm-ticket-requester:hover {
    background: #f0f9ff;
}

.sm-requester-link:hover {
    background: #f0f9ff !important;
}

.sm-internal-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6b7280;
    cursor: pointer;
}

.sm-internal-checkbox input {
    width: 18px;
    height: 18px;
}

.sm-ticket-closed-notice {
    background: #f3f4f6;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* =============================================
   KANBAN BOARD STYLES
   ============================================= */

.sm-tickets-kanban-page {
    padding: 20px;
    max-width: 100%;
    margin: 0 auto;
}

.sm-kanban-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 16px;
}

.sm-kanban-title h1 {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 4px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sm-kanban-title h1 i {
    color: #e30613;
}

.sm-kanban-title p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.sm-kanban-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.sm-kanban-search {
    position: relative;
}

.sm-kanban-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.sm-kanban-search input {
    padding: 10px 14px 10px 40px;
    border-radius: 10px;
    border: 2px solid #e5e7eb;
    font-size: 14px;
    width: 220px;
    outline: none;
    transition: border-color 0.2s;
}

.sm-kanban-search input:focus {
    border-color: #e30613;
}

/* Kanban Stats */
.sm-kanban-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.sm-kanban-stat {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.sm-kanban-stat i {
    font-size: 18px;
}

.sm-kanban-stat span {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
}

.sm-kanban-stat label {
    font-size: 13px;
    color: #64748b;
}

.sm-kanban-stat-urgent i { color: #ef4444; }
.sm-kanban-stat-unassigned i { color: #f59e0b; }
.sm-kanban-stat-mine i { color: #10b981; }

/* Kanban Board */
.sm-kanban-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    min-height: 500px;
}

.sm-kanban-column {
    background: white;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.sm-kanban-column-header {
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 3px solid #e5e7eb;
}

.sm-kanban-column-title {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
}

.sm-kanban-column-count {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: 700;
}

.sm-kanban-column-body {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sm-kanban-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #94a3b8;
    text-align: center;
}

.sm-kanban-empty i {
    font-size: 32px;
    margin-bottom: 8px;
    opacity: 0.5;
}

.sm-kanban-empty span {
    font-size: 13px;
}

/* Kanban Card */
.sm-kanban-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 14px;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.sm-kanban-card:hover {
    background: #f1f5f9;
    border-color: #e5e7eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.sm-kanban-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.sm-kanban-card-number {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
}

.sm-kanban-card-urgent {
    padding: 3px 8px;
    border-radius: 6px;
    background: #fef2f2;
    color: #dc2626;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.sm-kanban-card-high {
    padding: 3px 8px;
    border-radius: 6px;
    background: #fef3c7;
    color: #b45309;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.sm-kanban-card-subject {
    font-weight: 600;
    font-size: 13px;
    color: #1e293b;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sm-kanban-card-preview {
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sm-kanban-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.sm-kanban-card-user {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 4px;
    border-radius: 8px;
    transition: background 0.2s;
}

.sm-kanban-card-user:hover {
    background: #e5e7eb;
}

.sm-kanban-card-avatar {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 10px;
}

.sm-kanban-card-user span {
    font-size: 12px;
    color: #64748b;
}

.sm-kanban-card-category {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
}

.sm-kanban-card-unassigned,
.sm-kanban-card-assigned {
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.sm-kanban-card-unassigned {
    color: #f59e0b;
}

.sm-kanban-card-assigned {
    color: #10b981;
}

.sm-kanban-card-time {
    font-size: 11px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Kanban Card Resolved (simplified) */
.sm-kanban-card-resolved {
    padding: 12px 14px !important;
    background: #f8fafc !important;
}

.sm-kanban-card-resolved-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.sm-kanban-card-resolved .sm-kanban-card-number {
    font-size: 10px;
    color: #10b981;
    background: #d1fae5;
    padding: 2px 6px;
    border-radius: 4px;
}

.sm-kanban-card-resolved-user {
    font-size: 11px;
    color: #64748b;
}

.sm-kanban-card-resolved-subject {
    font-size: 12px;
    color: #374151;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.sm-kanban-card-resolved-date {
    font-size: 10px;
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Fullscreen modal delete button */
.sm-fullmodal-danger-zone {
    border-top: 1px solid #fee2e2;
    margin-top: 16px;
    padding-top: 16px;
}

.sm-fullmodal-delete-btn {
    width: 100%;
    padding: 10px 16px;
    border: 2px solid #dc2626;
    background: transparent;
    color: #dc2626;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.sm-fullmodal-delete-btn:hover {
    background: #dc2626;
    color: white;
}

/* User Reopen button */
.sm-user-fs-reopen-btn {
    padding: 10px 20px;
    border: 2px solid #3b82f6;
    background: transparent;
    color: #3b82f6;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.sm-user-fs-reopen-btn:hover {
    background: #3b82f6;
    color: white;
}

/* =============================================
   TICKET MODAL STYLES (Kanban)
   ============================================= */

.sm-ticket-modal .sm-ticket-modal-container {
    max-width: 700px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    overflow: hidden;
    background: white;
}

.sm-ticket-modal-header {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 24px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.sm-ticket-modal-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.sm-ticket-modal-number {
    padding: 4px 12px;
    border-radius: 6px;
    background: rgba(255,255,255,0.15);
    font-size: 13px;
    font-weight: 500;
}

.sm-ticket-modal-status {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.sm-ticket-modal-category {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.sm-ticket-modal-priority {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}

.sm-ticket-modal-priority.sm-priority-urgent {
    background: #fef2f2;
    color: #dc2626;
}

.sm-ticket-modal-priority.sm-priority-high {
    background: #fef3c7;
    color: #b45309;
}

.sm-ticket-modal-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
}

.sm-ticket-modal-close {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.2s;
    flex-shrink: 0;
}

.sm-ticket-modal-close:hover {
    background: rgba(255,255,255,0.2);
}

.sm-ticket-modal-actions {
    padding: 16px 24px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.sm-ticket-modal-status-buttons {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.sm-status-btn {
    padding: 8px 14px;
    border: none;
    border-radius: 8px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sm-status-btn:hover {
    background: #e5e7eb;
}

.sm-status-btn.active {
    background: var(--status-color);
    color: white;
}

.sm-ticket-modal-requester {
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #e5e7eb;
}

.sm-ticket-modal-requester:hover {
    background: #f8fafc;
}

.sm-ticket-modal-requester-avatar {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 16px;
}

.sm-ticket-modal-requester-info {
    flex: 1;
}

.sm-ticket-modal-requester-name {
    display: block;
    font-weight: 600;
    color: #1e293b;
    font-size: 15px;
}

.sm-ticket-modal-requester-email {
    display: block;
    font-size: 13px;
    color: #64748b;
}

.sm-ticket-modal-requester i {
    color: #94a3b8;
}

.sm-ticket-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.sm-ticket-modal-original {
    margin-bottom: 24px;
}

.sm-ticket-modal-original-label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sm-ticket-modal-original-content {
    background: #f8fafc;
    border-radius: 12px;
    padding: 18px;
    line-height: 1.7;
    color: #374151;
    font-size: 14px;
    white-space: pre-wrap;
    border: 1px solid #e5e7eb;
}

.sm-ticket-modal-attachments {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.sm-ticket-modal-attachment {
    padding: 8px 14px;
    background: #e0f2fe;
    color: #0369a1;
    border-radius: 8px;
    font-size: 13px;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sm-ticket-modal-messages-header {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 16px;
    border-top: 2px solid #f1f5f9;
}

.sm-ticket-modal-messages {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sm-modal-message {
    display: flex;
    gap: 12px;
}

.sm-modal-message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}

.sm-modal-message-content {
    flex: 1;
    background: #f8fafc;
    border-radius: 12px;
    padding: 14px;
}

.sm-modal-message-staff .sm-modal-message-content {
    background: #fef2f2;
    border-left: 4px solid #e30613;
}

.sm-modal-message-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.sm-modal-message-author {
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
}

.sm-modal-message-staff-badge {
    padding: 2px 8px;
    border-radius: 4px;
    background: #fef2f2;
    color: #dc2626;
    font-size: 10px;
    font-weight: 700;
}

.sm-modal-message-time {
    font-size: 12px;
    color: #94a3b8;
    margin-left: auto;
}

.sm-modal-message-text {
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
    white-space: pre-wrap;
}

.sm-ticket-modal-reply {
    padding: 20px 24px;
    border-top: 2px solid #e5e7eb;
    background: #f8fafc;
}

.sm-ticket-modal-reply textarea {
    width: 100%;
    min-height: 90px;
    padding: 14px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    resize: vertical;
    font-size: 14px;
    line-height: 1.6;
    outline: none;
    box-sizing: border-box;
    margin-bottom: 12px;
    transition: border-color 0.2s;
}

.sm-ticket-modal-reply textarea:focus {
    border-color: #3b82f6;
}

.sm-ticket-modal-reply-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sm-ticket-modal-reply-hint {
    font-size: 13px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sm-ticket-modal-closed {
    padding: 24px;
    text-align: center;
    color: #64748b;
    background: #f8fafc;
    border-top: 2px solid #e5e7eb;
}

.sm-ticket-modal-closed i {
    font-size: 20px;
    margin-right: 8px;
}

/* Responsive Kanban */
@media (max-width: 1200px) {
    .sm-kanban-board {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sm-kanban-board {
        grid-template-columns: 1fr;
    }
    
    .sm-kanban-header {
        flex-direction: column;
    }
    
    .sm-kanban-actions {
        width: 100%;
        flex-wrap: wrap;
    }
    
    .sm-kanban-search {
        width: 100%;
    }
    
    .sm-kanban-search input {
        width: 100%;
    }
    
    .sm-kanban-stats {
        flex-wrap: wrap;
    }
    
    .sm-ticket-modal-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .sm-ticket-modal-status-buttons {
        margin-left: 0;
        flex-wrap: wrap;
    }
}

/* =============================================
   FULLSCREEN TICKET MODAL
   ============================================= */

.sm-fullmodal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #f1f5f9;
    z-index: 10000;
    display: flex;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sm-fullmodal.active {
    opacity: 1;
    visibility: visible;
}

/* Sidebar gauche */
.sm-fullmodal-sidebar {
    width: 360px;
    background: white;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.sm-fullmodal-sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.sm-fullmodal-back {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border: none;
    background: #f1f5f9;
    color: #374151;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.sm-fullmodal-back:hover {
    background: #e5e7eb;
}

.sm-fullmodal-ticket-info {
    padding: 24px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.sm-fullmodal-ticket-number {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 8px;
}

.sm-fullmodal-ticket-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 16px 0;
    line-height: 1.3;
}

.sm-fullmodal-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sm-fullmodal-badge {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}

.sm-fullmodal-badge-urgent {
    background: #fef2f2 !important;
    color: #dc2626 !important;
}

.sm-fullmodal-badge-high {
    background: #fef3c7 !important;
    color: #b45309 !important;
}

/* Sections */
.sm-fullmodal-section {
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.sm-fullmodal-section-title {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sm-fullmodal-requester {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 12px;
}

.sm-fullmodal-requester:hover {
    background: #f1f5f9;
}

.sm-fullmodal-requester-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 15px;
}

.sm-fullmodal-requester-info {
    flex: 1;
}

.sm-fullmodal-requester-name {
    display: block;
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
}

.sm-fullmodal-requester-email {
    display: block;
    font-size: 12px;
    color: #64748b;
}

.sm-fullmodal-requester i {
    color: #94a3b8;
}

.sm-fullmodal-assigned {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #d1fae5;
    border-radius: 10px;
    margin-bottom: 12px;
}

.sm-fullmodal-assigned-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #10b981, #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 11px;
}

.sm-fullmodal-assigned span {
    font-weight: 600;
    color: #059669;
    font-size: 13px;
}

.sm-fullmodal-unassigned {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #fef3c7;
    border-radius: 10px;
    color: #b45309;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 12px;
}

.sm-fullmodal-action-btn {
    width: 100%;
    padding: 10px 16px;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.sm-fullmodal-action-btn:hover {
    background: #f8fafc;
    border-color: #d1d5db;
}

.sm-fullmodal-action-primary {
    background: #e30613;
    border-color: #e30613;
    color: white;
}

.sm-fullmodal-action-primary:hover {
    background: #c00511;
    border-color: #c00511;
}

/* Status grid */
.sm-fullmodal-status-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.sm-fullmodal-status-btn {
    padding: 10px 12px;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.sm-fullmodal-status-btn:hover {
    border-color: var(--btn-color);
    color: var(--btn-color);
}

.sm-fullmodal-status-btn.active {
    background: var(--btn-color);
    border-color: var(--btn-color);
    color: white;
}

.sm-fullmodal-meta {
    font-size: 12px;
    color: #64748b;
}

.sm-fullmodal-meta div {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

/* Zone principale */
.sm-fullmodal-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #f8fafc;
    overflow: hidden;
}

.sm-fullmodal-conversation {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
}

.sm-fullmodal-original {
    margin-bottom: 30px;
}

.sm-fullmodal-original-label {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sm-fullmodal-messages-divider {
    display: flex;
    align-items: center;
    margin: 30px 0 20px;
}

.sm-fullmodal-messages-divider::before,
.sm-fullmodal-messages-divider::after {
    content: '';
    flex: 1;
    height: 2px;
    background: #e5e7eb;
}

.sm-fullmodal-messages-divider span {
    padding: 0 16px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sm-fullmodal-no-messages {
    text-align: center;
    padding: 40px;
    color: #94a3b8;
}

.sm-fullmodal-no-messages i {
    font-size: 32px;
    margin-bottom: 12px;
    display: block;
    opacity: 0.5;
}

.sm-fullmodal-messages {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Messages */
.sm-fullmodal-message {
    display: flex;
    gap: 14px;
    max-width: 85%;
}

.sm-fullmodal-message-user {
    align-self: flex-start;
}

.sm-fullmodal-message-staff {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.sm-fullmodal-message-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.sm-fullmodal-message-bubble {
    background: white;
    border-radius: 16px;
    padding: 16px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.sm-fullmodal-message-staff .sm-fullmodal-message-bubble {
    background: linear-gradient(135deg, #fef2f2, #fff1f2);
    border: 1px solid #fecaca;
}

.sm-fullmodal-message-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.sm-fullmodal-message-author {
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
}

.sm-fullmodal-staff-badge {
    padding: 2px 8px;
    border-radius: 6px;
    background: #e30613;
    color: white;
    font-size: 10px;
    font-weight: 700;
}

.sm-fullmodal-message-time {
    font-size: 12px;
    color: #94a3b8;
    margin-left: auto;
}

.sm-fullmodal-message-text {
    font-size: 14px;
    line-height: 1.7;
    color: #374151;
    white-space: pre-wrap;
}

.sm-fullmodal-attachments {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.sm-fullmodal-attachments a {
    padding: 6px 12px;
    background: #e0f2fe;
    color: #0369a1;
    border-radius: 8px;
    font-size: 12px;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Zone de réponse */
.sm-fullmodal-reply {
    padding: 24px 30px;
    background: white;
    border-top: 2px solid #e5e7eb;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.sm-fullmodal-reply-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.sm-fullmodal-reply-input {
    flex: 1;
}

.sm-fullmodal-reply-input textarea {
    width: 100%;
    min-height: 100px;
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    resize: vertical;
    font-size: 15px;
    line-height: 1.6;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.sm-fullmodal-reply-input textarea:focus {
    border-color: #e30613;
}

.sm-fullmodal-reply-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
}

.sm-fullmodal-reply-hint {
    font-size: 13px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sm-fullmodal-send-btn {
    padding: 12px 28px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
}

.sm-fullmodal-send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.sm-fullmodal-closed {
    padding: 24px 30px;
    background: #f3f4f6;
    border-top: 2px solid #e5e7eb;
    text-align: center;
    color: #6b7280;
    font-weight: 500;
}

/* Responsive fullmodal */
@media (max-width: 900px) {
    .sm-fullmodal {
        flex-direction: column;
    }
    
    .sm-fullmodal-sidebar {
        width: 100%;
        max-height: 40vh;
        border-right: none;
        border-bottom: 2px solid #e5e7eb;
    }
    
    .sm-fullmodal-main {
        min-height: 60vh;
    }
    
    .sm-fullmodal-conversation {
        padding: 20px;
    }
    
    .sm-fullmodal-reply {
        padding: 16px 20px;
    }
    
    .sm-fullmodal-message {
        max-width: 95%;
    }
}

/* =============================================
   MEMBER TICKETS - KANBAN & FULLSCREEN MODAL
   ============================================= */

/* Page principale membre */
.sm-member-tickets-page {
    padding: 24px;
    max-width: 100%;
}

.sm-member-tickets-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
}

.sm-member-tickets-title h1 {
    font-size: 26px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sm-member-tickets-title h1 i {
    color: #e30613;
}

.sm-member-tickets-title p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.sm-btn-lg {
    padding: 14px 24px !important;
    font-size: 15px !important;
}

/* Stats Cards */
.sm-member-tickets-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 28px;
}

.sm-member-stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    flex: 1;
    min-width: 160px;
}

.sm-member-stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
}

.sm-member-stat-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1;
}

.sm-member-stat-label {
    display: block;
    font-size: 13px;
    color: #64748b;
    margin-top: 4px;
}

/* Empty State */
.sm-member-tickets-empty {
    text-align: center;
    padding: 80px 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.sm-member-empty-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.sm-member-empty-icon i {
    font-size: 42px;
    color: #94a3b8;
}

.sm-member-tickets-empty h2 {
    font-size: 22px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 12px 0;
}

.sm-member-tickets-empty p {
    font-size: 15px;
    color: #64748b;
    margin: 0 0 28px 0;
    line-height: 1.6;
}

/* Member Kanban */
.sm-member-kanban {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.sm-member-kanban-column {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.sm-member-kanban-header {
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-bottom: 3px solid var(--col-color);
}

.sm-member-kanban-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.sm-member-kanban-title span:first-child {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
}

.sm-member-kanban-count {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--col-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

.sm-member-kanban-desc {
    font-size: 12px;
    color: #64748b;
}

.sm-member-kanban-body {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sm-member-kanban-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    padding: 40px 20px;
}

.sm-member-kanban-empty i {
    font-size: 36px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.sm-member-kanban-empty span {
    font-size: 13px;
}

/* Member Ticket Card */
.sm-member-ticket-card {
    background: #f8fafc;
    border-radius: 14px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
    position: relative;
}

.sm-member-ticket-card:hover {
    background: #f1f5f9;
    border-color: #e5e7eb;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.sm-member-ticket-card.sm-has-new-reply {
    border-color: #8b5cf6;
    background: #faf5ff;
}

.sm-member-card-notification {
    position: absolute;
    top: -8px;
    right: 12px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    font-size: 10px;
    font-weight: 700;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
    animation: pulse 2s infinite;
}

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

.sm-member-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.sm-member-card-number {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
}

.sm-member-card-status {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.sm-member-card-subject {
    font-weight: 600;
    font-size: 14px;
    color: #1e293b;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sm-member-card-preview {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sm-member-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sm-member-card-category {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

.sm-member-card-time {
    font-size: 11px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 4px;
}

.sm-member-card-assigned {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #e5e7eb;
    font-size: 12px;
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Member Fullscreen Modal */
.sm-member-fullmodal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #f8fafc;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sm-member-fullmodal.active {
    opacity: 1;
    visibility: visible;
}

.sm-member-fullmodal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    background: white;
    border-bottom: 1px solid #e5e7eb;
}

.sm-member-fullmodal-back {
    width: 44px;
    height: 44px;
    border: none;
    background: #f1f5f9;
    color: #374151;
    border-radius: 12px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sm-member-fullmodal-back:hover {
    background: #e5e7eb;
}

.sm-member-fullmodal-title {
    flex: 1;
}

.sm-member-fullmodal-number {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
}

.sm-member-fullmodal-title h1 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin: 4px 0 0 0;
    line-height: 1.3;
}

.sm-member-fullmodal-status {
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
}

.sm-member-fullmodal-info {
    display: flex;
    gap: 24px;
    padding: 14px 24px;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    font-size: 13px;
    color: #64748b;
}

.sm-member-fullmodal-info span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sm-member-fullmodal-conversation {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.sm-member-modal-original {
    margin-bottom: 24px;
}

.sm-member-modal-original-label {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sm-member-modal-divider {
    display: flex;
    align-items: center;
    margin: 30px 0 24px;
}

.sm-member-modal-divider::before,
.sm-member-modal-divider::after {
    content: '';
    flex: 1;
    height: 2px;
    background: #e5e7eb;
}

.sm-member-modal-divider span {
    padding: 0 16px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sm-member-modal-no-reply {
    text-align: center;
    padding: 50px 30px;
    color: #64748b;
}

.sm-member-modal-no-reply i {
    font-size: 40px;
    color: #f59e0b;
    margin-bottom: 16px;
    display: block;
}

.sm-member-modal-no-reply span {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.sm-member-modal-no-reply p {
    font-size: 14px;
    margin: 0;
}

.sm-member-modal-messages {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Member Messages */
.sm-member-modal-message {
    display: flex;
    gap: 14px;
    max-width: 85%;
}

.sm-member-msg-user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.sm-member-msg-staff {
    align-self: flex-start;
}

.sm-member-msg-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.sm-member-msg-bubble {
    background: white;
    border-radius: 18px;
    padding: 16px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.sm-member-msg-user .sm-member-msg-bubble {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
}

.sm-member-msg-user .sm-member-msg-author,
.sm-member-msg-user .sm-member-msg-time {
    color: rgba(255,255,255,0.8) !important;
}

.sm-member-msg-user .sm-member-msg-text {
    color: white;
}

.sm-member-msg-staff .sm-member-msg-bubble {
    background: white;
    border: 1px solid #e5e7eb;
}

.sm-member-msg-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.sm-member-msg-author {
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
}

.sm-member-msg-badge {
    padding: 2px 8px;
    border-radius: 6px;
    background: linear-gradient(135deg, #e30613, #be123c);
    color: white;
    font-size: 10px;
    font-weight: 700;
}

.sm-member-msg-time {
    font-size: 12px;
    color: #94a3b8;
    margin-left: auto;
}

.sm-member-msg-text {
    font-size: 14px;
    line-height: 1.7;
    color: #374151;
    white-space: pre-wrap;
}

.sm-member-msg-attachments {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.sm-member-msg-attachments a {
    padding: 6px 12px;
    background: rgba(255,255,255,0.2);
    color: inherit;
    border-radius: 8px;
    font-size: 12px;
    text-decoration: none;
    font-weight: 500;
}

/* Member Reply Area */
.sm-member-fullmodal-reply {
    padding: 20px 24px;
    background: white;
    border-top: 2px solid #e5e7eb;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.sm-member-reply-input textarea {
    width: 100%;
    min-height: 80px;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    resize: none;
    font-size: 15px;
    line-height: 1.6;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.sm-member-reply-input textarea:focus {
    border-color: #6366f1;
}

.sm-member-reply-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 14px;
}

.sm-member-resolve-btn {
    padding: 12px 20px;
    border: 2px solid #10b981;
    background: white;
    color: #10b981;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sm-member-resolve-btn:hover {
    background: #10b981;
    color: white;
}

.sm-member-send-btn {
    padding: 12px 28px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
}

.sm-member-send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.sm-member-fullmodal-closed {
    padding: 24px;
    background: #f3f4f6;
    border-top: 2px solid #e5e7eb;
    text-align: center;
    color: #6b7280;
    font-weight: 500;
}

/* Responsive Member Kanban */
@media (max-width: 1100px) {
    .sm-member-kanban {
        grid-template-columns: 1fr;
    }
    
    .sm-member-kanban-column {
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .sm-member-tickets-header {
        flex-direction: column;
    }
    
    .sm-member-tickets-stats {
        flex-direction: column;
    }
    
    .sm-member-stat-card {
        min-width: auto;
    }
    
    .sm-member-fullmodal-info {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .sm-member-fullmodal-conversation {
        padding: 16px;
    }
    
    .sm-member-modal-message {
        max-width: 95%;
    }
    
    .sm-member-reply-actions {
        flex-direction: column;
    }
    
    .sm-member-resolve-btn,
    .sm-member-send-btn {
        width: 100%;
        justify-content: center;
    }
}

/* New Ticket Modal */
.sm-new-ticket-modal .sm-modal-container {
    max-width: 600px;
}

.sm-priority-selector {
    display: flex;
    gap: 10px;
}

.sm-priority-option {
    flex: 1;
    cursor: pointer;
}

.sm-priority-option input {
    display: none;
}

.sm-priority-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    transition: all 0.2s;
    cursor: pointer;
}

.sm-priority-card i {
    font-size: 24px;
    margin-bottom: 6px;
}

.sm-priority-card span {
    font-size: 12px;
    font-weight: 600;
}

/* Couleurs des cartes de priorité - TOUJOURS VISIBLES avec fond léger */
.sm-priority-card.sm-priority-low {
    border-color: #10b981;
    background: #ecfdf5;
}
.sm-priority-card.sm-priority-low i { color: #10b981; }
.sm-priority-card.sm-priority-low > span { color: #059669; }

.sm-priority-card.sm-priority-normal {
    border-color: #3b82f6;
    background: #eff6ff;
}
.sm-priority-card.sm-priority-normal i { color: #3b82f6; }
.sm-priority-card.sm-priority-normal > span { color: #2563eb; }

.sm-priority-card.sm-priority-high {
    border-color: #f59e0b;
    background: #fffbeb;
}
.sm-priority-card.sm-priority-high i { color: #f59e0b; }
.sm-priority-card.sm-priority-high > span { color: #d97706; }

.sm-priority-card.sm-priority-urgent {
    border-color: #dc2626;
    background: #fef2f2;
}
.sm-priority-card.sm-priority-urgent i { color: #dc2626; }
.sm-priority-card.sm-priority-urgent > span { color: #b91c1c; }

/* Quand sélectionné, le fond prend la couleur pleine */
.sm-priority-option input:checked + .sm-priority-card.sm-priority-low {
    background: #10b981;
    border-color: #10b981;
}
.sm-priority-option input:checked + .sm-priority-card.sm-priority-normal {
    background: #3b82f6;
    border-color: #3b82f6;
}
.sm-priority-option input:checked + .sm-priority-card.sm-priority-high {
    background: #f59e0b;
    border-color: #f59e0b;
}
.sm-priority-option input:checked + .sm-priority-card.sm-priority-urgent {
    background: #dc2626;
    border-color: #dc2626;
}

.sm-priority-option input:checked + .sm-priority-card i,
.sm-priority-option input:checked + .sm-priority-card > span {
    color: white !important;
}

/* Hover effect */
.sm-priority-option:hover .sm-priority-card {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Routing Table */
.sm-routing-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

.sm-routing-table th {
    text-align: left;
    padding: 12px 16px;
    background: #f9fafb;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
}

.sm-routing-table th:first-child {
    min-width: 200px;
}

.sm-routing-table th:nth-child(2),
.sm-routing-table th:nth-child(3) {
    min-width: 180px;
}

.sm-routing-table td {
    padding: 16px;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}

.sm-routing-category {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sm-routing-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.sm-routing-name {
    font-weight: 600;
    color: #111827;
    font-size: 14px;
}

.sm-routing-select {
    min-width: 200px;
}

/* Routing Modal specific */
.sm-routing-modal .sm-modal-container {
    max-width: 900px !important;
    width: 95% !important;
}

.sm-routing-modal .sm-modal-body {
    overflow-x: auto;
}

/* Toggle Switch */
.sm-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.sm-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.sm-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #d1d5db;
    transition: 0.3s;
    border-radius: 24px;
}

.sm-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.sm-toggle input:checked + .sm-toggle-slider {
    background-color: #10b981;
}

.sm-toggle input:checked + .sm-toggle-slider:before {
    transform: translateX(20px);
}

/* Responsive */
@media (max-width: 768px) {
    .sm-tickets-header,
    .sm-tickets-admin-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .sm-ticket-item {
        flex-wrap: wrap;
    }
    
    .sm-ticket-badges {
        width: 100%;
        margin-top: 8px;
    }
    
    .sm-ticket-admin-item {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .sm-ticket-requester {
        min-width: auto;
    }
    
    .sm-tickets-admin-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .sm-filter-tabs {
        overflow-x: auto;
        padding-bottom: 8px;
    }
    
    .sm-search-box {
        width: 100%;
    }
    
    .sm-search-box input {
        width: 100%;
    }
    
    .sm-ticket-message .sm-message-bubble {
        max-width: 85%;
    }
    
    .sm-priority-selector {
        flex-wrap: wrap;
    }
    
    .sm-priority-option {
        flex: 1 1 45%;
    }
}

/* Reply Tabs */
.sm-reply-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 16px;
}

.sm-reply-tab {
    padding: 12px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    transition: all 0.2s;
}

.sm-reply-tab:hover {
    color: #1e293b;
    background: #f9fafb;
}

.sm-reply-tab.active {
    color: #e30613;
}

.sm-reply-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e30613;
}

.sm-reply-tab[data-type="internal"].active {
    color: #f59e0b;
}

.sm-reply-tab[data-type="internal"].active::after {
    background: #f59e0b;
}

.sm-reply-hint {
    font-size: 13px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.sm-reply-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

/* Dropdown Menu */
.sm-dropdown {
    position: relative;
    display: inline-block;
}

.sm-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 200px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.sm-dropdown:hover .sm-dropdown-menu,
.sm-dropdown-menu:hover,
.sm-dropdown-menu.show {
    display: block;
}

.sm-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
}

.sm-dropdown-menu a:hover {
    background: #f9fafb;
}

.sm-dropdown-menu a i {
    width: 16px;
    text-align: center;
}

/* Assign Modal */
.sm-assign-list {
    max-height: 400px;
    overflow-y: auto;
}

.sm-assign-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.2s;
}

.sm-assign-item:hover {
    background: #f9fafb;
}

.sm-assign-item:last-child {
    border-bottom: none;
}

.sm-assign-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.sm-assign-info {
    flex: 1;
}

.sm-assign-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
}

.sm-assign-role {
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}

.sm-assign-item > i {
    color: #d1d5db;
}

/* =============================================
   USER TICKETS PAGE - BEAUTIFUL KANBAN DESIGN
   ============================================= */

.sm-user-tickets-page {
    padding: 16px;
    max-width: 100%;
}

/* Hero Header */
.sm-user-tickets-hero {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    padding: 32px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    border-radius: 16px;
    margin-bottom: 16px;
}

.sm-user-tickets-hero-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sm-user-tickets-hero-icon {
    width: 64px;
    height: 64px;
    background: rgba(255,255,255,0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
}

.sm-user-tickets-hero-text h1 {
    margin: 0 0 4px 0;
    font-size: 26px;
    font-weight: 700;
    color: white;
}

.sm-user-tickets-hero-text p {
    margin: 0;
    font-size: 14px;
    color: rgba(255,255,255,0.8);
}

.sm-user-tickets-new-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: white;
    color: #4f46e5;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.sm-user-tickets-new-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* Stats Pills */
.sm-user-tickets-stats {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: white;
    border-radius: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.sm-user-stat-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: #f8fafc;
    border-radius: 50px;
    border: 2px solid #e5e7eb;
}

.sm-user-stat-emoji {
    font-size: 18px;
}

.sm-user-stat-count {
    font-size: 20px;
    font-weight: 700;
    color: var(--pill-color);
}

.sm-user-stat-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

/* User Kanban */
.sm-user-kanban {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    min-height: calc(100vh - 350px);
}

.sm-user-kanban-col {
    background: white;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
}

.sm-user-kanban-col-header {
    padding: 18px 20px;
    background: var(--col-gradient);
    color: white;
}

.sm-user-kanban-col-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 15px;
}

.sm-user-kanban-col-emoji {
    font-size: 18px;
}

.sm-user-kanban-col-count {
    background: rgba(255,255,255,0.3);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 13px;
    margin-left: auto;
}

.sm-user-kanban-col-body {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sm-user-kanban-empty {
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
    font-size: 13px;
}

/* User Ticket Card */
.sm-user-ticket-card {
    background: #f8fafc;
    border-radius: 14px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
    position: relative;
}

.sm-user-ticket-card:hover {
    border-color: #e5e7eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.sm-user-card-highlight {
    border-color: #8b5cf6;
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
}

.sm-user-card-alert {
    position: absolute;
    top: -8px;
    right: 12px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.sm-user-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.sm-user-card-ref {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
}

.sm-user-card-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.sm-user-card-title {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
}

.sm-user-card-desc {
    margin: 0 0 12px 0;
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
}

.sm-user-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
}

.sm-user-card-cat {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.sm-user-card-time {
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 4px;
}

.sm-user-card-agent {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
    font-size: 12px;
    color: #64748b;
}

.sm-user-card-agent-avatar {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 9px;
    font-weight: 700;
}

.sm-user-card-action {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #d1d5db;
    opacity: 0;
    transition: all 0.2s;
}

.sm-user-ticket-card:hover .sm-user-card-action {
    opacity: 1;
    color: #94a3b8;
}

/* Resolved Card (simplified) */
.sm-user-card-resolved {
    background: #f8fafc;
    border-radius: 10px;
    padding: 12px 14px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #e5e7eb;
}

.sm-user-card-resolved:hover {
    background: #f1f5f9;
    border-color: #d1d5db;
}

.sm-user-card-resolved-content {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.sm-user-card-resolved .sm-user-card-ref {
    font-size: 11px;
    font-weight: 700;
    color: #10b981;
    background: #d1fae5;
    padding: 2px 8px;
    border-radius: 6px;
}

.sm-user-card-resolved-title {
    font-size: 13px;
    color: #374151;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.sm-user-card-resolved-meta {
    font-size: 11px;
    color: #9ca3af;
}

/* Confirmation Modal */
.sm-confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sm-confirm-modal.active {
    opacity: 1;
    visibility: visible;
}

.sm-confirm-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}

.sm-confirm-dialog {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 32px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.sm-confirm-modal.active .sm-confirm-dialog {
    transform: scale(1);
}

.sm-confirm-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #10b981;
}

.sm-confirm-dialog h3 {
    margin: 0 0 12px 0;
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
}

.sm-confirm-dialog p {
    margin: 0 0 28px 0;
    font-size: 15px;
    color: #64748b;
    line-height: 1.6;
}

.sm-confirm-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.sm-confirm-cancel {
    padding: 12px 24px;
    border: 2px solid #e5e7eb;
    background: white;
    color: #64748b;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.sm-confirm-cancel:hover {
    border-color: #d1d5db;
    background: #f9fafb;
}

.sm-confirm-yes {
    padding: 12px 24px;
    border: none;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.sm-confirm-yes:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* Empty State */
.sm-user-tickets-empty {
    text-align: center;
    padding: 80px 24px;
    background: #f8fafc;
}

.sm-user-empty-illustration {
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #6366f1;
}

.sm-user-tickets-empty h2 {
    margin: 0 0 12px 0;
    font-size: 22px;
    color: #1e293b;
}

.sm-user-tickets-empty p {
    margin: 0 0 24px 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.6;
}

.sm-user-empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.sm-user-empty-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}

/* =============================================
   USER FULLSCREEN TICKET VIEW
   ============================================= */

.sm-user-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #f8fafc;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sm-user-fullscreen.active {
    opacity: 1;
    visibility: visible;
}

/* FS Header */
.sm-user-fs-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    background: white;
    border-bottom: 1px solid #e5e7eb;
}

.sm-user-fs-back {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #f1f5f9;
    border: none;
    border-radius: 10px;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.sm-user-fs-back:hover {
    background: #e5e7eb;
}

.sm-user-fs-title {
    flex: 1;
}

.sm-user-fs-ref {
    display: block;
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 2px;
}

.sm-user-fs-title h1 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
}

.sm-user-fs-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

/* FS Info Bar */
.sm-user-fs-info {
    display: flex;
    gap: 24px;
    padding: 14px 24px;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    flex-wrap: wrap;
}

.sm-user-fs-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
}

.sm-user-fs-agent {
    color: #10b981 !important;
    font-weight: 500;
}

.sm-user-fs-pending {
    color: #f59e0b !important;
}

/* FS Conversation */
.sm-user-fs-conversation {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    background: #f8fafc;
}

.sm-user-fs-original {
    margin-bottom: 8px;
}

.sm-user-fs-original-label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.sm-user-fs-divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
}

.sm-user-fs-divider::before,
.sm-user-fs-divider::after {
    content: '';
    flex: 1;
    height: 2px;
    background: #e5e7eb;
}

.sm-user-fs-divider span {
    padding: 0 16px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* FS Messages */
.sm-user-fs-message {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    max-width: 80%;
}

.sm-user-fs-msg-me {
    margin-left: 0;
}

.sm-user-fs-msg-support {
    margin-left: auto;
    flex-direction: row-reverse;
}

.sm-user-fs-msg-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.sm-user-fs-msg-content {
    background: white;
    border-radius: 16px;
    padding: 14px 18px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.sm-user-fs-msg-support .sm-user-fs-msg-content {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border: 1px solid #fecaca;
}

.sm-user-fs-msg-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.sm-user-fs-msg-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
}

.sm-user-fs-msg-team {
    padding: 2px 8px;
    background: #e30613;
    color: white;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
}

.sm-user-fs-msg-date {
    font-size: 12px;
    color: #94a3b8;
    margin-left: auto;
}

.sm-user-fs-msg-text {
    font-size: 14px;
    line-height: 1.7;
    color: #374151;
    white-space: pre-wrap;
}

.sm-user-fs-attachments {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.sm-user-fs-attachments a {
    padding: 6px 12px;
    background: #dbeafe;
    color: #2563eb;
    border-radius: 8px;
    font-size: 12px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* FS Waiting State */
.sm-user-fs-waiting {
    text-align: center;
    padding: 48px 24px;
    margin: 24px 0;
}

.sm-user-fs-waiting-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #f59e0b;
}

.sm-user-fs-waiting h3 {
    margin: 0 0 8px 0;
    color: #1e293b;
    font-size: 18px;
}

.sm-user-fs-waiting p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

/* FS Reply Zone */
.sm-user-fs-reply {
    display: flex;
    gap: 14px;
    padding: 20px 24px;
    background: white;
    border-top: 2px solid #e5e7eb;
}

.sm-user-fs-reply-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.sm-user-fs-reply-box {
    flex: 1;
}

.sm-user-fs-reply-box textarea {
    width: 100%;
    min-height: 80px;
    padding: 14px;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    resize: vertical;
    font-size: 14px;
    line-height: 1.6;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.sm-user-fs-reply-box textarea:focus {
    border-color: #6366f1;
}

.sm-user-fs-reply-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 12px;
}

.sm-user-fs-resolve-btn {
    padding: 10px 20px;
    border: 2px solid #10b981;
    background: white;
    color: #10b981;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.sm-user-fs-resolve-btn:hover {
    background: #10b981;
    color: white;
}

.sm-user-fs-send-btn {
    padding: 10px 24px;
    border: none;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.sm-user-fs-send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.sm-user-fs-closed {
    padding: 20px 24px;
    background: #f3f4f6;
    border-top: 2px solid #e5e7eb;
    text-align: center;
    color: #6b7280;
    font-weight: 500;
}

/* Responsive User Tickets */
@media (max-width: 900px) {
    .sm-user-kanban {
        grid-template-columns: 1fr;
        padding: 16px;
    }
    
    .sm-user-tickets-hero {
        flex-direction: column;
        text-align: center;
    }
    
    .sm-user-tickets-hero-content {
        flex-direction: column;
    }
    
    .sm-user-fs-message {
        max-width: 95%;
    }
    
    .sm-user-fs-header {
        flex-wrap: wrap;
    }
    
    .sm-user-fs-back {
        order: 1;
    }
    
    .sm-user-fs-title {
        order: 3;
        width: 100%;
        margin-top: 12px;
    }
    
    .sm-user-fs-status {
        order: 2;
        margin-left: auto;
    }
}


/* ========================================
   Event Types - Nouveaux types événements
   ======================================== */

/* Stats par type d événement */
.sm-events-type-stats {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.sm-event-type-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    border-radius: 16px;
    padding: 16px 20px;
    min-width: 140px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 2px solid transparent;
}

.sm-event-type-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.sm-event-type-stat.active {
    border-color: #6366f1;
    box-shadow: 0 4px 12px rgba(99,102,241,0.2);
}

.sm-event-type-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.sm-event-type-content {
    display: flex;
    flex-direction: column;
}

.sm-event-type-value {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
}

.sm-event-type-label {
    font-size: 12px;
    color: #6b7280;
}

/* Header événements - style vert émeraude arrondi */
.sm-events-header {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    padding: 32px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    border-radius: 16px;
    margin-bottom: 24px;
}

.sm-events-header-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sm-events-header-icon {
    width: 64px;
    height: 64px;
    background: rgba(255,255,255,0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
}

.sm-events-header-text h1 {
    margin: 0 0 4px 0;
    font-size: 26px;
    font-weight: 700;
    color: white;
}

.sm-events-header-text p {
    margin: 0;
    font-size: 14px;
    color: rgba(255,255,255,0.9);
}

.sm-events-header .sm-header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .sm-events-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .sm-events-header .sm-header-actions {
        width: 100%;
    }
    
    .sm-events-header .sm-header-actions .sm-btn {
        flex: 1;
        justify-content: center;
    }
}

/* Badge de type événement sur les cartes */
.sm-event-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

/* Badge Conseillé (ex-Obligatoire) - jaune/orange */
.sm-mandatory-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    background: #fef3c7;
    color: #92400e;
}

.sm-formation-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.sm-formation-type-icon {
    font-size: 12px;
    margin-top: 4px;
}

/* Sélecteur de type dans le modal de création */
.sm-event-type-selector {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

@media (max-width: 768px) {
    .sm-event-type-selector {
        grid-template-columns: repeat(2, 1fr);
    }
}

.sm-event-type-option {
    cursor: pointer;
}

.sm-event-type-option input {
    display: none;
}

.sm-event-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    background: white;
    transition: all 0.2s;
}

.sm-event-type-card i {
    font-size: 24px;
    color: var(--type-color);
}

.sm-event-type-card span {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    text-align: center;
}

.sm-event-type-option input:checked + .sm-event-type-card {
    border-color: var(--type-color);
    background: var(--type-bg);
}

.sm-event-type-option:hover .sm-event-type-card {
    border-color: #d1d5db;
    transform: translateY(-2px);
}

/* État vide après filtrage */
.sm-empty-filter-state {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.sm-empty-filter-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.sm-empty-filter-state p {
    font-size: 16px;
}

/* =========================================
   FULLPAGE MODAL - Création événement
   ========================================= */

body.sm-fullpage-open {
    overflow: hidden;
}

.sm-fullpage-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #f5f7fa;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sm-fullpage-modal.active {
    opacity: 1;
    visibility: visible;
}

/* Header */
.sm-fullpage-header {
    background: white;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.sm-fullpage-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sm-fullpage-back {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: white;
    color: #374151;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s;
}

.sm-fullpage-back:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.sm-fullpage-title h1 {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sm-fullpage-title h1 i {
    color: #10b981;
}

.sm-fullpage-title p {
    font-size: 13px;
    color: #6b7280;
    margin: 4px 0 0 0;
}

/* Body */
.sm-fullpage-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.sm-fullpage-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
    align-items: start;
}

.sm-fullpage-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sm-fullpage-sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Form Cards */
.sm-form-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #e5e7eb;
}

.sm-form-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sm-form-card-title i {
    color: #6b7280;
    width: 20px;
}

.sm-form-card-desc {
    font-size: 13px;
    color: #6b7280;
    margin: -12px 0 20px;
    line-height: 1.5;
}

/* Highlighted card for survey settings */
.sm-form-card-highlight {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #86efac;
}

.sm-form-card-highlight .sm-form-card-title {
    color: #166534;
}

.sm-form-card-highlight .sm-form-card-title i {
    color: #22c55e;
}

/* Survey info box */
.sm-survey-info-box {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: white;
    border-radius: 12px;
    margin-top: 20px;
    border: 1px solid #bbf7d0;
}

.sm-survey-info-box i {
    color: #22c55e;
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.sm-survey-info-box strong {
    display: block;
    color: #166534;
    margin-bottom: 4px;
    font-size: 13px;
}

.sm-survey-info-box p {
    margin: 0;
    font-size: 12px;
    color: #166534;
    line-height: 1.5;
}

/* Large input */
.sm-input-lg {
    padding: 14px 16px !important;
    font-size: 16px !important;
}

/* Fullpage Actions */
.sm-fullpage-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sm-btn-block {
    width: 100%;
    justify-content: center;
}

.sm-btn-lg {
    padding: 16px 24px !important;
    font-size: 16px !important;
}

/* Alert boxes */
.sm-alert {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.sm-alert i {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.sm-alert strong {
    display: block;
    margin-bottom: 4px;
}

.sm-alert p {
    margin: 0;
    font-size: 13px;
}

.sm-alert-warning {
    background: #fef3c7;
    border: 1px solid #fcd34d;
    color: #92400e;
}

.sm-alert-warning i {
    color: #f59e0b;
}

/* Responsive */
@media (max-width: 1024px) {
    .sm-fullpage-content {
        grid-template-columns: 1fr;
    }
    
    .sm-fullpage-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .sm-fullpage-header {
        padding: 12px 16px;
    }
    
    .sm-fullpage-title h1 {
        font-size: 16px;
    }
    
    .sm-fullpage-title p {
        display: none;
    }
    
    .sm-fullpage-body {
        padding: 16px;
    }
    
    .sm-form-card {
        padding: 16px;
    }
    
    .sm-event-type-selector {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* =========================================
   DETAIL EVENT - Full Page
   ========================================= */

/* Header coloré */
.sm-detail-header {
    padding: 20px 24px 24px;
    color: white;
    flex-shrink: 0;
}

.sm-detail-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.sm-detail-back {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: none;
    background: rgba(255,255,255,0.2);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s;
}

.sm-detail-back:hover {
    background: rgba(255,255,255,0.3);
}

.sm-detail-status-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sm-detail-header-content {
    text-align: center;
}

.sm-detail-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.2);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    margin-bottom: 12px;
}

.sm-detail-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 12px;
    line-height: 1.3;
}

.sm-detail-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 14px;
    opacity: 0.9;
}

.sm-detail-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Body */
.sm-detail-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    background: #f5f7fa;
}

.sm-detail-content {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 24px;
    align-items: start;
}

.sm-detail-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sm-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 0;
}

/* Cards */
.sm-detail-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #e5e7eb;
}

.sm-detail-card h3 {
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sm-detail-card h3 i {
    color: #6b7280;
    width: 18px;
}

/* Workflow dans card */
.sm-detail-workflow {
    padding: 10px 0;
}

/* Info grid */
.sm-detail-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.sm-detail-info-item {
    display: flex;
    gap: 12px;
}

.sm-detail-info-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sm-detail-info-icon i {
    color: #6b7280;
    font-size: 16px;
}

.sm-detail-info-label {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 2px;
}

.sm-detail-info-value {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

/* Description et prérequis */
.sm-detail-description,
.sm-detail-prerequisites {
    font-size: 14px;
    color: #374151;
    line-height: 1.6;
}

.sm-detail-prerequisites {
    background: #f9fafb;
    padding: 16px;
    border-radius: 10px;
    border-left: 4px solid #e63946;
}

/* Survey stats boxes */
.sm-survey-stats-boxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.sm-stat-box {
    text-align: center;
    padding: 16px;
    border-radius: 12px;
}

.sm-stat-box.green {
    background: #d1fae5;
}

.sm-stat-box.red {
    background: #fee2e2;
}

.sm-stat-box .sm-stat-value {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.sm-stat-box.green .sm-stat-value {
    color: #059669;
}

.sm-stat-box.red .sm-stat-value {
    color: #dc2626;
}

.sm-stat-box .sm-stat-label {
    font-size: 12px;
    margin-top: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.sm-stat-box.green .sm-stat-label {
    color: #065f46;
}

.sm-stat-box.red .sm-stat-label {
    color: #991b1b;
}

/* Survey bar mini */
.sm-survey-bar-mini {
    height: 8px;
    background: #fee2e2;
    border-radius: 4px;
    overflow: hidden;
}

.sm-survey-bar-fill {
    height: 100%;
    background: #22c55e;
    border-radius: 4px;
}

.sm-detail-deadline {
    font-size: 13px;
    color: #6b7280;
    margin: 12px 0 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Vote card */
.sm-detail-card-vote {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #fcd34d;
}

.sm-user-vote-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    margin-bottom: 16px;
}

.sm-user-vote-badge.yes {
    background: #d1fae5;
    color: #065f46;
}

.sm-user-vote-badge.no {
    background: #fee2e2;
    color: #991b1b;
}

.sm-vote-hint {
    font-size: 13px;
    color: #92400e;
    margin: 0 0 16px;
    text-align: center;
}

.sm-vote-btns-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sm-vote-btn-big {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.sm-vote-btn-big.yes {
    background: white;
    color: #059669;
    border-color: #86efac;
}

.sm-vote-btn-big.yes:hover,
.sm-vote-btn-big.yes.active {
    background: #22c55e;
    color: white;
    border-color: #22c55e;
}

.sm-vote-btn-big.no {
    background: white;
    color: #dc2626;
    border-color: #fca5a5;
}

.sm-vote-btn-big.no:hover,
.sm-vote-btn-big.no.active {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

/* Selection visual */
.sm-selection-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 20px;
    background: #f3f4f6;
    border-radius: 12px;
    margin-bottom: 16px;
}

.sm-selection-item {
    text-align: center;
}

.sm-selection-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
}

.sm-selection-label {
    font-size: 12px;
    color: #6b7280;
}

.sm-selection-arrow {
    color: #9ca3af;
    font-size: 20px;
}

.sm-detail-info-text {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}

/* Participants */
.sm-participants-big {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-radius: 12px;
}

.sm-participants-number {
    display: block;
    font-size: 48px;
    font-weight: 700;
    color: #059669;
}

.sm-participants-label {
    font-size: 14px;
    color: #065f46;
}

/* Completed */
.sm-completed-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    background: #f3f4f6;
    border-radius: 12px;
    color: #6b7280;
}

.sm-completed-badge i {
    font-size: 24px;
    color: #22c55e;
}

/* Rating */
.sm-detail-card-rating {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #fcd34d;
}

.sm-detail-card-rating h3 i {
    color: #f59e0b !important;
}

.sm-rating-display {
    text-align: center;
    padding: 16px;
    background: white;
    border-radius: 12px;
    margin-bottom: 16px;
}

.sm-rating-score {
    font-size: 42px;
    font-weight: 700;
    color: #d97706;
}

.sm-rating-stars {
    font-size: 20px;
    color: #fbbf24;
    margin: 4px 0;
}

.sm-rating-count {
    font-size: 13px;
    color: #92400e;
}

.sm-no-rating {
    color: #9ca3af;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

/* Actions */
.sm-detail-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Responsive */
@media (max-width: 1024px) {
    .sm-detail-content {
        grid-template-columns: 1fr;
    }
    
    .sm-detail-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .sm-detail-header {
        padding: 16px;
    }
    
    .sm-detail-title {
        font-size: 20px;
    }
    
    .sm-detail-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .sm-detail-body {
        padding: 16px;
    }
    
    .sm-detail-info-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   STATS PAGE - Full Page
   ========================================= */

.sm-stats-header {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    padding: 20px 24px 24px;
    color: white;
    flex-shrink: 0;
}

.sm-stats-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.sm-stats-header h1 {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sm-stats-body {
    flex: 1;
    overflow-y: auto;
    background: #f5f7fa;
}

/* Stats summary cards */
.sm-stats-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 20px 24px;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 10;
}

.sm-stats-summary-card {
    text-align: center;
    padding: 16px;
    background: #f9fafb;
    border-radius: 12px;
}

.sm-stats-summary-value {
    font-size: 32px;
    font-weight: 700;
}

.sm-stats-summary-label {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

/* Stats by type */
.sm-stats-by-type {
    padding: 24px;
}

.sm-stats-type-section {
    margin-bottom: 24px;
}

.sm-stats-type-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 12px 12px 0 0;
    color: white;
}

.sm-stats-type-header i {
    font-size: 20px;
}

.sm-stats-type-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.sm-stats-type-header .sm-stats-type-count {
    margin-left: auto;
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
}

.sm-stats-type-content {
    background: white;
    border: 1px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}

/* Colors par type */
.sm-stats-type-header.formation {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.sm-stats-type-header.ag {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
}

.sm-stats-type-header.reunion {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.sm-stats-type-header.social {
    background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
}

/* Member rows */
.sm-stats-member-row {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: background 0.2s;
}

.sm-stats-member-row:hover {
    background: #f9fafb;
}

.sm-stats-member-row:last-child {
    border-bottom: none;
}

.sm-stats-member-chevron {
    width: 24px;
    color: #9ca3af;
    transition: transform 0.2s;
}

.sm-stats-member-chevron.open {
    transform: rotate(90deg);
}

.sm-stats-member-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    margin-right: 12px;
}

.sm-stats-member-info {
    flex: 1;
    min-width: 0;
}

.sm-stats-member-name {
    font-weight: 600;
    color: #1f2937;
}

.sm-stats-member-workplace {
    font-size: 12px;
    color: #6b7280;
}

.sm-stats-member-badges {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sm-stats-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 13px;
}

.sm-stats-badge.green {
    background: #d1fae5;
    color: #059669;
}

.sm-stats-badge.orange {
    background: #fef3c7;
    color: #d97706;
}

.sm-stats-badge.red {
    background: #fee2e2;
    color: #dc2626;
}

.sm-stats-rate {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 100px;
}

.sm-stats-rate-bar {
    flex: 1;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

.sm-stats-rate-fill {
    height: 100%;
    border-radius: 3px;
}

.sm-stats-rate-value {
    font-size: 12px;
    font-weight: 600;
    min-width: 35px;
    text-align: right;
}

/* Detail row */
.sm-stats-member-detail {
    display: none;
    padding: 16px 20px 16px 76px;
    background: #f9fafb;
    border-bottom: 1px solid #f3f4f6;
}

.sm-stats-member-detail.open {
    display: block;
}

.sm-stats-detail-section {
    margin-bottom: 12px;
}

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

.sm-stats-detail-title {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sm-stats-detail-title.green {
    color: #059669;
}

.sm-stats-detail-title.orange {
    color: #d97706;
}

.sm-stats-detail-title.red {
    color: #dc2626;
}

.sm-stats-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.sm-stats-detail-tag {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
}

.sm-stats-detail-tag.green {
    background: #d1fae5;
    color: #065f46;
}

.sm-stats-detail-tag.orange {
    background: #fef3c7;
    color: #92400e;
}

.sm-stats-detail-tag.red {
    background: #fee2e2;
    color: #991b1b;
}

.sm-stats-empty {
    text-align: center;
    padding: 40px;
    color: #9ca3af;
}

.sm-stats-empty i {
    font-size: 40px;
    margin-bottom: 12px;
    opacity: 0.5;
}

/* Stats Legend */
.sm-stats-legend {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 24px;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    flex-wrap: wrap;
}

.sm-stats-legend-title {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sm-stats-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #374151;
}

.sm-stats-legend-item .sm-stats-badge {
    min-width: 24px;
    text-align: center;
    font-size: 11px;
}

.sm-stats-rate-example {
    display: flex;
    align-items: center;
    width: 50px;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

.sm-stats-rate-example span {
    width: 70%;
    height: 100%;
    background: linear-gradient(90deg, #059669 0%, #f59e0b 50%, #ef4444 100%);
    border-radius: 3px;
}

.sm-stats-footer {
    padding: 16px 24px;
    background: white;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* =========================================
   CONVOCATION PAGE - Full Page
   ========================================= */

.sm-convocation-header {
    padding: 20px 24px 24px;
    color: white;
    flex-shrink: 0;
}

.sm-convocation-content {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 24px;
    align-items: start;
}

.sm-convocation-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sm-convocation-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 0;
}

.sm-convocation-textarea {
    width: 100%;
    min-height: 400px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    transition: border-color 0.2s;
}

.sm-convocation-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.sm-convocation-participants-list {
    max-height: 300px;
    overflow-y: auto;
}

.sm-convocation-participant {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 8px;
    transition: background 0.2s;
}

.sm-convocation-participant:hover {
    background: #f9fafb;
}

.sm-convocation-participant .sm-participant-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.sm-convocation-participant .sm-participant-info {
    flex: 1;
    min-width: 0;
}

.sm-convocation-participant .sm-participant-info strong {
    display: block;
    font-size: 14px;
    color: #1f2937;
}

.sm-convocation-participant .sm-participant-info span {
    font-size: 12px;
    color: #6b7280;
}

.sm-convocation-participant .sm-participant-status {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.sm-convocation-participant .sm-participant-status.confirmed {
    background: #d1fae5;
    color: #059669;
}

.sm-convocation-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sm-convocation-options .sm-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
}

.sm-convocation-options .sm-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #3b82f6;
}

.sm-convocation-files {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sm-file-upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
}

.sm-file-upload-area:hover {
    border-color: #3b82f6;
    background: #f0f9ff;
}

.sm-file-upload-content i {
    font-size: 32px;
    color: #9ca3af;
    margin-bottom: 8px;
}

.sm-file-upload-content p {
    margin: 0;
    font-weight: 500;
    color: #374151;
}

.sm-file-upload-content span {
    font-size: 12px;
    color: #9ca3af;
}

.sm-file-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sm-file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: #f9fafb;
    border-radius: 8px;
}

.sm-file-item i {
    color: #6b7280;
}

.sm-file-item span {
    flex: 1;
    font-size: 13px;
    color: #374151;
}

.sm-file-item button {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 4px;
}

@media (max-width: 1024px) {
    .sm-convocation-content {
        grid-template-columns: 1fr;
    }
    
    .sm-convocation-sidebar {
        position: static;
    }
    
    .sm-convocation-participants-list {
        max-height: 200px;
    }
}

@media (max-width: 768px) {
    .sm-convocation-textarea {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .sm-stats-summary {
        grid-template-columns: repeat(2, 1fr);
        padding: 16px;
    }
    
    .sm-stats-by-type {
        padding: 16px;
    }
    
    .sm-stats-member-badges {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .sm-stats-rate {
        display: none;
    }
}

/* ===========================================
   Flash Info Fullpage Modal
   =========================================== */

.sm-news-fullpage-header {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    padding: 20px;
    padding-top: calc(20px + env(safe-area-inset-top));
}

.sm-news-fullpage-header-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.sm-news-fullpage-header-top .sm-detail-back {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.sm-news-fullpage-header-top .sm-detail-back:hover {
    background: rgba(255, 255, 255, 0.3);
}

.sm-news-fullpage-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.sm-news-fullpage-badge i {
    margin-right: 6px;
    color: #fbbf24;
}

.sm-news-fullpage-header h1 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 16px 0;
    line-height: 1.3;
}

.sm-news-fullpage-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.sm-news-fullpage-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sm-news-fullpage-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.sm-news-fullpage-author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sm-news-fullpage-author-name {
    font-weight: 600;
    font-size: 15px;
}

.sm-news-fullpage-author-role {
    font-size: 12px;
    opacity: 0.85;
    background: rgba(255, 255, 255, 0.15);
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
}

.sm-news-fullpage-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    opacity: 0.9;
    margin-left: auto;
}

.sm-news-fullpage-stats span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sm-news-fullpage-stats i {
    font-size: 12px;
    opacity: 0.8;
}

.sm-news-fullpage-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    background: #f9fafb;
}

.sm-news-fullpage-content {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.sm-news-fullpage-content p {
    margin: 0 0 16px 0;
    line-height: 1.7;
    color: #374151;
    font-size: 15px;
}

.sm-news-fullpage-content p:last-child {
    margin-bottom: 0;
}

.sm-news-fullpage-content h2,
.sm-news-fullpage-content h3,
.sm-news-fullpage-content h4 {
    color: #1f2937;
    margin: 24px 0 12px 0;
}

.sm-news-fullpage-content h2:first-child,
.sm-news-fullpage-content h3:first-child,
.sm-news-fullpage-content h4:first-child {
    margin-top: 0;
}

.sm-news-fullpage-content ul,
.sm-news-fullpage-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.sm-news-fullpage-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.sm-news-fullpage-content a {
    color: #4f46e5;
    text-decoration: none;
}

.sm-news-fullpage-content a:hover {
    text-decoration: underline;
}

.sm-news-fullpage-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
}

.sm-news-fullpage-content blockquote {
    border-left: 4px solid #4f46e5;
    margin: 16px 0;
    padding: 12px 20px;
    background: #f3f4f6;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #4b5563;
}

/* Gallery Section */
.sm-news-fullpage-gallery {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.sm-news-fullpage-gallery-header {
    font-weight: 600;
    color: #374151;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sm-news-fullpage-gallery-header i {
    color: #4f46e5;
}

.sm-news-fullpage-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.sm-news-fullpage-gallery-item {
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
}

.sm-news-fullpage-gallery-item:hover {
    transform: scale(1.05);
}

.sm-news-fullpage-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Footer */
.sm-news-fullpage-footer {
    padding: 16px 20px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
    background: white;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: center;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .sm-news-fullpage-header h1 {
        font-size: 20px;
    }
    
    .sm-news-fullpage-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .sm-news-fullpage-stats {
        margin-left: 0;
        margin-top: 8px;
    }
    
    .sm-news-fullpage-body {
        padding: 16px;
    }
    
    .sm-news-fullpage-content {
        padding: 16px;
    }
    
    .sm-news-fullpage-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
}

/* ===========================================
   Dashboard - Accès rapide
   =========================================== */

.sm-dashboard-quickaccess {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-top: 20px;
}

.sm-quickaccess-header {
    margin-bottom: 16px;
}

.sm-quickaccess-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sm-quickaccess-header h3 i {
    color: #6b7280;
}

.sm-quickaccess-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.sm-quickaccess-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.sm-quickaccess-item:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.sm-quickaccess-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sm-quickaccess-icon i {
    font-size: 20px;
    color: white;
}

.sm-quickaccess-icon.blue {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.sm-quickaccess-icon.green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.sm-quickaccess-icon.purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
}

.sm-quickaccess-icon.orange {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.sm-quickaccess-icon.red {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.sm-quickaccess-icon.teal {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
}

.sm-quickaccess-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sm-quickaccess-value {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1;
}

.sm-quickaccess-label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.sm-quickaccess-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: 600;
}

.sm-quickaccess-badge.green {
    background: #d1fae5;
    color: #059669;
}

.sm-quickaccess-badge.orange {
    background: #fef3c7;
    color: #d97706;
}

.sm-quickaccess-badge.purple {
    background: #ede9fe;
    color: #7c3aed;
}

.sm-quickaccess-badge.teal {
    background: #ccfbf1;
    color: #0d9488;
}

/* Responsive */
@media (max-width: 1024px) {
    .sm-quickaccess-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .sm-quickaccess-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Masquer certains items sur mobile - garder seulement Documents, Flash Info, Support */
    .sm-qa-events,
    .sm-qa-team,
    .sm-qa-messages {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .sm-quickaccess-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .sm-quickaccess-item {
        padding: 12px 8px;
    }
    
    .sm-quickaccess-icon {
        width: 40px;
        height: 40px;
    }
    
    .sm-quickaccess-value {
        font-size: 18px;
    }
    
    .sm-quickaccess-label {
        font-size: 10px;
    }
}

.sm-quickaccess-badge.purple {
    background: #ede9fe;
    color: #7c3aed;
}

.sm-quickaccess-icon.red {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.sm-quickaccess-badge.red {
    background: #fee2e2;
    color: #dc2626;
}

/* Adjust grid for 5 items */
@media (min-width: 1025px) {
    .sm-quickaccess-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* ===========================================
   Ticket Create Fullpage Modal
   =========================================== */

.sm-ticket-create-header {
    background: linear-gradient(135deg, #e30613 0%, #be123c 100%);
    color: white;
    padding: 20px;
    padding-top: calc(20px + env(safe-area-inset-top));
}

.sm-ticket-create-header-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.sm-ticket-create-header-top .sm-detail-back {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.sm-ticket-create-header-top .sm-detail-back:hover {
    background: rgba(255, 255, 255, 0.3);
}

.sm-ticket-create-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.sm-ticket-create-header h1 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sm-ticket-create-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 14px;
}

.sm-ticket-create-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    background: #f9fafb;
}

.sm-ticket-create-form {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sm-ticket-form-section {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.sm-ticket-form-section-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
}

.sm-ticket-form-step {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #e30613 0%, #be123c 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.sm-ticket-form-section-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 4px 0;
}

.sm-ticket-form-section-header p {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

.sm-ticket-select,
.sm-ticket-input,
.sm-ticket-textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.2s;
    background: #f9fafb;
}

.sm-ticket-select:focus,
.sm-ticket-input:focus,
.sm-ticket-textarea:focus {
    outline: none;
    border-color: #e30613;
    background: white;
    box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.1);
}

.sm-ticket-textarea {
    min-height: 150px;
    resize: vertical;
}

.sm-ticket-select optgroup {
    font-weight: 700;
    color: #1f2937;
    background: #f9fafb;
    padding: 8px 0;
}

.sm-ticket-select option {
    font-weight: 400;
    color: #374151;
    padding: 8px 16px;
}

/* Priority Grid */
.sm-ticket-priority-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.sm-ticket-priority-item {
    cursor: pointer;
}

.sm-ticket-priority-item input {
    display: none;
}

.sm-ticket-priority-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: #f9fafb;
    transition: all 0.2s;
    text-align: center;
}

.sm-ticket-priority-card i {
    font-size: 24px;
}

.sm-ticket-priority-label {
    font-weight: 600;
    font-size: 14px;
    color: #374151;
}

.sm-ticket-priority-desc {
    font-size: 11px;
    color: #9ca3af;
}

/* Priority Colors */
.sm-ticket-priority-card.low i { color: #6b7280; }
.sm-ticket-priority-card.normal i { color: #3b82f6; }
.sm-ticket-priority-card.high i { color: #f59e0b; }
.sm-ticket-priority-card.urgent i { color: #ef4444; }

/* Selected State */
.sm-ticket-priority-item input:checked + .sm-ticket-priority-card {
    border-color: currentColor;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.sm-ticket-priority-item input:checked + .sm-ticket-priority-card.low {
    border-color: #6b7280;
    background: #f3f4f6;
}

.sm-ticket-priority-item input:checked + .sm-ticket-priority-card.normal {
    border-color: #3b82f6;
    background: #eff6ff;
}

.sm-ticket-priority-item input:checked + .sm-ticket-priority-card.high {
    border-color: #f59e0b;
    background: #fffbeb;
}

.sm-ticket-priority-item input:checked + .sm-ticket-priority-card.urgent {
    border-color: #ef4444;
    background: #fef2f2;
}

/* Footer */
.sm-ticket-create-footer {
    padding: 16px 20px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
    background: white;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.sm-ticket-create-footer .sm-btn {
    flex: 1;
    max-width: 200px;
    justify-content: center;
}

.sm-ticket-create-footer .sm-btn-primary {
    background: linear-gradient(135deg, #e30613 0%, #be123c 100%);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .sm-ticket-create-header h1 {
        font-size: 20px;
    }
    
    .sm-ticket-create-body {
        padding: 16px;
    }
    
    .sm-ticket-form-section {
        padding: 16px;
    }
    
    .sm-ticket-priority-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sm-ticket-create-footer {
        flex-direction: column;
    }
    
    .sm-ticket-create-footer .sm-btn {
        max-width: none;
    }
}

@media (max-width: 480px) {
    .sm-ticket-priority-card {
        padding: 12px 8px;
    }
    
    .sm-ticket-priority-card i {
        font-size: 20px;
    }
    
    .sm-ticket-priority-label {
        font-size: 12px;
    }
    
    .sm-ticket-priority-desc {
        display: none;
    }
}

/* ===========================================
   Ticket File Upload
   =========================================== */

.sm-ticket-upload-zone {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    background: #f9fafb;
    transition: all 0.2s;
    cursor: pointer;
}

.sm-ticket-upload-zone:hover {
    border-color: #e30613;
    background: #fef2f2;
}

.sm-ticket-upload-zone.dragover {
    border-color: #e30613;
    background: #fef2f2;
    transform: scale(1.02);
}

.sm-ticket-upload-content {
    padding: 30px 20px;
    text-align: center;
}

.sm-ticket-upload-content i {
    font-size: 40px;
    color: #9ca3af;
    margin-bottom: 12px;
}

.sm-ticket-upload-zone:hover .sm-ticket-upload-content i,
.sm-ticket-upload-zone.dragover .sm-ticket-upload-content i {
    color: #e30613;
}

.sm-ticket-upload-content p {
    margin: 0 0 8px 0;
    font-weight: 600;
    color: #374151;
    font-size: 15px;
}

.sm-ticket-upload-content span {
    font-size: 12px;
    color: #9ca3af;
}

/* Files List */
.sm-ticket-files-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.sm-ticket-file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    transition: all 0.2s;
}

.sm-ticket-file-item:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.sm-ticket-file-icon {
    width: 40px;
    height: 40px;
    background: #f3f4f6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sm-ticket-file-icon i {
    font-size: 18px;
    color: #6b7280;
}

.sm-ticket-file-icon i.fa-image { color: #10b981; }
.sm-ticket-file-icon i.fa-file-pdf { color: #ef4444; }
.sm-ticket-file-icon i.fa-file-word { color: #3b82f6; }

.sm-ticket-file-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sm-ticket-file-name {
    font-weight: 500;
    color: #374151;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sm-ticket-file-size {
    font-size: 12px;
    color: #9ca3af;
}

.sm-ticket-file-remove {
    width: 32px;
    height: 32px;
    background: #fee2e2;
    border: none;
    border-radius: 8px;
    color: #ef4444;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.sm-ticket-file-remove:hover {
    background: #fecaca;
    transform: scale(1.1);
}

@media (max-width: 480px) {
    .sm-ticket-upload-content {
        padding: 20px 16px;
    }
    
    .sm-ticket-upload-content i {
        font-size: 32px;
    }
    
    .sm-ticket-upload-content p {
        font-size: 14px;
    }
}

/* ===========================================
   Ticket Attachments Display
   =========================================== */

.sm-ticket-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.sm-ticket-attachment-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 10px;
    color: #0369a1;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    font-family: inherit;
}

.sm-ticket-attachment-link:hover {
    background: #e0f2fe;
    border-color: #7dd3fc;
    transform: translateY(-1px);
}

.sm-ticket-attachment-link i {
    font-size: 14px;
}

.sm-ticket-attachment-link i.fa-image { color: #10b981; }
.sm-ticket-attachment-link i.fa-file-pdf { color: #ef4444; }
.sm-ticket-attachment-link i.fa-file-word { color: #3b82f6; }

.sm-ticket-attachment-link span {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===========================================
   Attachment Preview Modal
   =========================================== */

.sm-attachment-modal {
    display: flex;
    flex-direction: column;
    background: #000;
}

.sm-attachment-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    padding-top: calc(12px + env(safe-area-inset-top));
    background: rgba(0, 0, 0, 0.9);
    position: relative;
    z-index: 10;
}

.sm-attachment-modal-close {
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.2s;
}

.sm-attachment-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.sm-attachment-modal-title {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: white;
    font-weight: 500;
    font-size: 15px;
    padding: 0 16px;
    overflow: hidden;
}

.sm-attachment-modal-title span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}

.sm-attachment-modal-title i {
    color: rgba(255, 255, 255, 0.6);
}

.sm-attachment-modal-download {
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s;
    text-decoration: none;
}

.sm-attachment-modal-download:hover {
    background: rgba(59, 130, 246, 0.5);
    color: white;
}

.sm-attachment-modal-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    padding: 16px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
}

/* Image Preview */
.sm-attachment-preview-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* PDF Preview */
.sm-attachment-preview-pdf {
    width: 100%;
    height: 100%;
    max-width: 900px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* No Preview */
.sm-attachment-no-preview {
    text-align: center;
    color: white;
    padding: 40px;
}

.sm-attachment-no-preview i {
    font-size: 64px;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 24px;
}

.sm-attachment-no-preview h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.sm-attachment-no-preview p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 24px 0;
}

.sm-attachment-no-preview .sm-btn {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    padding: 14px 28px;
    font-size: 15px;
}

/* Mobile */
@media (max-width: 768px) {
    .sm-attachment-modal-title span {
        max-width: 150px;
    }
    
    .sm-attachment-preview-pdf {
        height: calc(100vh - 150px);
    }
}

/* ===========================================
   Admin Fullpage Modal System
   =========================================== */

.sm-admin-fullpage {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #f9fafb;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.sm-admin-fullpage.active {
    opacity: 1;
    visibility: visible;
}

.sm-admin-fullpage-header {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    color: white;
    padding: 16px 20px;
    padding-top: calc(16px + env(safe-area-inset-top));
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.sm-admin-fullpage-header.red {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.sm-admin-fullpage-header.blue {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.sm-admin-fullpage-header.green {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.sm-admin-fullpage-header.purple {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
}

.sm-admin-fullpage-header.orange {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
}

.sm-admin-fullpage-close {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.2s;
    flex-shrink: 0;
}

.sm-admin-fullpage-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.sm-admin-fullpage-title {
    flex: 1;
}

.sm-admin-fullpage-title h1 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sm-admin-fullpage-title p {
    font-size: 13px;
    opacity: 0.8;
    margin: 4px 0 0 0;
}

.sm-admin-fullpage-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.sm-admin-fullpage-content {
    max-width: 800px;
    margin: 0 auto;
}

.sm-admin-fullpage-section {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.sm-admin-fullpage-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.sm-admin-fullpage-section-title i {
    width: 36px;
    height: 36px;
    background: #f3f4f6;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
}

.sm-admin-fullpage-section-title h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.sm-admin-fullpage-footer {
    background: white;
    border-top: 1px solid #e5e7eb;
    padding: 16px 24px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
}

.sm-admin-fullpage-footer .sm-btn {
    min-width: 140px;
    justify-content: center;
}

/* Form elements in admin fullpage */
.sm-admin-form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.sm-admin-form-group {
    margin-bottom: 16px;
}

.sm-admin-form-group:last-child {
    margin-bottom: 0;
}

.sm-admin-form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.sm-admin-form-label .required {
    color: #dc2626;
}

.sm-admin-form-input,
.sm-admin-form-select,
.sm-admin-form-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.2s;
    background: #f9fafb;
}

.sm-admin-form-input:focus,
.sm-admin-form-select:focus,
.sm-admin-form-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    background: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.sm-admin-form-textarea {
    min-height: 120px;
    resize: vertical;
}

.sm-admin-form-hint {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 6px;
}

/* Responsive */
@media (max-width: 768px) {
    .sm-admin-fullpage-body {
        padding: 16px;
    }
    
    .sm-admin-fullpage-section {
        padding: 16px;
        border-radius: 12px;
    }
    
    .sm-admin-form-row {
        grid-template-columns: 1fr;
    }
    
    .sm-admin-fullpage-footer {
        flex-direction: column;
    }
    
    .sm-admin-fullpage-footer .sm-btn {
        width: 100%;
    }
}

/* ===========================================
   View Member Grid
   =========================================== */

.sm-view-member-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.sm-view-member-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sm-view-member-item label {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sm-view-member-item span {
    font-size: 15px;
    color: #1f2937;
}

.sm-view-member-full {
    grid-column: span 2;
}

@media (max-width: 600px) {
    .sm-view-member-grid {
        grid-template-columns: 1fr;
    }
    
    .sm-view-member-full {
        grid-column: span 1;
    }
}

/* File Upload Zone */
.sm-file-upload-zone {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #f9fafb;
}

.sm-file-upload-zone:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.sm-file-upload-content {
    pointer-events: none;
}

/* Group Members List */
.sm-group-members-list {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.sm-group-member-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #f3f4f6;
}

.sm-group-member-item:last-child {
    border-bottom: none;
}

.sm-group-member-item:hover {
    background: #f9fafb;
}

.sm-group-member-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #e30613;
}

.sm-group-member-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #e63946 0%, #c1121f 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.sm-group-member-info {
    flex: 1;
    min-width: 0;
}

.sm-group-member-name {
    font-weight: 500;
    color: #1f2937;
    font-size: 14px;
}

.sm-group-member-role {
    font-size: 12px;
    color: #6b7280;
}

/* Newsletter Editor */
.sm-newsletter-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 10px;
    background: #f5f5f5;
    border: 2px solid #e5e7eb;
    border-bottom: none;
    border-radius: 12px 12px 0 0;
}

.sm-toolbar-sep {
    width: 1px;
    background: #d1d5db;
    margin: 0 4px;
}

.sm-editor-btn {
    width: 34px;
    height: 34px;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: #374151;
}

.sm-editor-btn:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

.sm-editor-select {
    padding: 6px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    background: white;
}

.sm-newsletter-editor {
    min-height: 300px;
    max-height: 500px;
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 0 0 12px 12px;
    background: white;
    outline: none;
    overflow-y: auto;
    line-height: 1.7;
}

.sm-newsletter-editor:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.sm-newsletter-editor:empty:before {
    content: attr(placeholder);
    color: #9ca3af;
}

.sm-newsletter-editor h2, 
.sm-newsletter-editor h3 {
    margin: 16px 0 10px;
}

.sm-newsletter-editor p {
    margin: 10px 0;
}

.sm-newsletter-editor ul, 
.sm-newsletter-editor ol {
    margin: 10px 0;
    padding-left: 25px;
}

/* ============================================
   DASHBOARD MOBILE - Ultra simple (texte + carte)
   ============================================ */

/* Desktop: accès rapide en dernier */
@media (min-width: 769px) {
    .sm-dashboard {
        display: flex;
        flex-direction: column;
    }
    
    .sm-dashboard-quickaccess {
        order: 10;
    }
    
    .sm-dashboard-cards {
        order: 1;
    }
}

@media (max-width: 768px) {
    /* Réduire le padding du conteneur principal pour le dashboard */
    body.sm-dashboard-page .sm-content {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    
    /* Container du dashboard - coller en haut */
    .sm-dashboard {
        padding: 0 !important;
        margin: 0 !important;
        gap: 8px !important;
    }
    
    /* Welcome compact - juste une ligne */
    .sm-welcome-glass {
        background: transparent !important;
        padding: 0 !important;
        margin: 0 !important;
        border-radius: 0 !important;
        overflow: visible !important;
        min-height: auto !important;
        height: auto !important;
    }
    
    .sm-welcome-glass::before,
    .sm-welcome-glass::after {
        display: none !important;
        content: none !important;
    }
    
    .sm-welcome-glass-content {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 12px !important;
        padding: 0 !important;
        margin: 0 !important;
        min-height: auto !important;
    }
    
    .sm-welcome-glass-header {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        flex: 1 !important;
        min-width: 0 !important;
        min-height: auto !important;
    }
    
    /* Masquer l'avatar sur mobile */
    .sm-welcome-glass-avatar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .sm-welcome-glass-info {
        padding: 0 !important;
        margin: 0 !important;
        min-width: 0 !important;
        flex: 1 !important;
        text-align: left !important;
        display: block !important;
    }
    
    .sm-welcome-glass-info h2 {
        font-size: 18px !important;
        color: #1f2937 !important;
        margin: 0 !important;
        padding: 0 !important;
        font-weight: 600 !important;
        text-align: left !important;
        line-height: 1.3 !important;
    }
    
    /* Masquer tout sauf le titre */
    .sm-welcome-glass-role,
    .sm-welcome-glass-badges,
    .sm-welcome-glass-stats {
        display: none !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }
    
    /* Bouton Ma carte - version icône */
    .sm-welcome-card-btn {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        background: #fee2e2 !important;
        color: #e30613 !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        border-radius: 12px !important;
        font-size: 18px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
    }
    
    .sm-welcome-card-btn:hover {
        background: #fecaca !important;
        color: #dc2626 !important;
    }
    
    /* Masquer le texte du bouton sur mobile */
    .sm-welcome-card-btn span {
        display: none !important;
    }
    
    /* Réduire l'espace sous les cards actualités */
    .sm-dashboard-cards {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        margin-bottom: 0 !important;
    }
    
    .sm-dash-card {
        border-radius: 16px !important;
        margin-bottom: 0 !important;
    }
    
    .sm-dash-card:last-child {
        margin-bottom: 0 !important;
    }
    
    .sm-dash-card-header {
        padding: 14px 16px !important;
    }
    
    .sm-dash-card-header h3 {
        font-size: 14px !important;
    }
    
    .sm-dash-card-body {
        padding: 12px !important;
    }

    /* Accès rapide mobile */
    .sm-dashboard-quickaccess {
        margin: 0 0 16px 0 !important;
    }
    
    .sm-quickaccess-header {
        padding: 0 !important;
        margin: 0 0 12px 0 !important;
    }
    
    .sm-quickaccess-header h3 {
        font-size: 14px !important;
        color: #6b7280 !important;
    }
    
    .sm-quickaccess-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important;
    }
    
    .sm-quickaccess-item {
        flex-direction: column !important;
        padding: 14px 8px !important;
        text-align: center !important;
        border-radius: 14px !important;
    }
    
    .sm-quickaccess-icon {
        width: 42px !important;
        height: 42px !important;
        margin: 0 auto 8px !important;
        border-radius: 12px !important;
    }
    
    .sm-quickaccess-info {
        text-align: center !important;
    }
    
    .sm-quickaccess-value {
        display: block !important;
        font-size: 11px !important;
        color: #9ca3af !important;
        margin-top: 2px !important;
    }
    
    .sm-quickaccess-label {
        font-size: 12px !important;
    }
    
    .sm-quickaccess-badge {
        position: absolute !important;
        top: 8px !important;
        right: 8px !important;
        font-size: 9px !important;
        padding: 2px 6px !important;
    }
    
    /* Dashboard cards mobile */
    .sm-dashboard-cards {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        margin-bottom: 16px !important;
    }
    
    .sm-dash-card {
        border-radius: 16px !important;
    }
    
    .sm-dash-card-header {
        padding: 14px 16px !important;
    }
    
    .sm-dash-card-header h3 {
        font-size: 14px !important;
    }
    
    .sm-dash-card-body {
        padding: 12px !important;
    }
}

/* Mobile small (< 400px) */
@media (max-width: 400px) {
    .sm-welcome-glass-info h2 {
        font-size: 16px !important;
    }
    
    .sm-welcome-card-btn {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        font-size: 16px !important;
        border-radius: 10px !important;
    }
    
    .sm-quickaccess-grid {
        gap: 8px !important;
    }
    
    .sm-quickaccess-item {
        padding: 12px 6px !important;
    }
    
    .sm-quickaccess-icon {
        width: 38px !important;
        height: 38px !important;
    }
    
    .sm-quickaccess-label {
        font-size: 11px !important;
    }
}

/* ============================================
   MODAL FULLPAGE MOBILE - Safe area support
   ============================================ */
@media (max-width: 768px) {
    /* Modal container fullpage */
    .sm-modal.active .sm-modal-container {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        border-radius: 0 !important;
        overflow-y: auto !important;
    }
    
    /* Modal header avec safe-area - background étendu */
    .sm-modal.active .sm-modal-header {
        padding-top: calc(16px + env(safe-area-inset-top, 0px)) !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 10 !important;
        margin-top: calc(-1 * env(safe-area-inset-top, 0px)) !important;
        padding-top: calc(16px + env(safe-area-inset-top, 0px)) !important;
    }
    
    /* Spécifique pour la modal nouveau message */
    #sm-new-conv-modal .sm-modal-container {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        border-radius: 0 !important;
        padding-top: 0 !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    #sm-new-conv-modal .sm-modal-header {
        padding-top: calc(16px + env(safe-area-inset-top, 0px)) !important;
        flex-shrink: 0 !important;
    }
    
    #sm-new-conv-modal .sm-modal-body {
        flex: 1 !important;
        overflow-y: auto !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    #sm-new-conv-modal #sm-contacts-list {
        max-height: none !important;
        height: auto !important;
        flex: 1 !important;
        overflow-y: auto !important;
    }
}

/* ============================================
   PAGES MOBILE - HEADERS COMPACTS
   ============================================ */

@media (max-width: 768px) {
    /* Supprimer l'espace en haut sur toutes les pages */
    .sm-content {
        padding: 0 !important;
    }
    
    /* ============================================
       FLASH INFO - MOBILE
       ============================================ */
    .sm-news-magazine {
        padding: 0 !important;
    }
    
    .sm-news-magazine .sm-news-hero {
        padding: 16px !important;
        border-radius: 16px !important;
        margin: 0 0 12px 0 !important;
    }
    
    .sm-news-magazine .sm-news-hero-content {
        gap: 12px !important;
    }
    
    .sm-news-magazine .sm-news-hero-icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 18px !important;
    }
    
    .sm-news-magazine .sm-news-hero-text h1 {
        font-size: 18px !important;
    }
    
    .sm-news-magazine .sm-news-hero-text p {
        font-size: 12px !important;
    }
    
    .sm-news-magazine .sm-news-hero-badge {
        padding: 4px 10px !important;
        font-size: 11px !important;
    }
    
    .sm-news-magazine .sm-magazine-filters {
        flex-direction: column !important;
        gap: 0 !important;
        padding: 0 !important;
    }
    
    .sm-news-magazine .sm-magazine-search {
        padding: 10px 12px !important;
        border-bottom: 1px solid #e5e7eb !important;
    }
    
    .sm-news-magazine .sm-magazine-year-filter {
        padding: 8px 12px !important;
        gap: 6px !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    .sm-news-magazine .sm-magazine-year-pill {
        padding: 6px 12px !important;
        font-size: 12px !important;
    }
    
    .sm-news-magazine .sm-magazine-results {
        padding: 8px 0 !important;
        font-size: 12px !important;
    }
    
    .sm-news-magazine .sm-magazine-grid {
        padding: 8px 0 !important;
        gap: 10px !important;
    }
    
    /* ============================================
       BDSE (DOCUMENTS) - MOBILE
       ============================================ */
    .sm-bdse-page {
        padding: 0 !important;
    }
    
    .sm-bdse-page .sm-page-header-gradient {
        padding: 16px !important;
        border-radius: 16px !important;
        margin: 0 0 12px 0 !important;
    }
    
    .sm-bdse-page .sm-page-header-gradient .sm-page-header-content h1 {
        font-size: 18px !important;
    }
    
    .sm-bdse-page .sm-page-header-gradient .sm-page-header-content h1 i {
        display: none !important;
    }
    
    .sm-bdse-page .sm-page-header-gradient .sm-page-header-content p {
        font-size: 12px !important;
    }
    
    .sm-bdse-page .sm-header-buttons {
        display: none !important;
    }
    
    .sm-bdse-page .sm-bdse-search-row {
        padding: 10px 0 !important;
    }
    
    .sm-bdse-page .sm-filter-result {
        padding: 8px 0 !important;
        font-size: 12px !important;
    }
    
    .sm-bdse-page .sm-documents-list {
        padding: 0 !important;
    }
    
    /* ============================================
       ÉVÉNEMENTS - MOBILE
       ============================================ */
    .sm-formations-page {
        padding: 0 !important;
    }
    
    .sm-formations-page .sm-events-header {
        padding: 16px !important;
        border-radius: 16px !important;
        margin: 0 0 12px 0 !important;
    }
    
    .sm-formations-page .sm-events-header-content {
        gap: 12px !important;
    }
    
    .sm-formations-page .sm-events-header-icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 18px !important;
    }
    
    .sm-formations-page .sm-events-header-text h1 {
        font-size: 18px !important;
    }
    
    .sm-formations-page .sm-events-header-text p {
        font-size: 12px !important;
        display: none !important;
    }
    
    .sm-formations-page .sm-header-actions {
        display: none !important;
    }
    
    .sm-formations-page .sm-events-type-stats {
        display: none !important;
    }
    
    .sm-formations-page .sm-formations-info-banner {
        margin: 8px 0 !important;
        padding: 10px !important;
        font-size: 12px !important;
    }
    
    .sm-formations-page .sm-formations-toolbar {
        flex-direction: column !important;
        padding: 0 !important;
        gap: 0 !important;
    }
    
    .sm-formations-page .sm-formations-tabs {
        display: flex !important;
        overflow-x: auto !important;
        padding: 8px 0 !important;
        gap: 6px !important;
        -webkit-overflow-scrolling: touch !important;
        border-bottom: 1px solid #e5e7eb !important;
    }
    
    .sm-formations-page .sm-formations-tab {
        padding: 6px 12px !important;
        font-size: 12px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }
    
    .sm-formations-page .sm-formations-toolbar-right {
        padding: 8px 0 !important;
        justify-content: space-between !important;
    }
    
    .sm-formations-page #formations-content-area {
        padding: 8px 0 !important;
    }
    
    /* Bouton de création mobile (Option 3) */
    .sm-mobile-create-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        margin: 0 0 12px 0;
        padding: 14px 20px;
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
        color: white;
        border: none;
        border-radius: 12px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    }
    
    .sm-mobile-create-btn:active {
        transform: scale(0.98);
    }
    
    /* Container des FABs mobiles */
    .sm-mobile-fabs {
        position: fixed;
        bottom: 100px;
        right: 16px;
        display: flex !important;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        z-index: 100;
    }
    
    .sm-mobile-fabs .sm-fab {
        width: 52px;
        height: 52px;
        border-radius: 50%;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        cursor: pointer;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
        transition: transform 0.2s, box-shadow 0.2s;
    }
    
    .sm-mobile-fabs .sm-fab:active {
        transform: scale(0.95);
    }
    
    .sm-mobile-fabs .sm-fab-filter {
        background: white;
        color: #6b7280;
        border: 2px solid #e5e7eb;
    }
    
    .sm-mobile-fabs .sm-fab-create {
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
        color: white;
    }
    
    .sm-mobile-fabs .sm-fab-info {
        background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
        color: white;
    }
    
    .sm-mobile-fabs .sm-fab-filter-events {
        background: white;
        color: #374151;
        border: 2px solid #e5e7eb;
    }
    
    /* Filter section in bottom sheet */
    .sm-filter-section {
        margin-bottom: 20px;
    }
    
    .sm-filter-section-title {
        font-size: 12px;
        font-weight: 600;
        color: #6b7280;
        text-transform: uppercase;
        margin-bottom: 10px;
        padding-left: 4px;
    }
    
    .sm-filter-row {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 16px;
        background: white;
        border-radius: 10px;
        margin-bottom: 6px;
        cursor: pointer;
    }
    
    .sm-filter-row input[type="radio"],
    .sm-filter-row input[type="checkbox"] {
        width: 20px;
        height: 20px;
        accent-color: #10b981;
    }
    
    .sm-filter-row-label {
        flex: 1;
        font-size: 15px;
        color: #1f2937;
    }
    
    .sm-filter-row-count {
        font-size: 13px;
        color: #9ca3af;
        background: #f3f4f6;
        padding: 2px 8px;
        border-radius: 10px;
    }
    
    /* ============================================
       ÉQUIPE - MOBILE
       ============================================ */
    .sm-team-page {
        padding: 0 !important;
    }
    
    .sm-team-page .sm-team-hero {
        padding: 16px !important;
        border-radius: 16px !important;
        margin: 0 0 12px 0 !important;
    }
    
    .sm-team-page .sm-team-hero-content {
        gap: 12px !important;
    }
    
    .sm-team-page .sm-team-hero-icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 18px !important;
    }
    
    .sm-team-page .sm-team-hero-text h1 {
        font-size: 18px !important;
    }
    
    .sm-team-page .sm-team-hero-text p {
        font-size: 12px !important;
    }
    
    .sm-team-page .sm-team-section {
        padding: 0 !important;
    }
    
    .sm-team-page .sm-team-section h2 {
        font-size: 14px !important;
        padding: 12px 0 8px !important;
    }
    
    /* ============================================
       SUPPORT (TICKETS) - MOBILE
       ============================================ */
    .sm-user-tickets-page {
        padding: 0 !important;
    }
    
    .sm-user-tickets-page .sm-user-tickets-hero {
        padding: 16px !important;
        border-radius: 16px !important;
        margin: 0 0 12px 0 !important;
    }
    
    .sm-user-tickets-page .sm-user-tickets-hero-content {
        gap: 12px !important;
    }
    
    .sm-user-tickets-page .sm-user-tickets-hero-icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 18px !important;
    }
    
    .sm-user-tickets-page .sm-user-tickets-hero-text h1 {
        font-size: 18px !important;
    }
    
    .sm-user-tickets-page .sm-user-tickets-hero-text p {
        font-size: 12px !important;
    }
    
    /* Bouton Nouvelle demande - couleur support */
    .sm-user-tickets-page .sm-mobile-create-btn {
        background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%) !important;
        box-shadow: 0 2px 8px rgba(20, 184, 166, 0.3) !important;
    }
    
    .sm-user-tickets-page .sm-user-tickets-stats {
        padding: 8px 0 !important;
        gap: 6px !important;
    }
    
    .sm-user-tickets-page .sm-user-stat-pill {
        padding: 8px !important;
        min-width: 60px !important;
    }
    
    .sm-user-tickets-page .sm-user-stat-count {
        font-size: 16px !important;
    }
    
    .sm-user-tickets-page .sm-user-stat-label {
        font-size: 10px !important;
    }
    
    .sm-user-tickets-page .sm-user-kanban {
        flex-direction: column !important;
        gap: 12px !important;
        padding: 8px 0 !important;
    }
    
    .sm-user-tickets-page .sm-user-kanban-col {
        min-width: 100% !important;
    }
    
    /* ============================================
       PROFIL MOBILE - Option B (iOS Settings Style)
       ============================================ */
    
    /* Mobile view container */
    .sm-profile-mobile-view {
        display: block !important;
    }
    
    .sm-profile-desktop-view {
        display: none !important;
    }
    
    /* Forcer l'affichage quand on bascule vers desktop */
    .sm-profile-desktop-view.sm-force-show {
        display: block !important;
    }
    
    .sm-profile-mobile-view.sm-force-hide {
        display: none !important;
    }
    
    /* Header compact horizontal - MASQUÉ */
    .sm-profile-mobile-header {
        display: none !important;
    }
    
    .sm-profile-mobile-avatar {
        width: 56px;
        height: 56px;
        border-radius: 50%;
        background: rgba(255,255,255,0.2);
        display: flex;
        align-items: center;
        justify-content: center;
        border: 2px solid rgba(255,255,255,0.3);
        overflow: hidden;
        flex-shrink: 0;
    }
    
    .sm-profile-mobile-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .sm-profile-mobile-avatar span {
        font-size: 20px;
        font-weight: 700;
        color: white;
    }
    
    /* Badge camera sur l'avatar */
    .sm-profile-mobile-avatar-edit {
        position: absolute;
        bottom: -2px;
        right: -2px;
        width: 24px;
        height: 24px;
        background: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #e63946;
        font-size: 11px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    }
    
    /* Avatar avec position relative pour le badge */
    .sm-profile-mobile-avatar {
        position: relative;
    }
    
    .sm-profile-mobile-info {
        flex: 1;
        min-width: 0;
    }
    
    .sm-profile-mobile-name {
        font-size: 18px;
        font-weight: 600;
    }
    
    .sm-profile-mobile-role {
        font-size: 12px;
        opacity: 0.85;
    }
    
    /* Stats supprimées - ne plus afficher */
    .sm-profile-mobile-stats {
        display: none !important;
    }
    
    /* Menu style iOS */
    .sm-profile-mobile-menu {
        padding: 0;
    }
    
    .sm-profile-mobile-menu-group {
        background: white;
        border-radius: 12px;
        margin-bottom: 12px;
        overflow: hidden;
        box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    }
    
    .sm-profile-mobile-menu-item {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 14px 16px;
        border-bottom: 1px solid #f3f4f6;
        cursor: pointer;
    }
    
    .sm-profile-mobile-menu-item:last-child {
        border-bottom: none;
    }
    
    .sm-profile-mobile-menu-item:active {
        background: #f9fafb;
    }
    
    .sm-profile-mobile-menu-icon {
        width: 32px;
        height: 32px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        color: white;
        flex-shrink: 0;
    }
    
    .sm-profile-mobile-menu-text {
        flex: 1;
        min-width: 0;
    }
    
    .sm-profile-mobile-menu-title {
        font-weight: 500;
        font-size: 15px;
        color: #1f2937;
    }
    
    .sm-profile-mobile-menu-subtitle {
        font-size: 12px;
        color: #9ca3af;
    }
    
    .sm-profile-mobile-menu-arrow {
        color: #d1d5db;
        font-size: 14px;
    }
    
    /* Masquer la vue mobile sur desktop */
    .sm-profile-modern .sm-profile-header-card {
        display: none !important;
    }
    
    .sm-profile-modern .sm-profile-avatar {
        width: 70px !important;
        height: 70px !important;
    }
    
    .sm-profile-modern .sm-profile-avatar span {
        font-size: 24px !important;
    }
    
    .sm-profile-modern .sm-profile-info h1 {
        font-size: 18px !important;
    }
    
    .sm-profile-modern .sm-profile-section {
        margin: 0 0 12px 0 !important;
        border-radius: 12px !important;
    }
}

/* Desktop: masquer la vue mobile, afficher desktop */
.sm-profile-mobile-view {
    display: none;
}

.sm-profile-desktop-view {
    display: block;
}

/* =====================================================
   MOBILE EVENT CARDS - Premium Design
   ===================================================== */

/* Mobile Event Card Container */
.sm-mobile-event-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.sm-mobile-event-card:active {
    transform: scale(0.98);
}

.sm-mobile-event-card.needs-action {
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
    border: 2px solid #3b82f6;
}

/* Card Header */
.sm-mobile-event-header {
    padding: 16px;
    color: white;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    position: relative;
}

.sm-mobile-event-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.sm-mobile-event-header-info {
    flex: 1;
    min-width: 0;
}

.sm-mobile-event-header-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 6px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sm-mobile-event-header-info p {
    font-size: 12px;
    opacity: 0.9;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.sm-mobile-event-header-info p i {
    font-size: 11px;
}

/* Admin buttons in header */
.sm-mobile-event-admin {
    display: flex;
    gap: 6px;
    position: absolute;
    top: 12px;
    right: 12px;
}

.sm-mobile-admin-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
}

.sm-mobile-admin-btn:active {
    background: rgba(255, 255, 255, 0.3);
}

.sm-mobile-admin-btn.danger:active {
    background: rgba(239, 68, 68, 0.5);
}

/* Card Body */
.sm-mobile-event-body {
    padding: 16px;
}

/* Stats Grid */
.sm-mobile-event-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.sm-mobile-stat {
    text-align: center;
    padding: 12px 8px;
    background: #f9fafb;
    border-radius: 12px;
}

.sm-mobile-stat-icon {
    font-size: 18px;
    margin-bottom: 4px;
    color: #6b7280;
}

.sm-mobile-stat-value {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2px;
}

.sm-mobile-stat-label {
    font-size: 10px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Action Buttons */
.sm-mobile-event-actions {
    display: flex;
    gap: 10px;
}

.sm-mobile-card-btn {
    flex: 1;
    padding: 12px;
    border-radius: 12px;
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: transform 0.15s, opacity 0.15s;
}

.sm-mobile-card-btn:active {
    transform: scale(0.96);
}

.sm-mobile-card-btn:disabled {
    opacity: 0.7;
    cursor: default;
}

.sm-mobile-card-btn:disabled:active {
    transform: none;
}

.sm-mobile-card-btn.primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.sm-mobile-card-btn.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.sm-mobile-card-btn.outline {
    background: white;
    border: 2px solid #e5e7eb;
    color: #374151;
}

.sm-mobile-card-btn.outline:active {
    background: #f3f4f6;
}

/* Rating display */
.sm-mobile-card-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: #fef3c7;
    border-radius: 12px;
    width: 100%;
}

.sm-mobile-card-rating .rating-value {
    font-size: 18px;
    font-weight: 700;
    color: #92400e;
}

.sm-mobile-card-rating .rating-stars {
    color: #f59e0b;
    font-size: 14px;
}

.sm-mobile-card-rating .rating-count {
    color: #92400e;
    font-size: 12px;
}

/* Hide desktop cards on mobile */
@media (max-width: 768px) {
    .sm-formation-card {
        display: none !important;
    }
    
    .sm-mobile-event-card {
        display: block;
    }
}

/* Hide mobile cards on desktop */
@media (min-width: 769px) {
    .sm-mobile-event-card {
        display: none !important;
    }
    
    .sm-formation-card {
        display: block;
    }
}

/* Hide year selector and view toggle on mobile - use FAB filters instead */
@media (max-width: 768px) {
    .sm-formations-toolbar {
        display: none !important;
    }
    
    /* Also hide the event type pills on mobile */
    .sm-event-types-filter {
        display: none !important;
    }
    
    /* Adjust content area padding for mobile */
    .sm-formations-page #formations-content-area {
        padding: 0;
    }
    
    /* Message for empty state */
    .sm-formations-page .sm-empty-state h3 {
        font-size: 16px;
    }
}

/* Survey status with user vote */
.sm-formation-status.survey.voted-yes {
    background: #d1fae5 !important;
    color: #065f46 !important;
}

.sm-formation-status.survey.voted-no {
    background: #f3f4f6 !important;
    color: #6b7280 !important;
}

/* ==============================================
   MESSAGERIE MOBILE - REFONTE COMPLÈTE
   Proposition A (Liste) + C (Chat) + D (Nouveau)
   ============================================== */

@media (max-width: 768px) {
    /* Empêcher le zoom iOS sur les inputs */
    input, textarea, select {
        font-size: 16px !important;
    }
    
    /* ==========================================
       PROPOSITION A - LISTE DES CONVERSATIONS
       ========================================== */
    
    /* Forcer le parent à ne pas scroller quand on affiche la messagerie */
    #sm-page-content.sm-messaging-active {
        overflow: hidden !important;
        height: 100% !important;
        padding: 0 !important;
    }
    
    /* Container principal */
    .sm-msg-mobile-app {
        display: flex;
        flex-direction: column;
        height: 100%;
        background: #f8fafc;
        position: relative;
        overflow: hidden;
    }
    
    /* ==========================================
       NOUVEAU DESIGN V2 - Header FIXE
       ========================================== */
    
    /* Header FIXE en haut - ne scroll JAMAIS */
    .sm-msg-mobile-header-v2 {
        position: fixed;
        top: 60px; /* Hauteur du header principal de l'app */
        left: 0;
        right: 0;
        background: #ffffff;
        padding: 12px 16px;
        border-bottom: 1px solid #e5e7eb;
        z-index: 1000;
    }
    
    .sm-msg-mobile-search-v2 {
        background: #f3f4f6;
        border-radius: 12px;
        padding: 12px 16px;
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 12px;
    }
    
    .sm-msg-mobile-search-v2 i {
        color: #9ca3af;
    }
    
    .sm-msg-mobile-search-v2 input {
        flex: 1;
        background: none;
        border: none;
        color: #1f2937;
        font-size: 16px; /* 16px minimum pour éviter le zoom iOS */
        outline: none;
    }
    
    .sm-msg-mobile-search-v2 input::placeholder {
        color: #9ca3af;
    }
    
    .sm-msg-mobile-tabs-v2 {
        display: flex;
        gap: 8px;
    }
    
    .sm-msg-mobile-tab-v2 {
        flex: 1;
        padding: 10px 16px;
        border-radius: 20px;
        border: none;
        background: #f3f4f6;
        color: #6b7280;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }
    
    .sm-msg-mobile-tab-v2.active {
        background: #e63946;
        color: white;
    }
    
    .sm-msg-mobile-tab-v2 .badge {
        background: white;
        color: #e63946;
        font-size: 11px;
        padding: 2px 7px;
        border-radius: 10px;
        font-weight: 700;
    }
    
    .sm-msg-mobile-tab-v2.active .badge {
        background: rgba(255,255,255,0.9);
        color: #e63946;
    }
    
    /* Liste des conversations - scroll avec padding pour header fixe */
    .sm-msg-mobile-list-v2 {
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        padding: 8px;
        padding-top: 130px; /* Espace pour le header fixe (recherche + onglets) */
        padding-bottom: 20px; /* Petit espace en bas */
    }
    
    /* FAB - Floating Action Button */
    .sm-msg-mobile-fab {
        position: fixed;
        bottom: calc(90px + env(safe-area-inset-bottom, 0px));
        right: 20px;
        width: 60px;
        height: 60px;
        background: linear-gradient(135deg, #e63946 0%, #c1121f 100%);
        border-radius: 50%;
        border: none;
        color: white;
        font-size: 22px;
        cursor: pointer;
        box-shadow: 0 4px 20px rgba(230, 57, 70, 0.4);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s;
        z-index: 9980;
    }
    
    .sm-msg-mobile-fab:active {
        transform: scale(0.95);
        box-shadow: 0 2px 10px rgba(230, 57, 70, 0.3);
    }
    
    /* ==========================================
       ANCIEN DESIGN (gardé pour compatibilité)
       ========================================== */
    
    /* Header rouge avec recherche */
    .sm-msg-mobile-header {
        background: linear-gradient(135deg, #e63946 0%, #c1121f 100%);
        padding: 16px;
        padding-top: max(16px, env(safe-area-inset-top, 0px));
        color: white;
        flex-shrink: 0;
        border-radius: 0 0 24px 24px;
    }
    
    .sm-msg-mobile-header-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 14px;
    }
    
    .sm-msg-mobile-header h1 {
        font-size: 26px;
        font-weight: 700;
        margin: 0;
    }
    
    .sm-msg-mobile-new-btn {
        width: 44px;
        height: 44px;
        background: rgba(255,255,255,0.2);
        border-radius: 50%;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 18px;
        cursor: pointer;
        transition: all 0.2s;
    }
    
    .sm-msg-mobile-new-btn:active {
        transform: scale(0.95);
        background: rgba(255,255,255,0.3);
    }
    
    .sm-msg-mobile-search {
        background: rgba(255,255,255,0.2);
        border-radius: 12px;
        padding: 12px 16px;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .sm-msg-mobile-search i {
        color: rgba(255,255,255,0.7);
    }
    
    .sm-msg-mobile-search input {
        flex: 1;
        background: none;
        border: none;
        color: white;
        font-size: 14px;
        outline: none;
    }
    
    .sm-msg-mobile-search input::placeholder {
        color: rgba(255,255,255,0.7);
    }
    
    /* Onglets de filtrage */
    .sm-msg-mobile-tabs {
        display: flex;
        background: white;
        padding: 8px;
        gap: 8px;
        border-bottom: 1px solid #e5e7eb;
        flex-shrink: 0;
    }
    
    .sm-msg-mobile-tab {
        flex: 1;
        padding: 10px 8px;
        text-align: center;
        border-radius: 10px;
        font-size: 13px;
        font-weight: 600;
        color: #6b7280;
        background: transparent;
        border: none;
        cursor: pointer;
        transition: all 0.2s;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }
    
    .sm-msg-mobile-tab.active {
        background: #fef2f2;
        color: #e63946;
    }
    
    .sm-msg-mobile-tab .badge {
        background: #e63946;
        color: white;
        font-size: 10px;
        padding: 2px 6px;
        border-radius: 10px;
        font-weight: 700;
    }
    
    .sm-msg-mobile-tab.active .badge {
        background: #c1121f;
    }
    
    /* Liste des conversations */
    .sm-msg-mobile-list {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 8px;
        overflow-x: hidden;
    }
    
    /* Wrapper pour le swipe */
    .sm-msg-mobile-item-wrapper {
        position: relative;
        margin-bottom: 4px;
        overflow: hidden;
        border-radius: 16px;
    }
    
    .sm-msg-mobile-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px;
        border-radius: 16px;
        cursor: pointer;
        transition: transform 0.3s ease, background 0.2s;
        margin-bottom: 0;
        background: white;
        position: relative;
        z-index: 2;
    }
    
    .sm-msg-mobile-item:active {
        background: #f3f4f6;
    }
    
    .sm-msg-mobile-item.unread {
        background: #fef2f2;
    }
    
    /* Bouton de suppression (révélé par swipe) */
    .sm-msg-mobile-delete-action {
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 70px;
        background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 20px;
        z-index: 1;
        border-radius: 0 16px 16px 0;
        cursor: pointer;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.15s;
    }
    
    .sm-msg-mobile-item-wrapper.swiping .sm-msg-mobile-delete-action,
    .sm-msg-mobile-item-wrapper.swiped .sm-msg-mobile-delete-action {
        opacity: 1;
        pointer-events: auto;
    }
    
    .sm-msg-mobile-delete-action:active {
        background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    }
    
    /* Avatar avec indicateur en ligne */
    .sm-msg-mobile-avatar {
        width: 56px;
        height: 56px;
        border-radius: 50%;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-weight: 700;
        font-size: 18px;
        flex-shrink: 0;
        position: relative;
    }
    
    .sm-msg-mobile-avatar.online::after {
        content: '';
        position: absolute;
        bottom: 2px;
        right: 2px;
        width: 14px;
        height: 14px;
        background: #10b981;
        border: 3px solid white;
        border-radius: 50%;
    }
    
    .sm-msg-mobile-avatar.staff {
        background: linear-gradient(135deg, #e63946 0%, #c1121f 100%);
    }
    
    .sm-msg-mobile-content {
        flex: 1;
        min-width: 0;
    }
    
    .sm-msg-mobile-name {
        font-weight: 600;
        color: #1f2937;
        font-size: 15px;
        margin-bottom: 4px;
        display: flex;
        align-items: center;
        gap: 6px;
    }
    
    .sm-msg-mobile-name .staff-badge {
        background: #dbeafe;
        color: #2563eb;
        font-size: 9px;
        padding: 2px 6px;
        border-radius: 4px;
        font-weight: 600;
    }
    
    .sm-msg-mobile-name .staff-badge.secretary {
        background: #fef2f2;
        color: #e63946;
    }
    
    .sm-msg-mobile-preview {
        color: #6b7280;
        font-size: 13px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .sm-msg-mobile-item.unread .sm-msg-mobile-preview {
        color: #1f2937;
        font-weight: 500;
    }
    
    .sm-msg-mobile-meta {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        flex-shrink: 0;
        gap: 4px;
    }
    
    .sm-msg-mobile-time {
        font-size: 12px;
        color: #9ca3af;
    }
    
    .sm-msg-mobile-item.unread .sm-msg-mobile-time {
        color: #e63946;
        font-weight: 600;
    }
    
    .sm-msg-mobile-unread-badge {
        background: #e63946;
        color: white;
        font-size: 12px;
        font-weight: 700;
        min-width: 22px;
        height: 22px;
        padding: 0 6px;
        border-radius: 11px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Empty state */
    .sm-msg-mobile-empty {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 40px 20px;
        text-align: center;
    }
    
    .sm-msg-mobile-empty-icon {
        width: 80px;
        height: 80px;
        background: linear-gradient(135deg, #e63946 0%, #c1121f 100%);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 20px;
    }
    
    .sm-msg-mobile-empty-icon i {
        font-size: 32px;
        color: white;
    }
    
    .sm-msg-mobile-empty h3 {
        color: #1f2937;
        font-size: 18px;
        margin: 0 0 8px;
    }
    
    .sm-msg-mobile-empty p {
        color: #6b7280;
        margin: 0 0 20px;
        font-size: 14px;
    }
    
    .sm-msg-mobile-empty-btn {
        background: linear-gradient(135deg, #e63946 0%, #c1121f 100%);
        color: white;
        border: none;
        padding: 12px 24px;
        border-radius: 25px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    /* ==========================================
       PROPOSITION C - VUE CONVERSATION (CHAT)
       ========================================== */
    
    .sm-chat-mobile-view {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: #f8fafc;
        z-index: 10000;
        display: flex;
        flex-direction: column;
        height: 100%;
        height: 100dvh;
        overflow: hidden;
    }
    
    /* Header du chat - TOUJOURS FIXE en haut */
    .sm-chat-mobile-header {
        background: white;
        padding: 12px 16px;
        padding-top: max(12px, env(safe-area-inset-top, 0px));
        display: flex;
        align-items: center;
        gap: 12px;
        border-bottom: 1px solid #e5e7eb;
        flex-shrink: 0;
        z-index: 10;
    }
    
    .sm-chat-mobile-back {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #e63946;
        font-size: 18px;
        background: none;
        border: none;
        cursor: pointer;
    }
    
    .sm-chat-mobile-avatar {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: linear-gradient(135deg, #e63946 0%, #c1121f 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-weight: 700;
        font-size: 15px;
        flex-shrink: 0;
    }
    
    .sm-chat-mobile-info {
        flex: 1;
        min-width: 0;
    }
    
    .sm-chat-mobile-name {
        font-weight: 600;
        color: #1f2937;
        font-size: 16px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .sm-chat-mobile-status {
        font-size: 12px;
        color: #10b981;
    }
    
    .sm-chat-mobile-status.offline {
        color: #9ca3af;
    }
    
    .sm-chat-mobile-actions {
        display: flex;
        gap: 4px;
    }
    
    .sm-chat-mobile-action {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #6b7280;
        font-size: 16px;
        background: #f3f4f6;
        border: none;
        border-radius: 50%;
        cursor: pointer;
    }
    
    /* Zone des messages */
    .sm-chat-mobile-messages {
        flex: 1;
        padding: 16px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .sm-chat-mobile-date {
        text-align: center;
        padding: 8px 0;
    }
    
    .sm-chat-mobile-date span {
        background: white;
        color: #9ca3af;
        font-size: 12px;
        padding: 4px 12px;
        border-radius: 12px;
        box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    }
    
    .sm-chat-mobile-bubble {
        max-width: 80%;
        padding: 12px 16px;
        border-radius: 20px;
        font-size: 15px;
        line-height: 1.4;
        position: relative;
        word-wrap: break-word;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        -webkit-touch-callout: none;
    }
    
    .sm-chat-mobile-bubble.received {
        background: white;
        color: #1f2937;
        align-self: flex-start;
        border-bottom-left-radius: 6px;
        box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    }
    
    .sm-chat-mobile-bubble.sent {
        background: linear-gradient(135deg, #e63946 0%, #c1121f 100%);
        color: white;
        align-self: flex-end;
        border-bottom-right-radius: 6px;
    }
    
    .sm-chat-mobile-bubble-time {
        font-size: 10px;
        opacity: 0.7;
        margin-top: 4px;
        display: flex;
        align-items: center;
        gap: 4px;
        justify-content: flex-end;
    }
    
    .sm-chat-mobile-bubble.sent .sm-chat-mobile-bubble-time {
        color: rgba(255,255,255,0.8);
    }
    
    .sm-chat-mobile-bubble .read-indicator {
        color: #10b981;
    }
    
    /* Attachment dans le chat */
    .sm-chat-mobile-attachment {
        margin-top: 8px;
    }
    
    .sm-chat-mobile-attachment img {
        max-width: 200px;
        max-height: 150px;
        border-radius: 12px;
        cursor: pointer;
    }
    
    .sm-chat-mobile-attachment-file {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 14px;
        background: rgba(0,0,0,0.05);
        border-radius: 10px;
        cursor: pointer;
    }
    
    .sm-chat-mobile-bubble.sent .sm-chat-mobile-attachment-file {
        background: rgba(255,255,255,0.2);
    }
    
    /* Zone de saisie */
    .sm-chat-mobile-input-area {
        background: white;
        padding: 12px 16px;
        padding-bottom: max(12px, calc(12px + env(safe-area-inset-bottom, 0px)));
        display: flex;
        align-items: flex-end;
        gap: 12px;
        border-top: 1px solid #e5e7eb;
        flex-shrink: 0;
    }
    
    .sm-chat-mobile-attach-btn {
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #6b7280;
        font-size: 18px;
        background: #f3f4f6;
        border: none;
        border-radius: 50%;
        cursor: pointer;
        flex-shrink: 0;
    }
    
    .sm-chat-mobile-input-wrapper {
        flex: 1;
        position: relative;
    }
    
    .sm-chat-mobile-input {
        width: 100%;
        padding: 12px 16px;
        border: 1px solid #e5e7eb;
        border-radius: 24px;
        font-size: 16px; /* 16px minimum pour éviter le zoom iOS */
        line-height: 1.4;
        resize: none;
        min-height: 44px;
        max-height: 120px;
        font-family: inherit;
        outline: none;
        transition: border-color 0.2s;
    }
    
    .sm-chat-mobile-input:focus {
        border-color: #e63946;
    }
    
    .sm-chat-mobile-send-btn {
        width: 48px;
        height: 48px;
        background: linear-gradient(135deg, #e63946 0%, #c1121f 100%);
        border: none;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 18px;
        cursor: pointer;
        flex-shrink: 0;
        box-shadow: 0 2px 8px rgba(230, 57, 70, 0.3);
        transition: transform 0.2s, box-shadow 0.2s;
    }
    
    .sm-chat-mobile-send-btn:active {
        transform: scale(0.95);
    }
    
    .sm-chat-mobile-send-btn:disabled {
        background: #d1d5db;
        box-shadow: none;
        cursor: not-allowed;
    }
    
    /* Preview d'attachment */
    .sm-chat-mobile-attachment-preview {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px;
        background: #f3f4f6;
        border-radius: 12px;
        margin-bottom: 10px;
    }
    
    .sm-chat-mobile-attachment-preview img {
        max-width: 60px;
        max-height: 60px;
        border-radius: 8px;
        object-fit: cover;
    }
    
    .sm-chat-mobile-attachment-preview .file-info {
        flex: 1;
        min-width: 0;
    }
    
    .sm-chat-mobile-attachment-preview .file-name {
        font-size: 13px;
        font-weight: 500;
        color: #1f2937;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .sm-chat-mobile-attachment-preview .file-size {
        font-size: 11px;
        color: #6b7280;
    }
    
    .sm-chat-mobile-attachment-preview .remove-btn {
        width: 28px;
        height: 28px;
        background: #ef4444;
        border: none;
        border-radius: 50%;
        color: white;
        font-size: 12px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* ==========================================
       MENU OPTIONS CHAT (style iOS action sheet)
       ========================================== */
    
    .sm-mobile-options-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 10002;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        opacity: 0;
        transition: opacity 0.3s;
    }
    
    .sm-mobile-options-menu.active {
        opacity: 1;
    }
    
    .sm-mobile-options-backdrop {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.4);
    }
    
    .sm-mobile-options-sheet {
        position: relative;
        padding: 10px;
        padding-bottom: max(10px, env(safe-area-inset-bottom, 0px));
        transform: translateY(100%);
        transition: transform 0.3s ease-out;
    }
    
    .sm-mobile-options-menu.active .sm-mobile-options-sheet {
        transform: translateY(0);
    }
    
    .sm-mobile-options-list {
        background: white;
        border-radius: 14px;
        overflow: hidden;
        margin-bottom: 8px;
    }
    
    .sm-mobile-option-item {
        display: flex;
        align-items: center;
        gap: 14px;
        width: 100%;
        padding: 16px 20px;
        border: none;
        background: none;
        font-size: 17px;
        color: #1f2937;
        cursor: pointer;
        text-align: left;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .sm-mobile-option-item:last-child {
        border-bottom: none;
    }
    
    .sm-mobile-option-item:active {
        background: #f3f4f6;
    }
    
    .sm-mobile-option-item i {
        font-size: 18px;
        width: 24px;
        text-align: center;
        color: #6b7280;
    }
    
    .sm-mobile-option-item.danger {
        color: #ef4444;
    }
    
    .sm-mobile-option-item.danger i {
        color: #ef4444;
    }
    
    .sm-mobile-option-cancel {
        display: block;
        width: 100%;
        padding: 16px;
        background: white;
        border: none;
        border-radius: 14px;
        font-size: 17px;
        font-weight: 600;
        color: #007aff;
        cursor: pointer;
        text-align: center;
    }
    
    .sm-mobile-option-cancel:active {
        background: #f3f4f6;
    }
    
    /* ==========================================
       VIEWER DE PIÈCES JOINTES (images uniquement)
       ========================================== */
    
    .sm-attachment-viewer {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.95);
        z-index: 10003;
        display: flex;
        flex-direction: column;
        opacity: 0;
        transition: opacity 0.3s;
    }
    
    .sm-attachment-viewer.active {
        opacity: 1;
    }
    
    .sm-viewer-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px;
        padding-top: max(16px, env(safe-area-inset-top, 0px));
    }
    
    .sm-viewer-close,
    .sm-viewer-external {
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.1);
        border: none;
        border-radius: 50%;
        color: white;
        font-size: 18px;
        cursor: pointer;
        text-decoration: none;
    }
    
    .sm-viewer-close:active,
    .sm-viewer-external:active {
        background: rgba(255, 255, 255, 0.2);
    }
    
    .sm-viewer-content {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 16px;
        overflow: auto;
    }
    
    .sm-viewer-image {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        border-radius: 8px;
    }
    
    /* ==========================================
       PROPOSITION D - NOUVEAU MESSAGE
       ========================================== */
    
    .sm-newmsg-mobile-view {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: #f8fafc;
        z-index: 10001;
        display: flex;
        flex-direction: column;
    }
    
    .sm-newmsg-mobile-header {
        background: white;
        padding: 16px;
        padding-top: max(16px, env(safe-area-inset-top, 0px));
        border-bottom: 1px solid #e5e7eb;
        flex-shrink: 0;
    }
    
    .sm-newmsg-mobile-header-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 16px;
    }
    
    .sm-newmsg-mobile-cancel {
        color: #6b7280;
        font-size: 14px;
        font-weight: 500;
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
    }
    
    .sm-newmsg-mobile-title {
        font-size: 17px;
        font-weight: 600;
        color: #1f2937;
    }
    
    .sm-newmsg-mobile-create {
        color: #e63946;
        font-size: 14px;
        font-weight: 600;
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
        opacity: 0.5;
    }
    
    .sm-newmsg-mobile-create.active {
        opacity: 1;
    }
    
    .sm-newmsg-mobile-to {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 0;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .sm-newmsg-mobile-to label {
        color: #6b7280;
        font-size: 14px;
        font-weight: 500;
    }
    
    .sm-newmsg-mobile-to input {
        flex: 1;
        border: none;
        font-size: 16px; /* 16px minimum pour éviter le zoom iOS */
        color: #1f2937;
        outline: none;
        background: transparent;
    }
    
    .sm-newmsg-mobile-section-title {
        padding: 16px 16px 8px;
        font-size: 12px;
        font-weight: 600;
        color: #6b7280;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        background: #f8fafc;
    }
    
    .sm-newmsg-mobile-list {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        background: white;
    }
    
    .sm-newmsg-mobile-item {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 12px 16px;
        cursor: pointer;
        border-bottom: 1px solid #f3f4f6;
        transition: background 0.2s;
    }
    
    .sm-newmsg-mobile-item:active {
        background: #f9fafb;
    }
    
    .sm-newmsg-mobile-item.selected {
        background: #fef2f2;
    }
    
    .sm-newmsg-mobile-avatar {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-weight: 700;
        font-size: 16px;
        flex-shrink: 0;
    }
    
    .sm-newmsg-mobile-avatar.secretary {
        background: linear-gradient(135deg, #e63946 0%, #c1121f 100%);
    }
    
    .sm-newmsg-mobile-avatar.delegate {
        background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    }
    
    .sm-newmsg-mobile-avatar.group {
        background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    }
    
    .sm-newmsg-mobile-info {
        flex: 1;
        min-width: 0;
    }
    
    .sm-newmsg-mobile-name {
        font-weight: 600;
        color: #1f2937;
        font-size: 15px;
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 2px;
    }
    
    .sm-newmsg-mobile-badge {
        font-size: 10px;
        padding: 2px 8px;
        border-radius: 4px;
        font-weight: 600;
    }
    
    .sm-newmsg-mobile-badge.secretary {
        background: #fef2f2;
        color: #e63946;
    }
    
    .sm-newmsg-mobile-badge.delegate {
        background: #ede9fe;
        color: #7c3aed;
    }
    
    .sm-newmsg-mobile-role {
        font-size: 13px;
        color: #6b7280;
    }
    
    .sm-newmsg-mobile-check {
        width: 24px;
        height: 24px;
        border: 2px solid #d1d5db;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        transition: all 0.2s;
    }
    
    .sm-newmsg-mobile-item.selected .sm-newmsg-mobile-check {
        background: #e63946;
        border-color: #e63946;
        color: white;
    }
    
    .sm-newmsg-mobile-empty {
        padding: 40px 20px;
        text-align: center;
        color: #6b7280;
    }
    
    .sm-newmsg-mobile-empty i {
        font-size: 40px;
        color: #d1d5db;
        margin-bottom: 12px;
        display: block;
    }
    
    /* ==========================================
       MODAL DE CONFIRMATION DE SUPPRESSION
       ========================================== */
    
    .sm-msg-mobile-confirm-modal {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 100000;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .sm-msg-mobile-confirm-modal.active {
        opacity: 1;
    }
    
    .sm-msg-mobile-confirm-backdrop {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
    }
    
    .sm-msg-mobile-confirm-content {
        position: relative;
        background: white;
        border-radius: 20px;
        padding: 24px;
        text-align: center;
        max-width: 320px;
        width: 100%;
        transform: scale(0.9);
        transition: transform 0.3s ease;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    }
    
    .sm-msg-mobile-confirm-modal.active .sm-msg-mobile-confirm-content {
        transform: scale(1);
    }
    
    .sm-msg-mobile-confirm-icon {
        width: 60px;
        height: 60px;
        background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 16px;
    }
    
    .sm-msg-mobile-confirm-icon i {
        font-size: 24px;
        color: white;
    }
    
    .sm-msg-mobile-confirm-content h3 {
        font-size: 18px;
        font-weight: 700;
        color: #1f2937;
        margin: 0 0 8px;
    }
    
    .sm-msg-mobile-confirm-content p {
        font-size: 14px;
        color: #6b7280;
        margin: 0 0 24px;
        line-height: 1.5;
    }
    
    .sm-msg-mobile-confirm-buttons {
        display: flex;
        gap: 12px;
    }
    
    .sm-msg-mobile-confirm-cancel,
    .sm-msg-mobile-confirm-delete {
        flex: 1;
        padding: 14px 20px;
        border-radius: 12px;
        font-size: 15px;
        font-weight: 600;
        border: none;
        cursor: pointer;
        transition: all 0.2s;
    }
    
    .sm-msg-mobile-confirm-cancel {
        background: #f3f4f6;
        color: #1f2937;
    }
    
    .sm-msg-mobile-confirm-cancel:active {
        background: #e5e7eb;
    }
    
    .sm-msg-mobile-confirm-delete {
        background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
        color: white;
    }
    
    .sm-msg-mobile-confirm-delete:active {
        background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    }
    
    /* ==========================================
       ICÔNE SOURDINE DANS LISTE
       ========================================== */
    
    .sm-msg-mobile-muted-icon {
        color: #9ca3af;
        font-size: 12px;
        margin-left: 6px;
    }
    
    .sm-msg-mobile-item.muted {
        opacity: 0.7;
    }
    
    /* ==========================================
       RÉACTIONS AUX MESSAGES (style iPhone)
       ========================================== */
    
    .sm-chat-mobile-message-wrapper {
        display: flex;
        flex-direction: column;
        max-width: 80%;
    }
    
    .sm-chat-mobile-message-wrapper.sent {
        align-items: flex-end;
        align-self: flex-end;
    }
    
    .sm-chat-mobile-message-wrapper.received {
        align-items: flex-start;
        align-self: flex-start;
    }
    
    .sm-chat-mobile-message-wrapper .sm-chat-mobile-bubble {
        max-width: 100%;
    }
    
    .sm-chat-mobile-bubble {
        position: relative;
    }
    
    .sm-chat-mobile-reactions {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        margin-top: 4px;
        padding: 0 4px;
    }
    
    .sm-chat-reaction {
        display: inline-flex;
        align-items: center;
        gap: 3px;
        padding: 4px 8px;
        background: white;
        border: 1px solid #e5e7eb;
        border-radius: 16px;
        font-size: 14px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
        cursor: default;
    }
    
    /* Reaction Picker */
    .sm-reaction-picker {
        position: fixed;
        z-index: 10005;
        background: white;
        border-radius: 24px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        padding: 8px;
        display: flex;
        gap: 4px;
        opacity: 0;
        transform: scale(0.8);
        transition: all 0.2s ease;
    }
    
    .sm-reaction-picker.active {
        opacity: 1;
        transform: scale(1);
    }
    
    .sm-reaction-btn {
        width: 44px;
        height: 44px;
        font-size: 24px;
        background: transparent;
        border: none;
        border-radius: 12px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.15s, transform 0.15s;
    }
    
    .sm-reaction-btn:hover {
        background: #f3f4f6;
    }
    
    .sm-reaction-btn:active {
        transform: scale(1.2);
        background: #e5e7eb;
    }
    
    /* ==========================================
       MODAL D'INFORMATIONS CONVERSATION
       ========================================== */
    
    .sm-msg-mobile-info-modal {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 10004;
        display: flex;
        align-items: flex-end;
        justify-content: center;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s;
    }
    
    .sm-msg-mobile-info-modal.active {
        opacity: 1;
        pointer-events: auto;
    }
    
    .sm-msg-mobile-info-backdrop {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
    }
    
    .sm-msg-mobile-info-content {
        position: relative;
        width: 100%;
        max-width: 400px;
        background: white;
        border-radius: 20px 20px 0 0;
        transform: translateY(100%);
        transition: transform 0.3s ease;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .sm-msg-mobile-info-modal.active .sm-msg-mobile-info-content {
        transform: translateY(0);
    }
    
    .sm-msg-mobile-info-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 20px;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .sm-msg-mobile-info-header h3 {
        margin: 0;
        font-size: 17px;
        font-weight: 600;
    }
    
    .sm-msg-mobile-info-close {
        width: 32px;
        height: 32px;
        border: none;
        background: #f3f4f6;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: #6b7280;
    }
    
    .sm-msg-mobile-info-body {
        padding: 24px 20px;
    }
    
    .sm-msg-mobile-info-section {
        text-align: center;
        margin-bottom: 24px;
    }
    
    .sm-msg-mobile-info-avatar {
        width: 80px;
        height: 80px;
        background: linear-gradient(135deg, #e63946 0%, #c1121f 100%);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 28px;
        font-weight: 600;
        margin: 0 auto 12px;
    }
    
    .sm-msg-mobile-info-name {
        font-size: 20px;
        font-weight: 600;
        color: #1f2937;
        margin-bottom: 4px;
    }
    
    .sm-msg-mobile-info-role {
        font-size: 14px;
        color: #6b7280;
    }
    
    .sm-msg-mobile-info-stats {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    .sm-msg-mobile-info-stat {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 16px;
        background: #f9fafb;
        border-radius: 12px;
    }
    
    .sm-msg-mobile-info-stat i {
        width: 24px;
        color: #e63946;
        font-size: 16px;
    }
    
    .sm-msg-mobile-info-stat span {
        font-size: 15px;
        color: #374151;
    }
}
