:root {
    /* Ultra Modern Color Palette */
    --primary-color: #4A90E2;
    --primary-dark: #2E5F9E;
    --primary-light: #6DA8E8;
    --primary-lighter: #E8F2FC;
    --primary-gradient: linear-gradient(135deg, #4A90E2 0%, #2E5F9E 100%);
    
    --secondary-color: #5F6368;
    --secondary-dark: #3C4043;
    --secondary-light: #80868B;
    
    --accent-blue: #5B9BF3;
    --accent-purple: #7B68EE;
    --accent-green: #50C878;
    --accent-teal: #00D2D2;
    --accent-orange: #FFA726;
    
    --success-color: #50C878;
    --danger-color: #E74C3C;
    --warning-color: #FFA726;
    --info-color: #4A90E2;
    
    --dark: #202124;
    --dark-light: #3C4043;
    --dark-lighter: #5F6368;
    
    --gray: #80868B;
    --gray-light: #DADCE0;
    --gray-lighter: #F1F3F4;
    --gray-lightest: #F8F9FA;
    
    --white: #FFFFFF;
    --background: #F5F7FA;
    
    /* Layout - Responsive */
    --sidebar-width: 200px;
    --sidebar-collapsed-width: 70px;
    --header-height: 70px;
    --content-max-width: 1600px;
    
    /* Ultra Modern Border Radius */
    --border-radius-sm: 8px;
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    
    /* Premium Shadows */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
    --shadow-sm: 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    --shadow: 0 4px 8px -2px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 12px 24px -6px rgba(0, 0, 0, 0.1), 0 4px 8px -2px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 32px -8px rgba(0, 0, 0, 0.12), 0 8px 16px -4px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 32px 64px -12px rgba(0, 0, 0, 0.15), 0 12px 24px -6px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 40px 80px -16px rgba(0, 0, 0, 0.2);
    
    /* Colored Shadows */
    --shadow-primary: 0 8px 24px -4px rgba(74, 144, 226, 0.2);
    --shadow-success: 0 8px 24px -4px rgba(80, 200, 120, 0.2);
    --shadow-danger: 0 8px 24px -4px rgba(231, 76, 60, 0.2);
    
    /* Glass & Blur Effects */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
    --blur-sm: blur(8px);
    --blur-md: blur(16px);
    
    /* Smooth Transitions - Spring Physics */
    --transition-fast: 180ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 280ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Z-index Scale */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

::selection {
    background-color: rgba(74, 144, 226, 0.2);
    color: var(--dark);
}

/* Premium Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

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

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

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

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

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 0.5;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

::-webkit-scrollbar-thumb {
    background-color: var(--gray);
    border-radius: 4px;
}

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

/* Sidebar scrollbar */
.sidebar-menu::-webkit-scrollbar-thumb {
    background: #DADCE0;
    border-radius: 4px;
}

.sidebar-menu::-webkit-scrollbar-thumb:hover {
    background: #BDC1C6;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #F5F7FA 0%, #F8F9FA 50%, #F5F7FA 100%);
    background-attachment: fixed;
    color: var(--dark);
    font-size: 14px;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    animation: fadeIn 0.4s ease-out;
}

/* Utility Classes for Animations */
.fade-in { animation: fadeIn 0.4s ease-out; }
.fade-in-up { animation: fadeInUp 0.5s ease-out; }
.fade-in-down { animation: fadeInDown 0.5s ease-out; }
.slide-in-left { animation: slideInLeft 0.5s ease-out; }
.scale-in { animation: scaleIn 0.4s ease-out; }

/* Skeleton Loader */
.skeleton {
    background: linear-gradient(90deg, #F1F3F4 25%, #F8F9FA 50%, #F1F3F4 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--border-radius-sm);
}

.skeleton-text {
    height: 16px;
    margin-bottom: 8px;
    border-radius: 4px;
}

.skeleton-circle {
    border-radius: 50%;
}

.skeleton-card {
    height: 200px;
}

/* Sidebar - Ultra Modern */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(180deg, #4A90E2 0%, #2E5F9E 100%);
    color: var(--white);
    z-index: var(--z-fixed);
    display: flex;
    flex-direction: column;
    transition: all var(--transition-base);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.08);
    animation: slideInLeft 0.4s ease-out;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.sidebar-header {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--header-height);
    box-sizing: border-box;
}

.sidebar-logo {
    max-width: 100%;
    height: auto;
    max-height: 45px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: all var(--transition-base);
}

.sidebar-logo:hover {
    transform: scale(1.05);
}

.sidebar-header h2 {
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #FFFFFF;
    letter-spacing: 0.3px;
}

.sidebar-menu {
    flex: 1;
    list-style: none;
    padding: 16px 12px;
    overflow-y: auto;
}

/* Menu sections */
.menu-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 24px 0 12px 12px;
    color: rgba(255, 255, 255, 0.6);
}

.menu-section-title::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.menu-section-title.blue::before {
    background-color: rgba(255, 255, 255, 0.8);
}

.menu-section-title.green::before {
    background-color: rgba(255, 255, 255, 0.8);
}

.menu-section-title.red::before {
    background-color: rgba(255, 255, 255, 0.8);
}

.menu-item {
    padding: 10px 15px;
    margin: 4px 6px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all var(--transition-base);
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
    border-radius: 10px;
    font-size: 13px;
    position: relative;
    overflow: hidden;
}

.menu-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 70%;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 0 4px 4px 0;
    transition: width var(--transition-base);
}

.menu-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    transform: translateX(4px);
}

.menu-item:hover::before {
    width: 4px;
}

.menu-item.active {
    background-color: rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.menu-item.active::before {
    width: 4px;
}

.menu-item i {
    width: 18px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-footer {
    padding: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-logout {
    width: 100%;
    padding: 12px 16px;
    background-color: rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 500;
    font-size: 14px;
    transition: all var(--transition-base);
}

.btn-logout:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    height: var(--header-height);
    background-color: var(--white);
    border-bottom: 1px solid #E8EAED;
    display: flex;
    align-items: center;
    padding: 0 30px;
    gap: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--dark);
}

/* ============================================
   🏢 LABORATOIRE SELECTOR
   ============================================ */
.laboratoire-selector {
    position: relative;
}

.laboratoire-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f2fc 100%);
    border: 1px solid #d0e3f7;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 14px;
    font-weight: 500;
    color: #2563eb;
    min-width: 180px;
}

.laboratoire-btn:hover {
    background: linear-gradient(135deg, #e0efff 0%, #d8eafa 100%);
    border-color: #b0d3f7;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.laboratoire-btn i:first-child {
    font-size: 16px;
}

.laboratoire-btn i:last-child {
    margin-left: auto;
    font-size: 12px;
    transition: transform 0.25s ease;
}

.laboratoire-selector.open .laboratoire-btn i:last-child {
    transform: rotate(180deg);
}

/* Mode lecture seule pour non-super_user */
.laboratoire-btn.readonly {
    cursor: default !important;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-color: #e2e8f0;
}

.laboratoire-btn.readonly:hover {
    border-color: #e2e8f0;
    box-shadow: none;
}

.laboratoire-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 320px;
    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.25s ease;
    overflow: hidden;
}

.laboratoire-selector.open .laboratoire-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.dropdown-header i {
    font-size: 16px;
}

.dropdown-search {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
}

.dropdown-search input {
    width: 100%;
    padding: 10px 36px 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    background: #f9fafb;
    transition: all 0.2s ease;
}

.dropdown-search input:focus {
    outline: none;
    border-color: #3b82f6;
    background: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.dropdown-search i {
    position: absolute;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 14px;
    pointer-events: none;
}

.laboratoire-list {
    list-style: none;
    max-height: 320px;
    overflow-y: auto;
    padding: 8px;
}

.laboratoire-list::-webkit-scrollbar {
    width: 6px;
}

.laboratoire-list::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.laboratoire-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.laboratoire-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 4px;
}

.laboratoire-item:last-child {
    margin-bottom: 0;
}

.laboratoire-item:hover {
    background: #f1f5f9;
}

.laboratoire-item.active {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
}

.laboratoire-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: white;
    flex-shrink: 0;
}

.laboratoire-item-info {
    flex: 1;
    min-width: 0;
}

.laboratoire-item-name {
    font-weight: 600;
    font-size: 14px;
    color: #1e293b;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.laboratoire-item-parcours {
    font-size: 12px;
    color: #64748b;
}

.laboratoire-item-check {
    color: #3b82f6;
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.laboratoire-item.active .laboratoire-item-check {
    opacity: 1;
}

/* Parcours sub-list */
.parcours-list {
    padding-left: 52px;
    margin-top: 4px;
}

.parcours-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    color: #475569;
}

.parcours-item:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.parcours-item.active {
    background: #dbeafe;
    color: #1d4ed8;
    font-weight: 500;
}

.parcours-item i {
    font-size: 10px;
    color: #94a3b8;
}

.parcours-item.active i {
    color: #3b82f6;
}

/* Super user badge */
.super-user-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    font-size: 10px;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 768px) {
    .laboratoire-btn {
        min-width: auto;
        padding: 8px 12px;
    }
    
    .laboratoire-btn span {
        display: none;
    }
    
    .laboratoire-dropdown {
        min-width: 280px;
        right: 0;
        left: auto;
    }
}

.header-search {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.header-search input {
    width: 100%;
    padding: 10px 40px 10px 18px;
    border: 1px solid #E0E0E0;
    background: #F7F8FA;
    border-radius: 6px;
    font-size: 14px;
    transition: all var(--transition-base);
}

.header-search input::placeholder {
    color: var(--gray);
}

.header-search input:focus {
    outline: none;
    border-color: #4A90E2;
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.header-search i {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    font-size: 16px;
    pointer-events: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.icon-btn {
    position: relative;
    background: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--gray);
    transition: all var(--transition-base);
    padding: 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    color: #4A90E2;
    background: rgba(74, 144, 226, 0.08);
}

.icon-btn .badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: var(--danger-color);
    color: var(--white);
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 10px;
    font-weight: 600;
}

/* Notification Button */
.notification-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 18px;
    transition: all 0.2s ease;
}

.notification-btn:hover {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: #93c5fd;
    color: #3b82f6;
    transform: scale(1.05);
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.4);
}

.notification-badge:empty,
.notification-badge[data-count="0"] {
    display: none;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 10px 6px 6px;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-base);
}

.user-info:hover {
    background: rgba(74, 144, 226, 0.06);
}

.user-info span {
    font-weight: 600;
    color: var(--dark);
    font-size: 14px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
    font-size: 16px;
}

/* Content */
.content {
    flex: 1;
    padding: 30px;
}

/* Page Header */
.page-header h1 {
    color: #6B7280;
    font-size: 28px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-header h1 i {
    color: #6B7280;
}

.page-header p {
    color: #9CA3AF;
    font-size: 14px;
    margin: 0;
}

/* Cards */
.card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    padding: 24px;
    margin-bottom: 24px;
    transition: all var(--transition-base);
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.10);
}

/* Card with table - no padding */
.card:has(.table-container) {
    padding: 0;
    overflow: hidden;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--gray-lightest);
}

.card-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-title i {
    color: var(--primary-color);
    font-size: 24px;
}

/* Premium Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.btn:hover::before {
    opacity: 1;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: linear-gradient(135deg, #4A90E2 0%, #2E5F9E 100%);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

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

.btn-secondary {
    background: linear-gradient(135deg, #50C878 0%, #3AA863 100%);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    box-shadow: var(--shadow-success);
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(135deg, #E74C3C 0%, #C0392B 100%);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

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

.btn-outline {
    background-color: transparent;
    border: 1px solid #D0D0D0;
    color: var(--dark);
    box-shadow: none;
}

.btn-outline:hover {
    background-color: rgba(74, 144, 226, 0.06);
    border-color: #4A90E2;
    color: #4A90E2;
    box-shadow: none;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

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

/* Icon-only button for tables */
.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background-color: transparent;
    border: 1px solid #E5E7EB;
    color: #6B7280;
    transition: all var(--transition-base);
    cursor: pointer;
}

