/* NE2NE Core - Modern Futuristic Design System */

:root {
    /* Primary Colors from Brand Guide */
    --ne2ne-white: #FFFFFF;
    --ne2ne-bright-blue: #408AF4;
    --ne2ne-background: #EBFEFF;
    --ne2ne-blue: #1E2099;
    --ne2ne-mint-green: #53EDC0;
    --ne2ne-light-blue: #9CCFE2;
    
    /* Extended Palette */
    --ne2ne-dark-bg: #0A0E27;
    --ne2ne-card-bg: rgba(255, 255, 255, 0.95);
    --ne2ne-glass-bg: rgba(255, 255, 255, 0.1);
    --ne2ne-glass-border: rgba(255, 255, 255, 0.2);
    --ne2ne-shadow: rgba(30, 32, 153, 0.1);
    --ne2ne-text-primary: #1E2099;
    --ne2ne-text-secondary: #6B7280;
    
    /* Gradients */
    --ne2ne-gradient-primary: linear-gradient(135deg, #1E2099 0%, #408AF4 100%);
    --ne2ne-gradient-success: linear-gradient(135deg, #53EDC0 0%, #9CCFE2 100%);
    --ne2ne-gradient-glass: linear-gradient(135deg, rgba(64, 138, 244, 0.1) 0%, rgba(83, 237, 192, 0.1) 100%);
}

/* Global Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--ne2ne-background);
    color: var(--ne2ne-text-primary);
    overflow-x: hidden;
    padding-top: 80px;
}

.font-mono {
    font-family: 'JetBrains Mono', monospace;
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.gradient-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.6;
    animation: float 20s infinite ease-in-out;
}

.sphere-1 {
    width: 600px;
    height: 600px;
    background: var(--ne2ne-gradient-primary);
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.sphere-2 {
    width: 400px;
    height: 400px;
    background: var(--ne2ne-gradient-success);
    bottom: -100px;
    left: -100px;
    animation-delay: 5s;
}

.sphere-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--ne2ne-light-blue) 0%, var(--ne2ne-mint-green) 100%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(50px, -50px) scale(1.1);
    }
    50% {
        transform: translate(-50px, 50px) scale(0.9);
    }
    75% {
        transform: translate(30px, 30px) scale(1.05);
    }
}

/* Navigation Bar */
.ne2ne-navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(30, 32, 153, 0.1);
    padding: 1rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px var(--ne2ne-shadow);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: translateY(-2px);
}

.brand-icon {
    width: 45px;
    height: 45px;
    background: var(--ne2ne-gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(30, 32, 153, 0.3);
}

.brand-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--ne2ne-blue);
    letter-spacing: -0.5px;
}

/* Navigation Links */
.navbar-nav .nav-link {
    color: var(--ne2ne-text-primary);
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    margin: 0 0.2rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    background: var(--ne2ne-gradient-glass);
    color: var(--ne2ne-bright-blue);
    transform: translateY(-2px);
}