.btn-icon:hover {
    background-color: #F3F4F6;
    border-color: #D1D5DB;
    color: var(--primary-color);
}

.btn-icon i {
    font-size: 16px;
}

/* Tables - Ultra Clean Design */
.table-container {
    overflow-x: auto;
    margin-top: 0;
    background: var(--white);
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background-color: var(--white);
    table-layout: fixed;
}

thead {
    background-color: #F9FAFB;
    border-bottom: 1px solid #E5E7EB;
}

th {
    padding: 14px 12px;
    text-align: center;
    font-weight: 600;
    color: #6B7280;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;
    border-bottom: 1px solid #E5E7EB;
    background-color: #F9FAFB;
}

th:first-child {
    border-top-left-radius: var(--border-radius);
}

th:last-child {
    border-top-right-radius: var(--border-radius);
}

td {
    padding: 14px 12px;
    border-bottom: 1px solid #F3F4F6;
    font-size: 13px;
    color: #111827;
    vertical-align: middle;
    text-align: center;
    max-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

td > * {
    margin: 0 auto;
    justify-content: center;
}

/* Allow wrapping for action buttons */
td .action-buttons,
td > div[style*="display: flex"] {
    white-space: normal;
}

/* Qualification Table - specific column widths */
.qualif-table {
    table-layout: fixed;
    width: 100%;
}

.qualif-table th:nth-child(1),
.qualif-table td:nth-child(1) {
    width: 30%;
    text-align: left;
}

.qualif-table th:nth-child(2),
.qualif-table td:nth-child(2) {
    width: 25%;
    text-align: left;
}

.qualif-table th:nth-child(3),
.qualif-table td:nth-child(3) {
    width: 12%;
    text-align: center;
}

.qualif-table th:nth-child(4),
.qualif-table td:nth-child(4) {
    width: 10%;
    text-align: center;
}

.qualif-table th:nth-child(5),
.qualif-table td:nth-child(5) {
    width: 13%;
    text-align: center;
}

.qualif-table th:nth-child(6),
.qualif-table td:nth-child(6) {
    width: 10%;
    text-align: center;
}

.qualif-table td:nth-child(1) > div,
.qualif-table td:nth-child(2) {
    margin: 0;
    justify-content: flex-start;
}

/* Table dynamique avec indications */
.qualif-table-dynamic {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

.qualif-table-dynamic th,
.qualif-table-dynamic td {
    text-align: center;
    padding: 10px 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Colonne Professionnel */
.qualif-table-dynamic tbody td:first-child {
    text-align: left;
}

/* Colonne Spécialité */
.qualif-table-dynamic tbody td:nth-child(2) {
    text-align: left;
}

/* Header groupé d'indication */
.indication-group-row th {
    padding: 10px 8px !important;
    border-bottom: none !important;
    background: transparent !important;
}

.indication-group-row th[colspan] {
    border-bottom: none !important;
}

.indication-group-header {
    text-align: center !important;
    padding: 8px !important;
    vertical-align: bottom !important;
}

.indication-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.indication-header-badge i {
    font-size: 11px;
}

/* Sous-colonnes Potentiel/Adoption */
.qualif-table-dynamic thead tr:last-child th {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #64748b;
    padding: 8px 10px !important;
}

/* Colonne Actions */
.qualif-table-dynamic tbody td:last-child {
    min-width: 60px;
    width: 60px;
}

/* Badges Potentiel et Adoption */
.potential-badge,
.adoption-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 12px;
    white-space: nowrap;
}

.potential-badge {
    border-left-width: 3px;
    border-left-style: solid;
}

.adoption-badge i {
    font-size: 11px;
}

/* Persona Rate Badge */
.persona-rate-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 60px;
}

.persona-rate-bar {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
}

.persona-rate-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.persona-rate-text {
    font-size: 12px;
    font-weight: 600;
}

/* Mode exercice badge */
.mode-badge {
    display: inline-block;
    padding: 3px 8px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

/* UGA badge */
.uga-badge {
    display: inline-block;
    padding: 3px 8px;
    background: #ede9fe;
    color: #7c3aed;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    cursor: help;
}

/* HCP Info styling */
.hcp-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hcp-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4f46e5;
    font-weight: 600;
    font-size: 14px;
}

.hcp-details {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hcp-name {
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hcp-rpps {
    font-size: 12px;
    color: #64748b;
}

.specialty-cell {
    color: #475569;
    font-size: 13px;
}

.mccp-value {
    font-weight: 600;
    color: #1e293b;
}

/* ==========================================
   QUALIFICATION MODAL - Modern Design
   ========================================== */

.qualif-modal {
    max-width: 480px !important;
    padding: 0 !important;
    border-radius: 20px !important;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
}

.qualif-modal-wide {
    max-width: 1300px !important;
    width: 95% !important;
    max-height: 90vh !important;
    padding: 0 !important;
    border-radius: 16px !important;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
    display: flex;
    flex-direction: column;
    position: relative;
}

.qualif-modal-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    background: #f8fafc;
}

/* Zone HCP en haut */
.qualif-modal-top {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 20px;
    padding: 16px 24px;
    background: white;
    border-bottom: 1px solid #e2e8f0;
}

.qualif-modal-top .qualif-modal-hcp-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.qualif-modal-top .qualif-modal-avatar-lg {
    width: 70px;
    height: 70px;
    font-size: 24px;
}

.qualif-modal-top .qualif-modal-info h3 {
    font-size: 16px;
    margin: 0 0 8px 0;
}

.qualif-modal-meta-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.qualif-modal-meta-row span {
    font-size: 12px;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.qualif-modal-meta-row i {
    color: #94a3b8;
    width: 14px;
}

/* Zone adresses multiples */
.qualif-modal-addresses {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.qualif-addresses-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qualif-addresses-header i {
    color: #ef4444;
    font-size: 14px;
}

.qualif-addresses-header span {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
}

.qualif-addresses-count {
    background: #3b82f6;
    color: white;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
    margin-left: auto;
}

.qualif-address-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.qualif-address-tab {
    padding: 6px 12px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 11px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.qualif-address-tab:hover {
    background: #e2e8f0;
}

.qualif-address-tab.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

.qualif-address-tab i {
    font-size: 10px;
}

.qualif-address-detail {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px;
    font-size: 12px;
    color: #475569;
    line-height: 1.5;
}

.qualif-address-detail strong {
    color: #1e293b;
    display: block;
    margin-bottom: 4px;
}

.qualif-address-uga {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    padding: 3px 8px;
    background: #f0f9ff;
    border-radius: 4px;
    font-size: 10px;
    color: #0369a1;
}

.qualif-modal-map-container {
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.qualif-modal-map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.qualif-map-placeholder-mini {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    gap: 8px;
}

.qualif-map-placeholder-mini i {
    font-size: 32px;
    opacity: 0.5;
}

.qualif-map-placeholder-mini span {
    font-size: 12px;
}

.qualif-map-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 6px;
}

.qualif-map-btn {
    width: 32px;
    height: 32px;
    background: white;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.2s;
}

.qualif-map-btn:hover {
    background: #3b82f6;
    color: white;
}

/* Zone 3 colonnes */
.qualif-modal-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 24px;
    flex: 1;
    overflow: auto;
    min-height: 300px;
}

/* Colonne stylisée */
.qualif-col {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid #e5e7eb;
    min-height: 320px;
}

.qualif-col-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.qualif-col-header i {
    font-size: 16px;
}

.qualif-col-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    flex: 1;
}

.qualif-col-count {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 10px;
    font-weight: 500;
}

/* Couleurs des headers */
.qualif-col-header.blue {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #1e40af;
}

.qualif-col-header.blue .qualif-col-count {
    background: #1e40af;
    color: white;
}

.qualif-col-header.purple {
    background: linear-gradient(135deg, #faf5ff, #f3e8ff);
    color: #7c3aed;
}

.qualif-col-header.purple .qualif-col-count {
    background: #7c3aed;
    color: white;
}

.qualif-col-header.green {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    color: #15803d;
}

.qualif-col-header.green .qualif-col-count {
    background: #15803d;
    color: white;
}

/* Contenu colonne */
.qualif-col-content {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
}

.qualif-col-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #94a3b8;
    text-align: center;
    padding: 30px 20px;
}

.qualif-col-empty i {
    font-size: 32px;
    margin-bottom: 10px;
    opacity: 0.5;
}

.qualif-col-empty p {
    margin: 0;
    font-size: 13px;
}

/* Liste d'items dans colonne */
.qualif-col-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.qualif-col-item {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px;
    transition: all 0.2s;
}

.qualif-col-item.answered {
    background: #f0fdf4;
    border-color: #86efac;
}

.qualif-col-item.indication {
    border-left: 3px solid var(--ind-color, #6366f1);
}

.qualif-col-item-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.qualif-col-item-num {
    width: 22px;
    height: 22px;
    min-width: 22px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

.qualif-col-item-text {
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    line-height: 1.4;
}

.qualif-col-item-text .required {
    color: #ef4444;
    margin-left: 2px;
}

/* Options radio/checkbox */
.qualif-col-item-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.qualif-col-item-options label {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    color: #475569;
    transition: all 0.15s;
}

.qualif-col-item-options label:hover {
    border-color: #10b981;
}

.qualif-col-item-options label.selected,
.qualif-col-item-options label:has(input:checked) {
    background: #ecfdf5;
    border-color: #10b981;
    color: #059669;
    font-weight: 500;
}

.qualif-col-item-options input {
    accent-color: #10b981;
}

/* Champ texte persona */
.qualif-persona-text-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    background: white;
    transition: all 0.2s;
}

.qualif-persona-text-input:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.qualif-persona-text-input::placeholder {
    color: #94a3b8;
}

/* Champs par indication */
.qualif-col-item-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.qualif-col-mini-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.qualif-col-mini-field label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    font-weight: 600;
}

.qualif-col-mini-field select {
    padding: 6px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 12px;
    background: white;
    cursor: pointer;
}

.qualif-col-mini-field select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1);
}

/* Champs Ciblage/MCCP */
.qualif-col-field {
    margin-bottom: 20px;
}

.qualif-col-field label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.qualif-col-field label i {
    color: #3b82f6;
}

.qualif-col-field select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

.qualif-col-field select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.qualif-col-hint {
    font-size: 11px;
    color: #64748b;
    padding: 10px;
    background: #f8fafc;
    border-radius: 6px;
    text-align: center;
}

/* Responsive modal 3 colonnes */
@media (max-width: 1100px) {
    .qualif-modal-cols {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .qualif-modal-cols .qualif-col:last-child {
        grid-column: span 2;
    }
}

@media (max-width: 900px) {
    .qualif-modal-top {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .qualif-modal-top .qualif-modal-hcp-card {
        flex-direction: row;
        text-align: left;
    }
    
    .qualif-modal-meta-row {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .qualif-modal-addresses {
        min-height: 280px;
    }
}

@media (max-width: 768px) {
    .qualif-modal-wide {
        max-width: 100% !important;
        border-radius: 0 !important;
        max-height: 100vh !important;
    }
    
    .qualif-modal-top .qualif-modal-hcp-card {
        flex-direction: column;
        text-align: center;
    }
    
    .qualif-modal-meta-row {
        justify-content: center;
    }
    
    .qualif-modal-map-container {
        height: 150px;
    }
    
    .qualif-modal-cols {
        grid-template-columns: 1fr;
        padding: 12px;
    }
    
    .qualif-modal-cols .qualif-col:last-child {
        grid-column: span 1;
    }
    
    .qualif-address-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
    }
    
    .qualif-address-tab {
        white-space: nowrap;
    }
}

.qualif-modal-left {
    background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
}

.qualif-modal-right {
    padding: 24px;
    overflow-y: auto;
}

.qualif-modal-persona {
    background: #fafafa;
    border-left: 1px solid #e2e8f0;
    padding: 20px;
    overflow-y: auto;
}

.qualif-persona-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}

.qualif-persona-header i {
    color: #10b981;
    font-size: 18px;
}

.qualif-persona-header h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
}

.qualif-persona-header span {
    margin-left: auto;
    font-size: 12px;
    color: #64748b;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 12px;
}

.qualif-persona-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.qualif-persona-question {
    background: white;
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid #e5e7eb;
}

.qualif-persona-question-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.qualif-persona-question-num {
    width: 24px;
    height: 24px;
    min-width: 24px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.qualif-persona-question-text {
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    line-height: 1.4;
}

.qualif-persona-question-required {
    color: #ef4444;
    font-size: 10px;
    margin-left: 4px;
}

.qualif-persona-answer {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.qualif-persona-answer label {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    color: #475569;
    transition: all 0.2s;
}

.qualif-persona-answer label:hover {
    border-color: #10b981;
    background: #f0fdf4;
}

.qualif-persona-answer input[type="radio"],
.qualif-persona-answer input[type="checkbox"] {
    accent-color: #10b981;
}

.qualif-persona-answer label:has(input:checked) {
    border-color: #10b981;
    background: #ecfdf5;
    color: #059669;
    font-weight: 500;
}

.qualif-persona-empty {
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
}

.qualif-persona-empty i {
    font-size: 40px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.qualif-persona-empty p {
    margin: 0;
    font-size: 13px;
}

/* Responsive pour modal */
@media (max-width: 1024px) {
    .qualif-modal-wide {
        max-width: 95% !important;
    }
    
    .qualif-modal-body {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }
    
    .qualif-modal-left {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }
    
    .qualif-modal-persona {
        border-left: none;
        border-top: 1px solid #e2e8f0;
    }
}

.qualif-modal-hcp-card {
    padding: 24px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.qualif-modal-avatar-lg {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 24px;
    margin: 0 auto 16px;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.qualif-modal-hcp-card h3 {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

.qualif-modal-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.qualif-modal-meta span {
    font-size: 12px;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.qualif-modal-meta i {
    color: #94a3b8;
    width: 14px;
}

.qualif-modal-location {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px;
}

.qualif-location-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    padding: 12px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.qualif-location-header > i {
    color: #ef4444;
    font-size: 18px;
    margin-top: 2px;
}

.qualif-location-header > div {
    flex: 1;
}

.qualif-location-header strong {
    display: block;
    color: #1e293b;
    font-size: 14px;
}

.qualif-location-header small {
    color: #64748b;
    font-size: 11px;
    line-height: 1.4;
}

.qualif-map-link {
    color: #3b82f6;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.2s;
}

.qualif-map-link:hover {
    background: #eff6ff;
}

.qualif-modal-map {
    flex: 1;
    min-height: 180px;
    border-radius: 10px;
    overflow: hidden;
    background: #f1f5f9;
}

.qualif-map-placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    gap: 8px;
}

.qualif-map-placeholder i {
    font-size: 32px;
    opacity: 0.5;
}

.qualif-map-placeholder span {
    font-size: 12px;
}

.qualif-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .qualif-modal-body {
        grid-template-columns: 1fr;
    }
    
    .qualif-modal-left {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }
    
    .qualif-modal-map {
        min-height: 150px;
    }
    
    .qualif-form-row {
        grid-template-columns: 1fr;
    }
}

.qualif-modal-close-simple {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: #f1f5f9;
    border: none;
    border-radius: 8px;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.qualif-modal-close-simple:hover {
    background: #ef4444;
    color: white;
}

.qualif-modal-header {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.qualif-modal-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.qualif-modal-close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qualif-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.qualif-modal-hcp {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: linear-gradient(to bottom, #f0f9ff, #ffffff);
    border-bottom: 1px solid #e2e8f0;
}

.qualif-modal-avatar {
    width: 56px;
    height: 56px;
    min-width: 56px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.qualif-modal-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.qualif-modal-info h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

.qualif-modal-specialty {
    font-size: 14px;
    color: #475569;
}

.qualif-modal-rpps {
    font-size: 12px;
    color: #94a3b8;
    font-family: 'SF Mono', 'Monaco', monospace;
}

.qualif-modal-form {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.qualif-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.qualif-field-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qualif-field-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.qualif-field-icon.blue {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1d4ed8;
}

.qualif-field-icon.orange {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #d97706;
}

.qualif-field-icon.purple {
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
    color: #7c3aed;
}

.qualif-field label {
    font-weight: 600;
    font-size: 14px;
    color: #334155;
}

.qualif-field select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    color: #1e293b;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
}

.qualif-field select:focus {
    outline: none;
    border-color: #3b82f6;
    background-color: white;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.qualif-mccp-input {
    display: flex;
    align-items: center;
    gap: 0;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.qualif-mccp-btn {
    width: 48px;
    height: 48px;
    border: none;
    background: transparent;
    font-size: 20px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.qualif-mccp-btn:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.qualif-mccp-btn:active {
    background: #cbd5e1;
}

.qualif-mccp-input input {
    flex: 1;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    padding: 8px;
    width: 100%;
}

.qualif-mccp-input input:focus {
    outline: none;
}

.qualif-mccp-input:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.qualif-hint {
    font-size: 12px;
    color: #64748b;
    padding-left: 42px;
}

.qualif-modal-footer {
    display: flex;
    gap: 12px;
    padding: 20px 24px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.qualif-btn-cancel {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.qualif-btn-cancel:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
    color: #475569;
}

.qualif-btn-save {
    flex: 1.5;
    padding: 14px 20px;
    border: none;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.qualif-btn-save:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.qualif-btn-save:active {
    transform: translateY(0);
}

.qualif-btn-save:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Indication Fields in Modal */
.qualif-indications-section {
    margin-top: 8px;
}

.qualif-indications-title {
    font-weight: 600;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.qualif-indications-title i {
    color: #8b5cf6;
}

.qualif-indication-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 12px;
    border-left: 4px solid #6366f1;
}

.qualif-indication-name {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.qualif-indication-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.qualif-indication-field label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.qualif-indication-field select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    color: #1e293b;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.qualif-indication-field select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.qualif-field-icon.green {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #059669;
}

tbody tr {
    transition: background-color var(--transition-fast);
    background-color: var(--white);
}

tbody tr:hover {
    background-color: #FAFAFA;
}

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

tbody tr:last-child td:first-child {
    border-bottom-left-radius: var(--border-radius);
}

tbody tr:last-child td:last-child {
    border-bottom-right-radius: var(--border-radius);
}

/* Specific column widths for HCP table */
table th:nth-child(1),
table td:nth-child(1) {
    width: 130px;
    white-space: nowrap;
    text-align: left;
    padding-left: 16px;
}

table th:nth-child(1) {
    text-align: left;
}

table th:nth-child(2),
table td:nth-child(2) {
    width: 140px;
}

table th:nth-child(3),
table td:nth-child(3) {
    width: 130px;
}

table th:nth-child(4),
table td:nth-child(4) {
    width: 200px;
}

table th:nth-child(5),
table td:nth-child(5) {
    width: 160px;
}

table th:nth-child(6),
table td:nth-child(6) {
    width: 80px;
    text-align: center;
}

/* Colonnes VMS, ASR, RPST - plus compactes */
table th:nth-child(7),
table td:nth-child(7),
table th:nth-child(8),
table td:nth-child(8),
table th:nth-child(9),
table td:nth-child(9) {
    width: 70px;
    text-align: center;
}

/* Colonne MCCP */
table th:nth-child(10),
table td:nth-child(10) {
    width: 70px;
    text-align: center;
}

table th:last-child,
table td:last-child {
    width: 100px;
    text-align: center;
}

/* Ajustements spécifiques pour améliorer la lisibilité */
table td:nth-child(1) strong {
    font-size: 13px;
    font-weight: 600;
}

/* Colonnes NOM et PRÉNOM - texte aligné à gauche pour meilleure lisibilité */
table td:nth-child(2),
table td:nth-child(3) {
    text-align: left;
    padding-left: 16px;
}

table th:nth-child(2),
table th:nth-child(3) {
    text-align: left;
    padding-left: 16px;
}

/* Colonne SPÉCIALITÉ et VILLE - alignement gauche */
table td:nth-child(4),
table td:nth-child(5) {
    text-align: left;
    padding-left: 16px;
}

table th:nth-child(4),
table th:nth-child(5) {
    text-align: left;
    padding-left: 16px;
}

/* Hover effect pour montrer le texte complet */
table td {
    position: relative;
    cursor: default;
}

table td:hover {
    overflow: visible;
    z-index: 10;
}

table td:hover::after {
    content: attr(title);
    position: absolute;
    left: 0;
    top: 100%;
    background: #1F2937;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    margin-top: 4px;
    display: none;
}

table td[title]:hover::after {
    display: block;
}

/* Forms */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--dark);
    font-size: 14px;
    letter-spacing: 0.2px;
}

.form-group label i {
    margin-right: 8px;
    color: var(--primary-color);
    font-size: 15px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #DADCE0;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: all var(--transition-base);
    background-color: var(--white);
    color: var(--dark);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #80868B;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4A90E2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--white);
    border-radius: var(--border-radius-xl);
    padding: 36px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* OVERRIDE for HCP Profile ONLY - ULTRA WIDE */
.modal-content[data-hcp-profile="true"] {
    max-width: 95vw !important;
    width: 95vw !important;
    max-height: 95vh !important;
    padding: 0 !important;
    background: #F3F4F6 !important;
    margin: 20px auto !important;
    overflow-y: auto !important;
}

.modal[data-modal-type="hcp-profile"] .modal-content {
    max-width: 95vw !important;
    width: 95vw !important;
    max-height: 95vh !important;
    padding: 0 !important;
    background: #F3F4F6 !important;
    overflow-y: auto !important;
}

/* Restore overflow for HCP profile modal specifically */
.modal[data-modal-type="hcp-profile"] .modal-body {
    overflow-y: auto !important;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-60px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--gray-lightest);
}

.modal-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-header h3 i {
    color: var(--primary-color);
}

.close-modal {
    background: var(--gray-lightest);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    color: var(--gray);
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    background: var(--danger-color);
    color: var(--white);
    transform: rotate(90deg);
}

/* Login Modal */
.login-modal {
    max-width: 450px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h2 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.login-header p {
    color: var(--gray);
    font-size: 14px;
}

.login-footer {
    text-align: center;
    margin-top: 20px;
}

.login-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
}

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

/* Badges - Clean Style */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    width: 48px;
    height: 24px;
}

.badge-success {
    background-color: #ECFDF5;
    color: #059669;
}

.badge-warning {
    background-color: #FEF3C7;
    color: #D97706;
}

.badge-danger {
    background-color: #FEE2E2;
    color: #DC2626;
}

.badge-info {
    background-color: #E0F2FE;
    color: #0284C7;
}

.badge-primary {
    background-color: #E0F2FE;
    color: #0284C7;
}

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

.stat-card {
    background: linear-gradient(135deg, var(--white) 0%, rgba(255, 255, 255, 0.95) 100%);
    border-radius: var(--border-radius-lg);
    padding: 22px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 18px;
    transition: all var(--transition-base);
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.5s ease-out;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--card-accent, var(--primary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.stat-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
    border-color: rgba(0, 0, 0, 0.06);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    color: white;
    position: relative;
    transition: all var(--transition-base);
}

.stat-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
}

.stat-icon.primary {
    background: linear-gradient(135deg, #4A90E2 0%, #2E5F9E 100%);
}

.stat-card:has(.stat-icon.primary) {
    --card-accent: #4A90E2;
}

.stat-icon.success {
    background: linear-gradient(135deg, #50C878 0%, #3AA863 100%);
}

.stat-card:has(.stat-icon.success) {
    --card-accent: #50C878;
}

.stat-icon.warning {
    background: linear-gradient(135deg, #FFA726 0%, #FB8C00 100%);
}

.stat-card:has(.stat-icon.warning) {
    --card-accent: #FFA726;
}

.stat-icon.danger {
    background: linear-gradient(135deg, #E74C3C 0%, #C0392B 100%);
}

.stat-card:has(.stat-icon.danger) {
    --card-accent: #E74C3C;
}

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

.stat-content h3 {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-content p {
    font-size: 13px;
    color: var(--gray);
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Filters */
.filters {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    margin-bottom: 28px;
    box-shadow: var(--shadow);
}

.filters-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    align-items: end;
    overflow: visible;
}

.filters-row .form-group {
    overflow: visible !important;
}

/* Specialty Dropdown Autocomplete */
.specialty-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 300px;
    overflow-y: auto;
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1050;
    margin-top: 4px;
}

.specialty-option {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
    transition: all 0.2s ease;
    border-bottom: 1px solid #F3F4F6;
}

.specialty-option:last-child {
    border-bottom: none;
}

.specialty-option:hover {
    background-color: #F9FAFB;
    color: #4A90E2;
}

.specialty-option:first-child {
    font-weight: 600;
    color: #6B7280;
    background-color: #F9FAFB;
}

.specialty-option:first-child:hover {
    background-color: #F3F4F6;
}

/* Specialty Input styling */
#filterSpecialty {
    padding-right: 32px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cpath d='m21 21-4.35-4.35'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

/* Special Specialty option styles */
.specialty-option.specialty-count,
.specialty-option.specialty-more {
    pointer-events: none;
}

.specialty-option.specialty-count:hover,
.specialty-option.specialty-more:hover {
    background-color: #F9FAFB !important;
    color: inherit !important;
}

/* Scrollbar for Specialty dropdown */
.specialty-dropdown::-webkit-scrollbar {
    width: 8px;
}

.specialty-dropdown::-webkit-scrollbar-track {
    background: #F3F4F6;
    border-radius: 0 6px 6px 0;
}

.specialty-dropdown::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 4px;
}

.specialty-dropdown::-webkit-scrollbar-thumb:hover {
    background: #9CA3AF;
}

/* UGA Dropdown Autocomplete */
.uga-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 300px;
    overflow-y: auto;
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1050;
    margin-top: 4px;
}

.uga-option {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
    transition: all 0.2s ease;
    border-bottom: 1px solid #F3F4F6;
}

.uga-option:last-child {
    border-bottom: none;
}

.uga-option:hover {
    background-color: #F9FAFB;
    color: #4A90E2;
}

.uga-option:first-child {
    font-weight: 600;
    color: #6B7280;
    background-color: #F9FAFB;
}

.uga-option:first-child:hover {
    background-color: #F3F4F6;
}

/* UGA Input styling */
#filterBrick {
    padding-right: 32px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cpath d='m21 21-4.35-4.35'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

/* Special UGA option styles */
.uga-option.uga-count,
.uga-option.uga-more {
    pointer-events: none;
}

.uga-option.uga-count:hover,
.uga-option.uga-more:hover {
    background-color: #F9FAFB !important;
    color: inherit !important;
}

/* Scrollbar for UGA dropdown */
.uga-dropdown::-webkit-scrollbar {
    width: 8px;
}

.uga-dropdown::-webkit-scrollbar-track {
    background: #F3F4F6;
    border-radius: 0 6px 6px 0;
}

.uga-dropdown::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 4px;
}

.uga-dropdown::-webkit-scrollbar-thumb:hover {
    background: #9CA3AF;
}

/* Loading Spinner */
.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

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

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

/* Toast Notification - Style Moderne */
.toast {
    position: fixed;
    top: 24px;
    right: 24px;
    background-color: var(--white);
    color: #1f2937;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
    display: none;
    align-items: center;
    gap: 12px;
    z-index: 3000;
    animation: toastSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid #e5e7eb;
    min-width: 280px;
    font-weight: 500;
    font-size: 15px;
}

.toast.active {
    display: flex;
}

.toast i {
    font-size: 20px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.toast.success {
    border-left: 4px solid #10b981;
}

.toast.success i {
    color: #10b981;
    background-color: #d1fae5;
}

.toast.error {
    border-left: 4px solid #ef4444;
}

.toast.error i {
    color: #ef4444;
    background-color: #fee2e2;
}

.toast.warning {
    border-left: 4px solid #f59e0b;
}

.toast.warning i {
    color: #f59e0b;
    background-color: #fef3c7;
}

.toast.info {
    border-left: 4px solid #3b82f6;
}

.toast.info i {
    color: #3b82f6;
    background-color: #dbeafe;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(400px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

/* Error Message */
.error-message {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
    padding: 12px 16px;
    border-radius: var(--border-radius);
    margin-top: 16px;
    font-size: 14px;
}

/* Pagination */
/* Pagination - Modern Style */
.pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 28px;
    padding: 0;
    background: transparent;
}

.pagination-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.pagination button {
    padding: 8px 12px;
    border: 1px solid #E5E7EB;
    background-color: var(--white);
    color: #374151;
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition-base);
    font-weight: 500;
    font-size: 14px;
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pagination button:hover:not(:disabled) {
    background-color: #F9FAFB;
    border-color: #D1D5DB;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #F9FAFB;
}

.pagination button.active {
    background-color: #4A90E2;
    color: var(--white);
    border-color: #4A90E2;
    font-weight: 600;
}

.pagination button:has(i) {
    padding: 8px 16px;
    min-width: auto;
}

.pagination-info {
    font-size: 13px;
    color: #6B7280;
    text-align: center;
}

.pagination-info strong {
    color: #374151;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .menu-toggle {
        display: block;
    }

    .header-search {
        max-width: 200px;
    }

    .content {
        padding: 20px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .filters-row {
        grid-template-columns: 1fr;
    }

    .pagination button {
        font-size: 13px;
        padding: 6px 10px;
        min-width: 36px;
        height: 36px;
    }

    .pagination button:has(i) {
        padding: 6px 12px;
    }

    .pagination-info {
        font-size: 12px;
    }
}

/* Action buttons in tables */
.action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.action-buttons .btn {
    padding: 8px 16px;
    font-size: 13px;
}

/* Status indicators */
.status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.active {
    background-color: #50C878;
}

.status-dot.inactive {
    background-color: #95A5A6;
}

.status-dot.pending {
    background-color: #FFA726;
}

/* Signature pad */
.signature-pad {
    border: 2px dashed var(--gray-light);
    border-radius: var(--border-radius);
    margin-top: 10px;
    cursor: crosshair;
}

/* Progress bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background-color: var(--gray-light);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 8px;
}

.progress-fill {
    height: 100%;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

/* Tabs - Clean Professional Style */
.tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid #E5E7EB;
    margin-bottom: 0;
    padding: 0 24px;
    background: white;
    align-items: center;
}

.tab {
    padding: 16px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: #6B7280;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    position: relative;
    font-size: 15px;
    white-space: nowrap;
}

.tab:hover {
    color: #1F2937;
    background-color: #F9FAFB;
}

.tab.active {
    color: #0C4A6E;
    border-bottom-color: #0C4A6E;
    background: none;
}

.tab-content {
    display: none;
    animation: fadeIn 0.2s ease;
    padding: 24px;
}

.tab-content.active {
    display: block;
}

/* ============================================
   🎯 RESPONSIVE DESIGN - Ultra Modern
   ============================================ */

/* Large Desktops (1920px+) */
@media (min-width: 1920px) {
    .content {
        max-width: var(--content-max-width);
        margin: 0 auto;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

/* Desktop (1200px - 1919px) */
@media (max-width: 1919px) and (min-width: 1200px) {
    :root {
        --sidebar-width: 200px;
    }
}

/* Large Tablets & Small Desktops (992px - 1199px) */
@media (max-width: 1199px) {
    :root {
        --sidebar-width: 200px;
        --header-height: 68px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 16px;
    }
    
    .stat-card {
        padding: 24px;
    }
    
    .stat-icon {
        width: 56px;
        height: 56px;
        font-size: 24px;
    }
    
    .stat-content h3 {
        font-size: 32px;
    }
}

/* Tablets (768px - 991px) */
@media (max-width: 991px) {
    :root {
        --sidebar-width: 200px;
        --header-height: 64px;
    }
    
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
        box-shadow: 4px 0 32px rgba(0, 0, 0, 0.15);
    }
    
    .main-content {
        margin-left: 0 !important;
    }
    
    .menu-toggle {
        display: block !important;
    }
    
    .header-search {
        max-width: 300px;
    }
    
    .user-info span {
        display: none;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .filters-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    table {
        min-width: 600px;
    }
    
    .modal-content {
        width: 90% !important;
        max-width: 600px !important;
        padding: 24px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Mobile Landscape (576px - 767px) */
@media (max-width: 767px) {
    :root {
        --header-height: 60px;
        --border-radius: 10px;
        --border-radius-lg: 12px;
    }
    
    .header {
        padding: 0 16px;
        gap: 12px;
    }
    
    .header-search {
        max-width: 200px;
    }
    
    .header-search input {
        padding: 8px 32px 8px 12px;
        font-size: 13px;
    }
    
    .header-actions {
        gap: 8px;
    }
    
    .icon-btn {
        padding: 6px;
        font-size: 16px;
    }
    
    .content {
        padding: 20px 16px;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 16px;
    }
    
    .page-header h1 {
        font-size: 22px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .stat-card {
        padding: 20px;
        gap: 16px;
    }
    
    .stat-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
    
    .stat-content h3 {
        font-size: 28px;
    }
    
    .stat-content p {
        font-size: 12px;
    }
    
    .card {
        padding: 20px;
        border-radius: var(--border-radius);
    }
    
    .filters {
        padding: 16px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .btn i {
        font-size: 14px;
    }
    
    th, td {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .modal-content {
        width: 95% !important;
        max-width: 100% !important;
        padding: 20px;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .modal-header h2 {
        font-size: 20px;
    }
    
    .modal-footer {
        flex-direction: column;
        gap: 12px;
    }
    
    .modal-footer .btn {
        width: 100%;
    }
    
    .toast {
        min-width: auto;
        max-width: calc(100% - 32px);
        right: 16px;
        left: 16px;
    }
}

/* Mobile Portrait (320px - 575px) */
@media (max-width: 575px) {
    :root {
        --sidebar-width: 200px;
    }
    
    .sidebar-header h2 {
        font-size: 18px;
    }
    
    .menu-item {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .menu-item i {
        font-size: 16px;
    }
    
    .header-search {
        display: none;
    }
    
    .page-header h1 {
        font-size: 20px;
    }
    
    .stat-card {
        flex-direction: row;
        gap: 16px;
    }
    
    .stat-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    
    .stat-content h3 {
        font-size: 24px;
    }
    
    .form-group label {
        font-size: 13px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 14px;
    }
    
    .badge {
        padding: 4px 10px;
        font-size: 11px;
    }
    
    .action-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .action-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Extra Small Devices (< 360px) */
@media (max-width: 359px) {
    .header {
        padding: 0 12px;
    }
    
    .content {
        padding: 16px 12px;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .stat-content h3 {
        font-size: 22px;
    }
    
    .card {
        padding: 16px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
    }
    
    .menu-item {
        min-height: 48px;
    }
    
    .icon-btn {
        min-width: 44px;
        min-height: 44px;
    }
    
    input, select, textarea {
        font-size: 16px !important; /* Prevent zoom on iOS */
    }
}

/* Dark Mode Support (Future Ready) */
@media (prefers-color-scheme: dark) {
    /* Dark mode will be implemented here */
}

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

/* Print Styles */
@media print {
    .sidebar,
    .header,
    .btn,
    .modal,
    .toast,
    .loading-spinner {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
    }
    
    .card,
    .stat-card {
        box-shadow: none !important;
        border: 1px solid #E0E0E0 !important;
        break-inside: avoid;
    }
}

/* ============================================
   ✨ PREMIUM ENHANCEMENTS
   ============================================ */

/* Tooltips */
[data-tooltip] {
    position: relative;
    cursor: pointer;
}

[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    padding: 8px 12px;
    background-color: var(--dark);
    color: var(--white);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-base);
    z-index: var(--z-tooltip);
}

[data-tooltip]::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-2px);
    border: 6px solid transparent;
    border-top-color: var(--dark);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-base);
    z-index: var(--z-tooltip);
}

[data-tooltip]:hover::before,
[data-tooltip]:hover::after {
    opacity: 1;
}

/* Focus Visible for Accessibility */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 4px;
}

button:focus-visible,
.btn:focus-visible {
    outline-offset: 4px;
}

/* Better Input Focus States */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1) !important;
}

/* Scrollbar Enhancements */
.card::-webkit-scrollbar,
.modal-body > div::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.card::-webkit-scrollbar-track,
.modal-body > div::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 10px;
    margin: 4px;
}

.card::-webkit-scrollbar-thumb,
.modal-body > div::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.card::-webkit-scrollbar-thumb:hover,
.modal-body > div::-webkit-scrollbar-thumb:hover {
    background-color: var(--primary-color);
    border: 2px solid transparent;
    background-clip: padding-box;
}

/* Firefox scrollbar */
.modal-body > div {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.15) rgba(0, 0, 0, 0.03);
}

/* HCP Profile Modal Scrollbar - Premium Style Ultra Discret */
.modal[data-modal-type="hcp-profile"] .modal-content::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.modal[data-modal-type="hcp-profile"] .modal-content::-webkit-scrollbar-track {
    background: transparent;
    margin: 8px 0;
}

.modal[data-modal-type="hcp-profile"] .modal-content::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.3);
    border-radius: 20px;
    border: 2px solid transparent;
    background-clip: padding-box;
    transition: all 0.2s ease;
}

.modal[data-modal-type="hcp-profile"] .modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 116, 139, 0.5);
    border-radius: 20px;
}

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

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    animation: fadeInUp 0.5s ease-out;
}

.empty-state-icon {
    font-size: 64px;
    color: var(--gray-light);
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.empty-state-text {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 24px;
}

/* Card Hover Enhancements */
.card-interactive {
    cursor: pointer;
    transition: all var(--transition-base);
}

.card-interactive:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-interactive:active {
    transform: translateY(-2px);
}

/* Badge Enhancements */
.badge {
    transition: all var(--transition-base);
}

.badge:hover {
    transform: scale(1.05);
}

/* Progress Bar Enhancements */
.progress-bar {
    height: 6px;
    background-color: var(--gray-lightest);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 3px;
    transition: width var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%);
    animation: shimmer 2s infinite;
}

/* Table Enhancements */
tbody tr {
    transition: all var(--transition-fast);
}

tbody tr:hover td {
    background-color: rgba(74, 144, 226, 0.02);
}

/* Modal Backdrop Enhancement */
.modal {
    backdrop-filter: var(--blur-sm);
    -webkit-backdrop-filter: var(--blur-sm);
}

/* Floating Action Button (FAB) */
.fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    border: none;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all var(--transition-base);
    z-index: var(--z-fixed);
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

.fab:active {
    transform: scale(1.05);
}

/* Notification Dot */
.notification-dot {
    width: 8px;
    height: 8px;
    background-color: var(--danger-color);
    border-radius: 50%;
    border: 2px solid white;
    animation: pulse 2s infinite;
}

/* Divider with Text */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--gray);
    margin: 24px 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--gray-light);
}

.divider span {
    padding: 0 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Chip/Tag Component */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background-color: var(--gray-lightest);
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--dark);
    transition: all var(--transition-base);
}

.chip:hover {
    background-color: var(--gray-lighter);
    transform: scale(1.05);
}

.chip-remove {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    cursor: pointer;
    font-size: 10px;
    transition: all var(--transition-base);
}

.chip-remove:hover {
    background-color: var(--danger-color);
    color: white;
}

/* Avatar Component */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    overflow: hidden;
}

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

.avatar-sm { width: 32px; height: 32px; font-size: 12px; }
.avatar-lg { width: 56px; height: 56px; font-size: 18px; }
.avatar-xl { width: 72px; height: 72px; font-size: 24px; }

/* Skeleton Pulse Animation Enhancement */
@keyframes skeleton-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.skeleton-pulse {
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

/* HCP Profile Card Enhancements */
.hcp-info-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hcp-info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08) !important;
}

/* HCP Profile Modal - Body padding */
.modal[data-modal-type="hcp-profile"] .modal-body {
    padding: 0 !important;
}

/* Opt-in Details Modal - Disable modal-content scroll to avoid double scrollbar */
.modal-content {
    overflow-y: visible;
}

.modal-content .modal-body {
    overflow-y: visible;
}

/* ============================================
   🔐 AUTH CONTAINER - Login Page (Style Memento Pharma)
   ============================================ */

.auth-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    z-index: 10000;
}

.auth-container.hidden {
    display: none;
}

/* Left Panel - Welcome Section */
.auth-left-panel {
    flex: 1;
    background: linear-gradient(160deg, #0b1a2e 0%, #143a6b 50%, #1e5a9e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(147, 197, 253, 0.7);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
    box-shadow: 0 0 6px rgba(147, 197, 253, 0.5);
}

.particle:nth-child(odd) {
    background: rgba(96, 165, 250, 0.5);
    width: 2px;
    height: 2px;
    animation-duration: 25s;
}

.particle:nth-child(3n) {
    width: 4px;
    height: 4px;
    background: rgba(191, 219, 254, 0.6);
    box-shadow: 0 0 10px rgba(191, 219, 254, 0.4);
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0);
        opacity: 0.4;
    }
    25% {
        transform: translate(15px, -25px);
        opacity: 0.8;
    }
    50% {
        transform: translate(-10px, -50px);
        opacity: 0.5;
    }
    75% {
        transform: translate(25px, -35px);
        opacity: 0.7;
    }
}

.auth-welcome-content {
    text-align: center;
    z-index: 2;
    padding: 2rem;
}

.auth-logo {
    height: 65px;
    width: auto;
    margin-bottom: 0.75rem;
}

.welcome-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.2), rgba(37, 99, 235, 0.1));
    border: 2px solid rgba(96, 165, 250, 0.5);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2.5rem;
    animation: pulse-glow 4s ease-in-out infinite;
    backdrop-filter: blur(10px);
}

.welcome-icon i {
    font-size: 2.5rem;
    color: #93c5fd;
    text-shadow: 0 0 20px rgba(147, 197, 253, 0.5);
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 30px rgba(59, 130, 246, 0.15), inset 0 0 20px rgba(59, 130, 246, 0.05);
        border-color: rgba(96, 165, 250, 0.4);
    }
    50% {
        box-shadow: 0 0 50px rgba(59, 130, 246, 0.3), inset 0 0 30px rgba(59, 130, 246, 0.1);
        border-color: rgba(96, 165, 250, 0.7);
    }
}

.welcome-title {
    font-size: 2.75rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1.25;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.welcome-title span {
    color: #60a5fa;
    display: block;
    background: linear-gradient(90deg, #60a5fa, #93c5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.8;
    font-weight: 400;
    max-width: 320px;
    margin: 0 auto;
}

/* Right Panel - Form Section */
.auth-right-panel {
    flex: 0 0 48%;
    max-width: 600px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 4rem;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.08);
}

.auth-form-container {
    width: 100%;
    max-width: 420px;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.logo-updata {
    color: #2563eb;
}

.logo-consulting {
    color: #1e3a5f;
    font-weight: 500;
}

.auth-subtitle {
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 0.5rem;
}

.auth-description {
    color: #475569;
    font-size: 1.05rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 400;
}

.form-hint {
    color: #94a3b8;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.auth-view {
    display: none;
}

.auth-view.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

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

.auth-form {
    margin-bottom: 1.5rem;
}

.auth-form .form-group {
    margin-bottom: 1.25rem;
}

.auth-form label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.auth-form label i {
    color: #9ca3af;
    font-size: 0.85rem;
}

.auth-form input {
    width: 100%;
    padding: 0.95rem 1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    background-color: #f8fafc;
    color: #1e293b;
}

.auth-form input::placeholder {
    color: #94a3b8;
}

.auth-form input:hover {
    border-color: #cbd5e1;
    background-color: #f1f5f9;
}

.auth-form input:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
    background-color: #ffffff;
}

/* Password field with toggle */
.password-input-wrapper {
    position: relative;
}

.password-input-wrapper input {
    padding-right: 3rem;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
}

.toggle-password:hover {
    color: #3b82f6;
}

.auth-form .btn-block {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1.75rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.35);
    letter-spacing: 0.3px;
}