.navbar-nav .nav-link.active {
    background: var(--ne2ne-gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(30, 32, 153, 0.3);
}

.navbar-nav .nav-link.active i {
    color: white;
}

/* Superadmin Navigation Link */
.navbar-nav .nav-link.superadmin-link {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1f2937;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

.navbar-nav .nav-link.superadmin-link:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #1f2937;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
}

.navbar-nav .nav-link.superadmin-link.active {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.navbar-nav .nav-link.superadmin-link i {
    color: #1f2937;
}

/* Dropdown Menus */
.dropdown-menu {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--ne2ne-glass-border);
    border-radius: 15px;
    box-shadow: 0 10px 40px var(--ne2ne-shadow);
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.dropdown-item {
    color: var(--ne2ne-text-primary);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.dropdown-item:hover {
    background: var(--ne2ne-gradient-glass);
    color: var(--ne2ne-bright-blue);
    transform: translateX(5px);
}

.dropdown-item i {
    color: var(--ne2ne-bright-blue);
}

/* User Menu */
.user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 35px;
    height: 35px;
    background: var(--ne2ne-gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.user-name {
    font-weight: 600;
    color: var(--ne2ne-text-primary);
}

/* Notification Bell */
.notification-bell {
    position: relative;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--ne2ne-mint-green);
    color: var(--ne2ne-blue);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.notification-dropdown {
    width: 320px;
}

.notification-item {
    display: flex;
    align-items: start;
    gap: 12px;
    padding: 12px !important;
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-icon.success {
    background: rgba(83, 237, 192, 0.2);
    color: var(--ne2ne-mint-green);
}

.notification-icon.warning {
    background: rgba(244, 138, 64, 0.2);
    color: #F48A40;
}

.notification-icon.info {
    background: rgba(64, 138, 244, 0.2);
    color: var(--ne2ne-bright-blue);
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    color: var(--ne2ne-text-primary);
    margin-bottom: 2px;
}

.notification-time {
    font-size: 0.85rem;
    color: var(--ne2ne-text-secondary);
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 80px);
    position: relative;
}

.content-wrapper {
    position: relative;
    padding: 2rem 0;
}

/* Glass Cards */
.glass-card {
    background: var(--ne2ne-card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--ne2ne-glass-border);
    border-radius: 20px;
    box-shadow: 0 10px 40px var(--ne2ne-shadow);
    transition: all 0.3s ease;
    overflow: hidden;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px var(--ne2ne-shadow);
}

.glass-card-header {
    background: var(--ne2ne-gradient-glass);
    padding: 1.5rem;
    border-bottom: 1px solid var(--ne2ne-glass-border);
}

.glass-card-body {
    padding: 1.5rem;
}

/* Buttons */
.btn-primary {
    background: var(--ne2ne-gradient-primary);
    border: none;
    border-radius: 10px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 32, 153, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 32, 153, 0.4);
    background: var(--ne2ne-gradient-primary);
}

.btn-success {
    background: var(--ne2ne-gradient-success);
    border: none;
    border-radius: 10px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    color: var(--ne2ne-blue);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(83, 237, 192, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(83, 237, 192, 0.4);
    color: var(--ne2ne-blue);
    background: var(--ne2ne-gradient-success);
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--ne2ne-bright-blue);
    color: var(--ne2ne-bright-blue);
    border-radius: 10px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--ne2ne-bright-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(64, 138, 244, 0.3);
}

.btn-glass {
    background: var(--ne2ne-glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--ne2ne-glass-border);
    color: var(--ne2ne-text-primary);
    border-radius: 10px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Forms */
.form-control, .form-select {
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid var(--ne2ne-glass-border);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-weight: 500;
    color: var(--ne2ne-text-primary);
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    background: white;
    border-color: var(--ne2ne-bright-blue);
    box-shadow: 0 0 0 0.25rem rgba(64, 138, 244, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--ne2ne-text-primary);
    margin-bottom: 0.5rem;
}

.form-floating label {
    color: var(--ne2ne-text-secondary);
}

/* Status Badges */
.badge {
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
}

.badge-primary {
    background: var(--ne2ne-gradient-primary);
    color: white;
}

.badge-success {
    background: var(--ne2ne-gradient-success);
    color: var(--ne2ne-blue);
}

.badge-info {
    background: rgba(64, 138, 244, 0.2);
    color: var(--ne2ne-bright-blue);
}

.badge-warning {
    background: rgba(244, 138, 64, 0.2);
    color: #F48A40;
}

.badge-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #EF4444;
}

/* Alerts */
.futuristic-alert {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--ne2ne-glass-border);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 20px var(--ne2ne-shadow);
    border-left: 4px solid;
}

.alert-success {
    border-left-color: var(--ne2ne-mint-green);
}

.alert-danger {
    border-left-color: #EF4444;
}

.alert-warning {
    border-left-color: #F48A40;
}

.alert-info {
    border-left-color: var(--ne2ne-bright-blue);
}

/* Tables */
.table {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    overflow: hidden;
}

.table thead {
    background: var(--ne2ne-gradient-glass);
}

.table thead th {
    border: none;
    font-weight: 600;
    color: var(--ne2ne-text-primary);
    padding: 1rem;
}

.table tbody tr {
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background: rgba(64, 138, 244, 0.05);
    transform: translateX(5px);
}

.table tbody td {
    border: none;
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--ne2ne-glass-border);
}

/* Footer */
.ne2ne-footer {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--ne2ne-glass-border);
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ne2ne-blue);
    margin-bottom: 0.5rem;
}

.footer-text {
    color: var(--ne2ne-text-secondary);
    font-size: 0.9rem;
}

.footer-links {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--ne2ne-text-primary);
    text-decoration: none;
    margin: 0 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--ne2ne-bright-blue);
}

.footer-copyright {
    color: var(--ne2ne-text-secondary);
    font-size: 0.85rem;
}