.auth-form .btn-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.45);
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
}

.auth-form .btn-block:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.auth-links {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 1.5rem;
}

.auth-links a {
    color: #3b82f6;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-links a:hover {
    color: #2563eb;
}

/* Auth Responsive */
@media (max-width: 1024px) {
    .auth-right-panel {
        flex: 0 0 50%;
        padding: 2.5rem;
    }
    
    .welcome-title {
        font-size: 2.25rem;
    }
}

@media (max-width: 900px) {
    .auth-container {
        flex-direction: column;
    }
    
    .auth-left-panel {
        flex: 0 0 auto;
        min-height: 320px;
        padding: 2rem;
    }
    
    .auth-right-panel {
        flex: 1;
        max-width: 100%;
        padding: 2.5rem;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.08);
    }
    
    .auth-form-container {
        max-width: 400px;
    }
    
    .welcome-title {
        font-size: 2rem;
    }
    
    .welcome-subtitle {
        font-size: 0.95rem;
    }
    
    .welcome-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 1.5rem;
    }
    
    .welcome-icon i {
        font-size: 2rem;
    }
    
}

@media (max-width: 600px) {
    .auth-left-panel {
        min-height: 260px;
        padding: 1.5rem;
    }
    
    .auth-right-panel {
        padding: 2rem 1.5rem;
    }
    
    .auth-form-container {
        max-width: 100%;
    }
    
    .welcome-title {
        font-size: 1.75rem;
    }
    
    .welcome-subtitle {
        font-size: 0.9rem;
        max-width: 280px;
    }
    
    .welcome-icon {
        width: 60px;
        height: 60px;
        border-radius: 14px;
    }
    
    .welcome-icon i {
        font-size: 1.75rem;
    }
    
    .auth-logo {
        height: 55px;
    }
    
    .auth-description {
        font-size: 0.95rem;
    }
}

@media (max-width: 400px) {
    .auth-left-panel {
        min-height: 220px;
        padding: 1.25rem;
    }
    
    .auth-right-panel {
        padding: 1.5rem 1.25rem;
    }
    
    .welcome-title {
        font-size: 1.5rem;
    }
    
    .welcome-subtitle {
        font-size: 0.85rem;
        line-height: 1.6;
    }
    
    .welcome-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 1rem;
    }
    
    .welcome-icon i {
        font-size: 1.5rem;
    }
    
    .auth-logo {
        height: 45px;
    }
    
    .auth-subtitle {
        font-size: 0.65rem;
        letter-spacing: 2px;
    }
    
    .auth-form input {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .auth-form .btn-block {
        padding: 0.8rem;
        font-size: 0.95rem;
    }
}

/* ============================================
   👥 USERS MANAGEMENT PAGE
   ============================================ */

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.page-header-content h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.page-header-content h1 i {
    color: #3b82f6;
    margin-right: 10px;
}

.page-subtitle {
    color: #64748b;
    font-size: 0.95rem;
}

.page-header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.page-header-actions select.btn {
    appearance: none;
    background-color: #f1f5f9;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    color: #1e293b;
    border: 1px solid #e2e8f0;
}

.page-header-actions select.btn:hover {
    background-color: #e2e8f0;
}