/* Ripple Effect */
.btn {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Loading Animation */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

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

/* Page Transitions */
.page-transition {
    animation: pageIn 0.5s ease-out;
}

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

/* Responsive */
@media (max-width: 768px) {
    .ne2ne-navbar {
        padding: 0.75rem 0;
    }
    
    .navbar-brand {
        gap: 8px;
    }
    
    .brand-icon {
        width: 38px;
        height: 38px;
        font-size: 20px;
    }
    
    .brand-text {
        font-size: 1.2rem;
    }
    
    .content-wrapper {
        padding: 1rem 0;
    }
    
    .footer-links {
        text-align: center;
        margin: 1rem 0;
    }
    
    .footer-links a {
        margin: 0 0.5rem;
    }
}

/* Tree Structure Styles */
.tree-structure-container {
    margin-top: 20px;
}

.json-tree-container {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(30, 32, 153, 0.1);
    border-radius: 12px;
    padding: 20px;
    max-height: 600px;
    overflow-y: auto;
}

.tree-node {
    margin-bottom: 10px;
    border-left: 2px solid rgba(30, 32, 153, 0.2);
    padding-left: 15px;
    position: relative;
}

.tree-node.root-node {
    border-left: 3px solid var(--ne2ne-blue);
    background: linear-gradient(135deg, rgba(30, 32, 153, 0.05) 0%, rgba(64, 138, 244, 0.05) 100%);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.tree-node.child-node {
    margin-left: 20px;
    margin-top: 15px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 6px;
    padding: 10px;
    border-left: 2px solid var(--ne2ne-bright-blue);
}

.node-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.node-header:hover {
    background: rgba(64, 138, 244, 0.08);
}

.node-toggle {
    cursor: pointer;
    color: var(--ne2ne-blue);
    font-size: 16px;
    width: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.node-toggle:hover {
    transform: scale(1.2);
}

.node-icon {
    color: var(--ne2ne-bright-blue);
    font-size: 18px;
}

.node-name {
    font-weight: 600;
    color: var(--ne2ne-blue);
    font-size: 16px;
}

.editable-node-name {
    border-radius: 4px;
    padding: 2px 6px;
    min-width: 60px;
    transition: all 0.2s ease;
    cursor: text;
}

.editable-node-name:hover {
    background-color: rgba(64, 138, 244, 0.1);
    border: 1px solid var(--ne2ne-bright-blue);
}

.editable-node-name:focus {
    outline: none;
    background-color: var(--ne2ne-white);
    border: 2px solid var(--ne2ne-bright-blue);
    box-shadow: 0 0 0 3px rgba(64, 138, 244, 0.2);
}

.editable-node-name::after {
    content: '✏️';
    font-size: 12px;
    opacity: 0;
    margin-left: 5px;
    transition: opacity 0.2s ease;
}

.editable-node-name:hover::after {
    opacity: 0.6;
}

.node-path-display {
    font-size: 12px;
    color: var(--ne2ne-text-secondary);
    font-style: italic;
    margin-left: auto;
    margin-right: 10px;
}

.node-actions {
    display: flex;
    gap: 5px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.node-header:hover .node-actions {
    opacity: 1;
}

.node-content {
    margin-left: 30px;
    padding: 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(30, 32, 153, 0.08);
}

.node-fields {
    margin-bottom: 15px;
}

.fields-header {
    color: var(--ne2ne-blue);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(30, 32, 153, 0.1);
    padding-bottom: 5px;
}

.tree-node .field-container {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(30, 32, 153, 0.08);
    margin-bottom: 10px;
    padding: 10px;
}

.child-nodes {
    margin-top: 15px;
}

/* Named Record Styles for Fixed Length Named Record */
.named-record {
    border: 1px solid rgba(30, 32, 153, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.3);
}

.named-record-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.named-record-header h6 {
    margin: 0;
    color: var(--ne2ne-blue);
}

.records-container {
    margin-bottom: 20px;
}

.field-container {
    border: 1px solid rgba(30, 32, 153, 0.1);
    border-radius: 8px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.5);
    margin-bottom: 15px;
}

.field-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.field-row:hover {
    background: rgba(64, 138, 244, 0.05);
}

.field-row.field-header:hover {
    background: rgba(0,0,0,0.05) !important;
    cursor: default;
}

.field-row.dragging {
    opacity: 0.6;
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.drag-placeholder {
    height: 4px;
    margin: 8px 0;
    border-radius: 2px;
    background: transparent;
}

.placeholder-line {
    height: 100%;
    background: var(--ne2ne-mint-green);
    border-radius: 2px;
    animation: pulse 1s ease-in-out infinite;
}

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

.field-input {
    flex: 3;
    min-width: 150px;
}

.field-start-position {
    flex: 2;
    min-width: 100px;
}

.field-length {
    flex: 1.5;
    min-width: 80px;
}

.field-padding {
    flex: 2;
    min-width: 100px;
}

.field-alignment {
    flex: 2;
    min-width: 100px;
}

.drag-handle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    cursor: grab;
    color: #6c757d;
    flex: 0 0 auto;
}

.drag-handle:active {
    cursor: grabbing;
}

.field-actions {
    display: flex;
    gap: 5px;
    flex: 0 0 auto;
    min-width: 60px;
}

/* Table drag and drop styles */
.sortable-ghost {
    opacity: 0.4;
    background: #f8f9fa;
}

.sortable-chosen {
    background: #e3f2fd;
}

.sortable-drag {
    opacity: 0.8;
    transform: rotate(2deg);
}

/* Make grip icons more visible and clickable */
table .bi-grip-vertical {
    cursor: grab;
    color: #6c757d;
    padding: 4px;
    border-radius: 3px;
    transition: all 0.2s ease;
}

table .bi-grip-vertical:hover {
    background: #e9ecef;
    color: #495057;
}

table .bi-grip-vertical:active {
    cursor: grabbing;
}

/* Responsive adjustments for tree */
@media (max-width: 768px) {
    .tree-node.child-node {
        margin-left: 10px;
    }
    
    .node-content {
        margin-left: 15px;
    }
    
    .node-path-display {
        display: none;
    }
    
    .json-tree-container {
        padding: 15px;
    }
}

/* Organization Switcher */
.org-switcher {
    position: relative;
}

.single-org-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--ne2ne-text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    background: rgba(64, 138, 244, 0.1);
    border: 1px solid rgba(64, 138, 244, 0.2);
    border-radius: 10px;
}

.single-org-display i {
    color: var(--ne2ne-bright-blue);
}

.org-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(64, 138, 244, 0.1);
    border: 1px solid rgba(64, 138, 244, 0.2);
    border-radius: 10px;
    color: var(--ne2ne-text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.org-dropdown-btn:hover {
    background: rgba(64, 138, 244, 0.15);
    border-color: rgba(64, 138, 244, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(64, 138, 244, 0.15);
}

.org-dropdown-btn i.bi-building {
    color: var(--ne2ne-bright-blue);
}

.org-dropdown-btn i.bi-chevron-down {
    font-size: 0.7rem;
    color: var(--ne2ne-text-secondary);
    transition: transform 0.3s ease;
}

.org-dropdown-btn:hover i.bi-chevron-down {
    transform: translateY(2px);
}

.org-name {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.org-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: white;
    border: 1px solid var(--ne2ne-glass-border);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(30, 32, 153, 0.15);
    min-width: 280px;
    max-width: 320px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

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

.org-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    text-decoration: none;
    color: var(--ne2ne-text-primary);
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--ne2ne-glass-border);
}

.org-option:first-child {
    border-radius: 12px 12px 0 0;
}

.org-option:last-child {
    border-bottom: none;
    border-radius: 0 0 12px 12px;
}

.org-option:hover {
    background: rgba(64, 138, 244, 0.05);
}

.org-option.active {
    background: rgba(64, 138, 244, 0.1);
}

.org-option-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.org-option-name {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--ne2ne-text-primary);
}

.role-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
}

.role-badge.role-superadmin {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.role-badge.role-org_admin {
    background: rgba(64, 138, 244, 0.1);
    color: var(--ne2ne-bright-blue);
}

.role-badge.role-user {
    background: rgba(83, 237, 192, 0.1);
    color: #059669;
}

/* Organization Switch Loading Overlay */
.org-switch-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;
    backdrop-filter: blur(4px);
}

.org-switch-loading {
    background: white;
    padding: 2rem 3rem;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(30, 32, 153, 0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.org-switch-loading .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--ne2ne-glass-border);
    border-top-color: var(--ne2ne-bright-blue);
    border-radius: 50%;
    animation: org-spin 0.8s linear infinite;
}

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

.org-switch-loading p {
    margin: 0;
    color: var(--ne2ne-text-secondary);
    font-weight: 500;
    font-size: 1rem;
}