.page-header-actions select.btn:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.page-header-actions .btn-outline {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f0f9ff;
    border-color: #bae6fd;
    color: #0369a1;
}

/* Users Table Specific Styles */
#usersTable {
    table-layout: fixed;
    width: 100%;
    border: none;
}

#usersTable th {
    text-align: center;
    padding: 14px 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

#usersTable th:nth-child(1) { width: 15%; } /* Utilisateur */
#usersTable th:nth-child(2) { width: 22%; } /* Email */
#usersTable th:nth-child(3) { width: 11%; } /* Rôle */
#usersTable th:nth-child(4) { width: 10%; } /* BU */
#usersTable th:nth-child(5) { width: 10%; } /* Statut */
#usersTable th:nth-child(6) { width: 16%; } /* Dernière connexion */
#usersTable th:nth-child(7) { width: 16%; } /* Actions */

#usersTable td {
    vertical-align: middle;
    padding: 12px;
    border-bottom: 1px solid #f1f5f9;
    text-align: center;
}

#usersTable td:nth-child(2) {
    word-break: break-all;
    font-size: 13px;
    color: #64748b;
}

#usersTable tbody tr:hover {
    background-color: #f8fafc;
}

/* User name cell without avatar */
.user-name-cell {
    font-weight: 500;
    color: #1e293b;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.super-icon {
    color: #f59e0b;
    font-size: 11px;
}

/* User Cell in Table */
.user-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.user-avatar-sm {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 12px;
    flex-shrink: 0;
}

.user-avatar-md {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.user-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.super-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 5px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    font-size: 9px;
    font-weight: 700;
    border-radius: 3px;
    text-transform: uppercase;
    flex-shrink: 0;
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.status-badge i {
    font-size: 5px;
}

.status-active {
    background: #dcfce7;
    color: #15803d;
}

.status-inactive {
    background: #fee2e2;
    color: #b91c1c;
}

/* Filters Row */
.filters-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

/* Multiselect Dropdown */
.multiselect-dropdown {
    position: relative;
    width: 100%;
}

.multiselect-display {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #DADCE0;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    color: #1e293b;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.multiselect-display:hover {
    border-color: #4A90E2;
}

.multiselect-dropdown.open .multiselect-display {
    border-color: #4A90E2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.multiselect-display i {
    font-size: 12px;
    color: #64748b;
    transition: transform 0.2s;
}

.multiselect-dropdown.open .multiselect-display i {
    transform: rotate(180deg);
}

.multiselect-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.multiselect-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #DADCE0;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-top: 4px;
    z-index: 1000;
    max-height: 280px;
    overflow-y: auto;
    display: none;
}

.multiselect-dropdown.open .multiselect-options {
    display: block;
}

.multiselect-group-label {
    padding: 8px 12px 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #64748b;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.multiselect-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    cursor: pointer;
    transition: background 0.15s;
    font-size: 14px;
    color: #1e293b;
}

.multiselect-option:hover {
    background: #f1f5f9;
}

.multiselect-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #3b82f6;
    cursor: pointer;
    flex-shrink: 0;
}

.multiselect-option span {
    flex: 1;
}

/* Modal Overlay */
.qualif-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Attribution Delegate Modal - New Design */
.assign-modal-new {
    background: white;
    border-radius: 20px;
    width: 480px;
    max-width: 95vw;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.assign-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
}

.assign-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.assign-header-new {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 28px 24px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
    color: white;
}

.assign-header-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.assign-header-text h2 {
    margin: 0 0 6px 0;
    font-size: 22px;
    font-weight: 700;
}

.assign-parcours-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.assign-body-new {
    padding: 24px;
}

.assign-hcp-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    margin-bottom: 20px;
    position: relative;
}

.assign-hcp-avatar {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.assign-hcp-info-new {
    flex: 1;
    min-width: 0;
}

.assign-hcp-name-new {
    font-weight: 600;
    font-size: 16px;
    color: #1e293b;
    margin-bottom: 4px;
}

.assign-hcp-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: #64748b;
}

.assign-hcp-meta i {
    margin-right: 4px;
    color: #94a3b8;
}

.assign-current-badge {
    position: absolute;
    top: -8px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.assign-select-section {
    margin-bottom: 8px;
}

.assign-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 10px;
}

.assign-label i {
    color: #3b82f6;
}

.assign-select-wrapper {
    position: relative;
}

.assign-select {
    width: 100%;
    padding: 14px 40px 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    color: #1e293b;
    background: white;
    cursor: pointer;
    appearance: none;
    transition: all 0.2s;
}

.assign-select:hover {
    border-color: #93c5fd;
}

.assign-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.assign-select-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #3b82f6;
    pointer-events: none;
}

.assign-select optgroup {
    font-weight: 600;
    color: #3b82f6;
    padding: 8px 0;
}

.assign-select option {
    font-weight: normal;
    color: #1e293b;
    padding: 8px;
}

.assign-warning-new {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding: 12px 14px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 10px;
    font-size: 13px;
    color: #92400e;
}

.assign-warning-new i {
    color: #f59e0b;
    font-size: 16px;
}

.assign-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 12px;
    color: #64748b;
}

.assign-hint i {
    color: #94a3b8;
}

.assign-footer-new {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px 20px;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
}

.assign-btn-cancel {
    padding: 12px 24px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: white;
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.assign-btn-cancel:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.assign-btn-confirm {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.assign-btn-confirm:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.assign-btn-confirm:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Autres délégués (informatif) */
.assign-other-delegates {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed #e5e7eb;
}

.assign-other-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 500;
    color: #94a3b8;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.assign-other-title i {
    font-size: 11px;
}

.assign-other-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.assign-other-item {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: #f1f5f9;
    border-radius: 20px;
    font-size: 12px;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

/* Liste des attributions par parcours */
.assign-parcours-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.assign-parcours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.assign-parcours-item.current {
    background: #eff6ff;
    border-color: #3b82f6;
}

.assign-parcours-name {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}

.assign-parcours-item.current .assign-parcours-name {
    color: #1d4ed8;
}

.assign-parcours-delegate {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
}

.assign-parcours-delegate.assigned {
    background: #dcfce7;
    color: #166534;
}

.assign-parcours-delegate.assigned i {
    color: #22c55e;
}

.assign-parcours-delegate.not-assigned {
    background: #f1f5f9;
    color: #94a3b8;
}

.assign-parcours-delegate.not-assigned i {
    color: #cbd5e1;
}

/* Button style when delegate is assigned */
.btn-icon-assigned {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: white !important;
}

.btn-icon-assigned:hover {
    background: linear-gradient(135deg, #059669, #047857) !important;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-group label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group label i {
    margin-right: 4px;
}

.filter-group input,
.filter-group select {
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    background: #f8fafc;
    transition: all 0.2s ease;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #3b82f6;
    background: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Action Buttons in Table */
.action-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
}

/* Action Buttons with Tooltips */
.btn-action {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: relative;
    font-size: 14px;
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Tooltip */
.btn-action[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 12px;
    background: #1e293b;
    color: white;
    font-size: 12px;
    font-weight: 500;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    margin-bottom: 8px;
    z-index: 1000;
}

.btn-action[data-tooltip]::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1e293b;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    margin-bottom: -4px;
    z-index: 1000;
}

.btn-action:hover[data-tooltip]::after,
.btn-action:hover[data-tooltip]::before {
    opacity: 1;
    visibility: visible;
}

/* Edit Button - Blue */
.btn-action-edit {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #2563eb;
}

.btn-action-edit:hover {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1d4ed8;
}

/* BU Button - Purple */
.btn-action-bu {
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
    color: #7c3aed;
}

.btn-action-bu:hover {
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
    color: #6d28d9;
}

/* Deactivate Button - Orange/Red */
.btn-action-deactivate {
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    color: #ea580c;
}

.btn-action-deactivate:hover {
    background: linear-gradient(135deg, #ffedd5, #fed7aa);
    color: #c2410c;
}

/* Activate Button - Green */
.btn-action-activate {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    color: #16a34a;
}

.btn-action-activate:hover {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #15803d;
}

.btn-icon {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 6px;
    background: #f1f5f9;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 13px;
}

.btn-icon:hover {
    background: #e2e8f0;
    color: #3b82f6;
    transform: scale(1.05);
}

.btn-icon.btn-danger:hover {
    background: #fee2e2;
    color: #dc2626;
}

.btn-icon.btn-success:hover {
    background: #dcfce7;
    color: #16a34a;
}

/* Role badges for Users Table */
.role-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.role-admin {
    background: #dbeafe;
    color: #1d4ed8;
}

.role-manager {
    background: #fef3c7;
    color: #b45309;
}

.role-delegate {
    background: #f3e8ff;
    color: #7c3aed;
}

.role-regulatory {
    background: #dcfce7;
    color: #15803d;
}

.role-default {
    background: #f1f5f9;
    color: #64748b;
}

/* Form Sections */
.form-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-section {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
}

.form-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-section h4 i {
    color: #3b82f6;
}

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

.form-hint {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 4px;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #3b82f6;
}

.checkbox-label.small {
    font-size: 12px;
}

.required {
    color: #ef4444;
}

/* User Labos Manager */
.user-labos-manager {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.manager-header {
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.user-summary {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-summary h4 {
    margin: 0;
    font-size: 16px;
    color: #1e293b;
}

.user-summary p {
    margin: 0;
    font-size: 14px;
    color: #64748b;
}

.labos-list h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.labos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.labo-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    transition: all 0.2s ease;
}

.labo-card.assigned {
    background: #eff6ff;
    border-color: #93c5fd;
}

.labo-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.labo-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.labo-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 6px;
    color: white;
    font-size: 11px;
    font-weight: 700;
}

.labo-parcours {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}

.labo-parcours small {
    display: block;
    font-size: 11px;
    color: #64748b;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.parcours-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #475569;
    margin-bottom: 6px;
    cursor: pointer;
}

.labo-options {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}

/* Tags */
.tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 7px;
    background: #e2e8f0;
    color: #475569;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-right: 4px;
    margin-bottom: 2px;
}

.tag-sm {
    padding: 2px 5px;
    font-size: 10px;
}

.text-muted {
    color: #94a3b8;
    font-size: 12px;
    font-style: italic;
}

/* Empty & Loading cells */
.empty-cell,
.loading-cell {
    text-align: center;
    padding: 60px 20px !important;
    color: #94a3b8;
}

.empty-cell i,
.loading-cell i {
    display: block;
    margin-bottom: 12px;
}

/* Admin only menu items - hidden by default */
.admin-only {
    display: none;
}

/* Show admin menu items for admins */
body.is-admin .admin-only,
body.is-super-user .admin-only {
    display: flex;
}

/* Map container responsive */
@media (max-width: 768px) {
    .hcp-map-container {
        grid-template-columns: 1fr !important;
    }
    
    .hcp-info-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Smooth link hover */
a[href*="maps"] {
    transition: all 0.3s ease;
}

a[href*="maps"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4) !important;
}

/* Badge animations */
@keyframes badge-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

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

@keyframes pulse {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.9;
        transform: scale(1.03);
    }
}

/* Filter Tabs Styles */
.filter-tab {
    position: relative;
}

.filter-tab:hover:not(.active) {
    background-color: rgba(37, 99, 235, 0.05) !important;
    color: #3B82F6 !important;
}

.filter-tab.active {
    color: #2563EB !important;
    background: white !important;
    border-bottom: 3px solid #2563EB !important;
}

.filter-tab-content {
    animation: fadeInTab 0.3s ease-in-out;
    overflow: visible !important;
    border-radius: 0 0 8px 8px;
}

.filter-tab-content .form-group {
    position: relative;
    overflow: visible !important;
}

.filters {
    overflow: visible !important;
}

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

/* OpenStreetMap Address Autocomplete Styling */
.address-autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 300px;
    overflow-y: auto;
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-top: 4px;
    z-index: 9999;
    display: none;
    font-family: 'Inter', sans-serif;
}

.address-option {
    padding: 12px 14px;
    cursor: pointer;
    border-bottom: 1px solid #F3F4F6;
    transition: background-color 0.2s ease;
}

.address-option:last-child {
    border-bottom: none;
}

.address-option:hover {
    background-color: #F3F4F6;
}

.address-option .address-name {
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 2px;
}

.address-option .address-full {
    font-size: 12px;
    color: #6B7280;
}

/* Scrollbar pour le dropdown */
.address-autocomplete-dropdown::-webkit-scrollbar {
    width: 8px;
}

.address-autocomplete-dropdown::-webkit-scrollbar-track {
    background: #F9FAFB;
    border-radius: 8px;
}

.address-autocomplete-dropdown::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 8px;
}

.address-autocomplete-dropdown::-webkit-scrollbar-thumb:hover {
    background: #9CA3AF;
}

/* Custom Scrollbar for Large Modals (Congres & HCP) */
.modal-content[data-congres-details="true"]::-webkit-scrollbar,
.modal-content[data-hcp-profile="true"]::-webkit-scrollbar {
    width: 8px;
}

.modal-content[data-congres-details="true"]::-webkit-scrollbar-track,
.modal-content[data-hcp-profile="true"]::-webkit-scrollbar-track {
    background: transparent;
    margin: 15px 5px;
}

.modal-content[data-congres-details="true"]::-webkit-scrollbar-thumb,
.modal-content[data-hcp-profile="true"]::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

.modal-content[data-congres-details="true"]::-webkit-scrollbar-thumb:hover,
.modal-content[data-hcp-profile="true"]::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    box-shadow: 0 3px 8px rgba(118, 75, 162, 0.4);
}

.modal-content[data-congres-details="true"]::-webkit-scrollbar-thumb:active,
.modal-content[data-hcp-profile="true"]::-webkit-scrollbar-thumb:active {
    background: linear-gradient(135deg, #5B4BA2 0%, #567ACA 100%);
}

/* Scrollbar for Firefox */
.modal-content[data-congres-details="true"],
.modal-content[data-hcp-profile="true"] {
    scrollbar-width: thin;
    scrollbar-color: #667eea transparent;
    scrollbar-gutter: stable;
}

/* General Application Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #F1F3F4;
    border-radius: 8px;
}

::-webkit-scrollbar-thumb {
    background: #80868B;
    border-radius: 8px;
    border: 2px solid #F1F3F4;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #5F6368;
}

::-webkit-scrollbar-corner {
    background: #F1F3F4;
}

/* Leaflet Custom Markers */
.custom-div-icon {
    background: transparent !important;
    border: none !important;
}

/* Leaflet Popup Styling */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.leaflet-popup-content {
    margin: 12px 14px;
    font-family: 'Inter', sans-serif;
}

.leaflet-popup-tip {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Leaflet controls */
.leaflet-control-zoom {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.leaflet-control-zoom a {
    border-radius: 0 !important;
    font-size: 18px;
    font-weight: 600;
}

.leaflet-control-attribution {
    font-size: 10px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
}

/* Scroll visible pour la liste des adresses HCP */
.hcp-address-list-scroll {
    /* Firefox */
    scrollbar-width: thin;
    scrollbar-color: #9CA3AF #E5E7EB;
}

.hcp-address-list-scroll::-webkit-scrollbar {
    width: 8px;
}

.hcp-address-list-scroll::-webkit-scrollbar-track {
    background: #E5E7EB;
    border-radius: 4px;
}

.hcp-address-list-scroll::-webkit-scrollbar-thumb {
    background: #9CA3AF;
    border-radius: 4px;
}

.hcp-address-list-scroll::-webkit-scrollbar-thumb:hover {
    background: #6B7280;
}



/* =====================================================
   PROFILE PAGE STYLES
   ===================================================== */
.profile-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 24px;
    max-width: 1200px;
}

.profile-sidebar {
    position: sticky;
    top: 24px;
    height: fit-content;
}

.profile-avatar-large {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    font-size: 36px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

.profile-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.info-item {
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.info-label {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.info-value {
    display: block;
    font-size: 0.95rem;
    color: #1e293b;
    font-weight: 500;
}

/* Profile Info List */
.profile-info-list {
    display: flex;
    flex-direction: column;
}

.profile-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.profile-info-row:last-child {
    border-bottom: none;
}

.profile-info-label {
    font-size: 0.85rem;
    color: #64748b;
}

.profile-info-value {
    font-size: 0.9rem;
    color: #1e293b;
    font-weight: 500;
    text-align: right;
}

/* Ancien styles (compatibilité) */
.profile-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
    max-width: 1200px;
}

.profile-card {
    position: sticky;
    top: 24px;
    height: fit-content;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    font-size: 42px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    box-shadow: var(--shadow-primary);
}

.profile-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.detail-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-light);
}

.detail-label {
    display: block;
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail-value {
    display: block;
    font-size: 1rem;
    color: var(--dark);
    font-weight: 500;
}

/* Super Admin Card */
.super-admin-card {
    border: 2px solid #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.super-admin-header {
    background: linear-gradient(135deg, #fde68a 0%, #fcd34d 100%) !important;
    border-bottom: 1px solid #f59e0b;
}

.super-admin-header .card-title {
    color: #92400e !important;
}

.super-admin-info {
    color: #78350f;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.super-admin-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 8px;
}

.labo-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: var(--border-radius);
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: var(--transition-base);
}

.labo-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.15);
}

.current-labo-display {
    margin-top: 16px;
}

.labo-badge-large {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-radius: var(--border-radius);
    color: white;
    font-weight: 600;
}

.labo-badge-large .code {
    background: rgba(255,255,255,0.2);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.labo-badge-large .name {
    font-size: 1rem;
}

.labo-badge-large.all-labos {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.labo-badge-large.all-labos i {
    font-size: 1.25rem;
}

/* Role Badges */
.role-super-admin {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: white !important;
}

.role-default {
    background: #e5e7eb;
    color: #6b7280;
}

/* Responsive Profile */
@media (max-width: 900px) {
    .profile-container,
    .profile-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-sidebar,
    .profile-card {
        position: static;
    }
    
    .info-grid,
    .profile-details {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   LOCKED PAGE STYLES
   ===================================================== */
.locked-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 40px;
}

.locked-content {
    text-align: center;
    max-width: 500px;
}

.locked-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.locked-icon i {
    font-size: 48px;
    color: #94a3b8;
}

.locked-content h2 {
    font-size: 1.75rem;
    color: var(--dark);
    margin-bottom: 12px;
}

.locked-content p {
    font-size: 1rem;
    color: var(--gray);
    line-height: 1.6;
}

.locked-content .btn {
    margin-top: 24px;
}

/* =====================================================
   PERMISSIONS PAGE - PROFESSIONAL DESIGN
   ===================================================== */

/* Permission hidden items in sidebar */
.permission-hidden {
    display: none !important;
}

/* Permission Level Badge */

/* Main Panel */
.perm-panel {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.8);
    overflow: hidden;
}

/* Loading */
.perm-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    gap: 16px;
}

.perm-loading p {
    color: #64748b;
    font-size: 14px;
}

.loading-dots {
    display: flex;
    gap: 6px;
}

.loading-dots span {
    width: 10px;
    height: 10px;
    background: #3b82f6;
    border-radius: 50%;
    animation: loadingDot 1.4s ease-in-out infinite;
}

.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes loadingDot {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

/* Grid Layout */
.perm-grid {
    display: flex;
    flex-direction: column;
}

.perm-grid-header {
    display: grid;
    grid-template-columns: 1fr repeat(4, 110px);
    padding: 18px 24px;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.perm-col-module .col-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #64748b;
}

.perm-col-role {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
}

.role-chip {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--role-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.perm-col-role:hover .role-chip {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px -2px rgba(0, 0, 0, 0.25);
}

.role-label {
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-lock {
    position: absolute;
    top: -4px;
    right: 28px;
    font-size: 9px;
    color: #f59e0b;
    background: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Grid Body */
.perm-grid-body {
    display: flex;
    flex-direction: column;
}

/* Section */
.perm-section {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 8%, white), white);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
}

.perm-section .section-marker {
    width: 4px;
    height: 24px;
    background: var(--accent);
    border-radius: 2px;
    margin-left: -24px;
    margin-right: 14px;
}

.perm-section i {
    font-size: 14px;
    opacity: 0.8;
}

/* Item Row */
.perm-item {
    display: grid;
    grid-template-columns: 1fr repeat(4, 110px);
    padding: 16px 24px;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s ease;
    animation: itemFadeIn 0.3s ease forwards;
    animation-delay: var(--delay, 0ms);
    opacity: 0;
}

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

.perm-item:hover {
    background: #fafbfc;
}

.perm-item.is-inherited {
    background: linear-gradient(90deg, rgba(148, 163, 184, 0.04), transparent);
}

.perm-item-module {
    display: flex;
    align-items: center;
    gap: 14px;
}

.module-badge {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--color) 12%, white);
    color: var(--color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: transform 0.2s ease;
}

.perm-item:hover .module-badge {
    transform: scale(1.05);
}

.module-label {
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
}

.inherit-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 10px;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 600;
    color: #94a3b8;
    background: #f1f5f9;
    border-radius: 6px;
}

.inherit-tag i {
    font-size: 9px;
}

/* Toggle Cell */
.perm-item-toggle {
    display: flex;
    justify-content: center;
}

/* Modern Toggle Button */
.toggle-btn {
    position: relative;
    width: 56px;
    height: 30px;
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    border-radius: 15px;
    transition: transform 0.1s ease;
}

.toggle-btn:active:not(.locked) {
    transform: scale(0.95);
}

.toggle-btn .toggle-track {
    position: absolute;
    inset: 0;
    background: #e2e8f0;
    border-radius: 15px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.toggle-btn .toggle-knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Off State */
.toggle-btn.off .toggle-track {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
}

.toggle-btn.off:hover:not(.locked) .toggle-track {
    background: linear-gradient(135deg, #cbd5e1, #94a3b8);
}

/* On State */
.toggle-btn.on .toggle-track {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    box-shadow: 0 0 20px -4px rgba(34, 197, 94, 0.5);
}

.toggle-btn.on .toggle-knob {
    left: calc(100% - 27px);
    color: #16a34a;
}

.toggle-btn.on:hover:not(.locked) .toggle-track {
    background: linear-gradient(135deg, #16a34a, #15803d);
}

/* Locked State */
.toggle-btn.locked {
    cursor: not-allowed;
}

.toggle-btn.locked.on .toggle-track {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    box-shadow: 0 0 20px -4px rgba(251, 191, 36, 0.5);
}

.toggle-btn.locked.on .toggle-knob {
    color: #d97706;
}

/* Info Bar */
.perm-info-bar {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 16px 24px;
    background: linear-gradient(180deg, #f8fafc, #f1f5f9);
    border-top: 1px solid #e2e8f0;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #64748b;
}

.info-item i {
    font-size: 14px;
    color: #3b82f6;
}

.info-item.inherited i {
    color: #94a3b8;
}

.info-item strong {
    color: #475569;
}

/* Responsive */
@media (max-width: 900px) {
    .perm-grid-header,
    .perm-item {
        grid-template-columns: 1fr repeat(4, 70px);
        padding: 12px 16px;
    }
    
    .role-chip {
        width: 32px;
        height: 32px;
        font-size: 12px;
        border-radius: 8px;
    }
    
    .role-label {
        font-size: 9px;
    }
    
    .toggle-btn {
        width: 44px;
        height: 24px;
    }
    
    .toggle-btn .toggle-knob {
        width: 18px;
        height: 18px;
        font-size: 8px;
    }
    
    .toggle-btn.on .toggle-knob {
        left: calc(100% - 21px);
    }
    
    .perm-info-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* =====================================================
   NETWORK RULES CONFIG - REFINED PROFESSIONAL DESIGN
   ===================================================== */

.nrc-loading, .nrc-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 80px 20px;
    color: #94a3b8;
    font-size: 15px;
    background: #f8fafc;
    border-radius: 20px;
    border: 2px dashed #e2e8f0;
}

.nrc-empty i {
    font-size: 28px;
    opacity: 0.5;
}

.loader {
    width: 24px;
    height: 24px;
    border: 2.5px solid #e2e8f0;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

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

/* Network Header */
.nrc-net-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    margin-bottom: 28px;
    background: white;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.nrc-net-info {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nrc-net-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--c, #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nrc-net-info h2 {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
    letter-spacing: -0.3px;
}

.nrc-net-code {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    background: #f1f5f9;
    padding: 5px 12px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

/* Grid */
.nrc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

/* Cards */
.nrc-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.nrc-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    border-color: #cbd5e1;
}

.nrc-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    background: #fafbfc;
    border-bottom: 1px solid #f1f5f9;
}

.nrc-card-title {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nrc-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: transform 0.2s ease;
}

.nrc-card:hover .nrc-card-icon {
    transform: scale(1.05);
}

.nrc-card-icon.red { 
    background: linear-gradient(135deg, #fee2e2, #fca5a5);
    color: #b91c1c;
}
.nrc-card-icon.blue { 
    background: linear-gradient(135deg, #e0e7ff, #a5b4fc);
    color: #4338ca;
}
.nrc-card-icon.green { 
    background: linear-gradient(135deg, #d1fae5, #6ee7b7);
    color: #047857;
}
.nrc-card-icon.purple { 
    background: linear-gradient(135deg, #ede9fe, #c4b5fd);
    color: #6d28d9;
}

.nrc-card-title h3 {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    letter-spacing: -0.2px;
}

.nrc-btn-add {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1.5px solid #e2e8f0;
    background: white;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.nrc-btn-add:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background: #eff6ff;
    transform: scale(1.05);
}

.nrc-card-body {
    padding: 20px 24px;
}

.nrc-card-empty {
    text-align: center;
    padding: 36px 24px;
    color: #94a3b8;
    font-size: 14px;
    background: #fafbfc;
    border-radius: 12px;
    border: 2px dashed #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.6;
}

/* Targets */
.nrc-targets {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nrc-target {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}

.nrc-target:hover {
    background: #f1f5f9;
    border-color: #e2e8f0;
}

.nrc-target-badge {
    min-width: 44px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--c, #6b7280);
    color: white;
    font-size: 13px;
    font-weight: 700;
    border-radius: 8px;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nrc-target-name {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
}

.nrc-target-actions {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.nrc-target:hover .nrc-target-actions {
    opacity: 1;
}

.nrc-target-actions button {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.nrc-target-actions button:hover {
    background: #fef2f2;
    color: #dc2626;
}

/* Table */
.nrc-table {
    width: 100%;
    border-collapse: collapse;
}

.nrc-table th,
.nrc-table td {
    padding: 14px 12px;
    text-align: center;
}

.nrc-table th {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.nrc-table th:first-child {
    border-radius: 8px 0 0 0;
}

.nrc-table th:last-child {
    border-radius: 0 8px 0 0;
}

.nrc-table td {
    border-bottom: 1px solid #f1f5f9;
}

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

.nrc-table tr:hover td {
    background: #fafbfc;
}

.nrc-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 30px;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 700;
    color: white;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Targeting & MCCP Combined Table */
.nrc-targeting-table {
    width: 100%;
}

.nrc-targeting-header,
.nrc-targeting-row {
    display: grid;
    grid-template-columns: 80px 1fr 90px 90px 90px 50px;
    gap: 12px;
    align-items: center;
    padding: 12px 16px;
}

.nrc-targeting-header {
    background: #f8fafc;
    border-radius: 8px 8px 0 0;
    border-bottom: 1px solid #e2e8f0;
}

.nrc-targeting-header span {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nrc-targeting-header .col-badge,
.nrc-targeting-header .col-mccp {
    text-align: center;
}

.nrc-targeting-row {
    border-bottom: 1px solid #f1f5f9;
}

.nrc-targeting-row:last-child {
    border-bottom: none;
}

.nrc-targeting-row:hover {
    background: #fafbfc;
}

.nrc-targeting-row .col-badge {
    display: flex;
    justify-content: center;
}

.nrc-targeting-row .col-label {
    font-size: 14px;
    color: #334155;
}

.nrc-targeting-row .col-mccp {
    display: flex;
    justify-content: center;
}

.nrc-targeting-row .col-mccp input {
    width: 70px;
    padding: 8px 10px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    color: #1e293b;
    background: white;
    transition: all 0.2s ease;
}

.nrc-targeting-row .col-mccp input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.nrc-targeting-row .col-actions {
    display: flex;
    justify-content: center;
}

.nrc-targeting-row .col-actions button {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #cbd5e1;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.nrc-targeting-row .col-actions button:hover {
    background: #fee2e2;
    color: #ef4444;
}

@media (max-width: 768px) {
    .nrc-targeting-header,
    .nrc-targeting-row {
        grid-template-columns: 60px 1fr 70px 70px 70px 40px;
        gap: 8px;
        padding: 10px 12px;
    }
    
    .nrc-targeting-row .col-mccp input {
        width: 55px;
        padding: 6px 4px;
        font-size: 13px;
    }
}

/* Split columns */
.nrc-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.nrc-split-col h4 {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
    text-align: center;
}

/* Full width card */
.nrc-card-full {
    grid-column: 1 / -1;
}

/* Indications */
.nrc-indications {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.nrc-indication-block {
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.nrc-indication-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--ind-color, #6366f1)08, var(--ind-color, #6366f1)03);
    border-bottom: 1px solid #e2e8f0;
}

.nrc-indication-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nrc-indication-badge {
    padding: 4px 10px;
    background: var(--ind-color, #6366f1);
    color: white;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}

.nrc-indication-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
}

.nrc-indication-actions {
    display: flex;
    gap: 8px;
}

.nrc-indication-actions button {
    width: 28px;
    height: 28px;
    border: none;
    background: white;
    color: #64748b;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.nrc-indication-actions button:hover {
    background: #3b82f6;
    color: white;
}

.nrc-indication-actions button:last-child:hover {
    background: #ef4444;
}

.nrc-indication-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 16px;
}

.nrc-indication-col h5 {
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.nrc-tag-sm {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: white;
    border-radius: 6px;
    margin-bottom: 6px;
    border: 1px solid #e2e8f0;
}

.nrc-tag-sm .nrc-tag-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--c, #6b7280);
    flex-shrink: 0;
}

.nrc-tag-sm span:not(.nrc-tag-dot) {
    font-size: 13px;
    color: #334155;
    flex: 1;
}

.nrc-tag-sm button {
    width: 18px;
    height: 18px;
    border: none;
    background: transparent;
    color: #cbd5e1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.15s ease;
    font-size: 10px;
}

.nrc-tag-sm button:hover {
    background: #fee2e2;
    color: #ef4444;
}

.nrc-muted {
    font-size: 14px;
    color: #94a3b8;
    font-style: italic;
    text-align: center;
    padding: 12px 0;
}

/* Tags */
.nrc-tag {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 10px;
    margin-bottom: 8px;
    border: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}

.nrc-tag:hover {
    background: #f1f5f9;
    border-color: #e2e8f0;
}

.nrc-tag-dot {
    width: 28px;
    height: 12px;
    border-radius: 6px;
    background: var(--c, #6b7280);
    flex-shrink: 0;
}

.nrc-tag span {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
}

.nrc-tag button {
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: #cbd5e1;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    opacity: 0;
    transition: all 0.2s ease;
}

.nrc-tag:hover button {
    opacity: 1;
}

.nrc-tag button:hover {
    background: #fef2f2;
    color: #dc2626;
}

/* Questions */
.nrc-questions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nrc-question {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 18px;
    background: #f8fafc;
    border-radius: 14px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.nrc-question:hover {
    background: #f1f5f9;
    border-color: #e2e8f0;
}

.nrc-question-num {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    flex-shrink: 0;
}

.nrc-question-content {
    flex: 1;
    min-width: 0;
}

.nrc-question-content p {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 6px;
    line-height: 1.4;
}

.nrc-question-type {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.nrc-question-answers {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.nrc-chip {
    padding: 5px 12px;
    background: white;
    color: #334155;
    font-size: 12px;
    font-weight: 500;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.nrc-question-del {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #cbd5e1;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    opacity: 0;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.nrc-question:hover .nrc-question-del {
    opacity: 1;
}

.nrc-question-del:hover {
    background: #fef2f2;
    color: #dc2626;
}

/* Form in modal */
.nrc-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.nrc-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.nrc-form input,
.nrc-form select,
.nrc-form textarea {
    padding: 12px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    background: #fafbfc;
    transition: all 0.2s ease;
}

.nrc-form input:focus,
.nrc-form select:focus,
.nrc-form textarea:focus {
    outline: none;
    border-color: #3b82f6;
    background: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.nrc-form input[type="color"] {
    height: 44px;
    padding: 6px;
    cursor: pointer;
}

/* Color picker palette */
.color-picker-palette {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
}

.color-picker-palette .color-option {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.color-picker-palette .color-option:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.color-picker-palette .color-option.selected {
    border-color: #1e293b;
    transform: scale(1.15);
    box-shadow: 0 0 0 3px rgba(30, 41, 59, 0.2);
}

/* Setup/Error */
.nrc-setup, .nrc-error {
    text-align: center;
    padding: 40px 24px;
    color: #64748b;
    font-size: 14px;
}

.nrc-setup i {
    font-size: 36px;
    color: #cbd5e1;
    margin-bottom: 16px;
    display: block;
}

.nrc-setup code {
    display: inline-block;
    margin-top: 12px;
    padding: 6px 14px;
    background: #f1f5f9;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
}

/* Responsive */
@media (max-width: 900px) {
    .nrc-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nrc-indication-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .nrc-split {
        grid-template-columns: 1fr;
    }
    
    .nrc-net-header {
        padding: 18px 20px;
    }
}

