/* 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-wizard: linear-gradient(135deg, #667eea 0%, #764ba2 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%);

    /* Aliases — referenced by page-level styles (logs, verify_2fa); keep in sync with the base variables above */
    --ne2ne-primary: var(--ne2ne-blue);
    --ne2ne-text-muted: var(--ne2ne-text-secondary);
    --ne2ne-gradient-card: var(--ne2ne-card-bg);
}

/* 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;
}

/* Sleek page breadcrumbs */
.main-content .breadcrumb {
    --bs-breadcrumb-divider: '\203A';
    --bs-breadcrumb-divider-color: rgba(30, 32, 153, 0.28);
    margin-bottom: 0.65rem;
    padding: 0;
    background: transparent;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.main-content .breadcrumb-item + .breadcrumb-item {
    padding-left: 0.55rem;
}

.main-content .breadcrumb-item + .breadcrumb-item::before {
    padding-right: 0.55rem;
    font-size: 1rem;
    line-height: 1;
    opacity: 0.55;
}

.main-content .breadcrumb-item a {
    color: var(--ne2ne-bright-blue);
    text-decoration: none;
    transition: color 0.15s ease;
}

.main-content .breadcrumb-item a:hover {
    color: var(--ne2ne-blue);
    text-decoration: none;
}

.main-content .breadcrumb-item.active {
    color: var(--ne2ne-text-secondary);
    font-weight: 600;
}

.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: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.58) 0%,
        rgba(255, 255, 255, 0.42) 100%
    );
    backdrop-filter: blur(24px) saturate(165%);
    -webkit-backdrop-filter: blur(24px) saturate(165%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.65);
    padding: 1rem 0;
    transition: all 0.3s ease;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.55) inset,
        0 4px 24px rgba(64, 138, 244, 0.08);
}

.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: 1px solid transparent;
    border-radius: 999px;
    transition: font-weight 0.15s ease, color 0.15s ease;
    position: relative;
    background: transparent;
    box-shadow: none;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link.active:focus {
    background: transparent;
    color: var(--ne2ne-text-primary);
    border-color: transparent;
    box-shadow: none;
    transform: none;
    font-weight: 700;
}

.navbar-nav .nav-link.active i {
    color: var(--ne2ne-text-primary);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link.show {
    background: transparent !important;
    color: var(--ne2ne-text-primary);
    border-color: transparent;
    box-shadow: none;
    transform: none;
    font-weight: 700;
}

.navbar-nav .nav-link:hover i,
.navbar-nav .nav-link:focus i,
.navbar-nav .nav-link.show i {
    color: var(--ne2ne-text-primary);
}

/* 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: 999px;
    transition: font-weight 0.15s ease, color 0.15s ease;
    font-weight: 500;
    background: transparent;
}

.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item:active,
.dropdown-item.active {
    background: transparent !important;
    color: var(--ne2ne-text-primary);
    font-weight: 700;
    box-shadow: none;
}

.dropdown-item:hover {
    transform: none;
}

.dropdown-item:hover i,
.dropdown-item:focus i,
.dropdown-item:active i,
.dropdown-item.active i {
    color: var(--ne2ne-text-primary);
}

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

/* My Resources → APIs flyout */
.navbar .dropdown-submenu {
    position: relative;
}

.navbar .dropdown-submenu > .dropdown-toggle {
    padding-right: 2rem;
}

.navbar .dropdown-submenu > .dropdown-toggle::after {
    position: absolute;
    right: 0.9rem;
    top: 50%;
    margin: 0;
    transform: translateY(-50%) rotate(90deg);
}

.navbar .dropdown-submenu > .dropdown-menu {
    display: none;
    top: 0;
    left: auto;
    right: 100%;
    margin-top: -0.5rem;
    margin-left: 0;
    margin-right: 0.15rem;
    z-index: 1001;
}

.navbar .dropdown-submenu > .dropdown-menu::before {
    content: '';
    position: absolute;
    right: -0.4rem;
    left: auto;
    top: 0;
    bottom: 0;
    width: 0.55rem;
}

@media (min-width: 992px) {
    .navbar .dropdown-submenu:hover > .dropdown-menu,
    .navbar .dropdown-submenu:focus-within > .dropdown-menu {
        display: block;
    }
}

.navbar .dropdown-submenu.is-open > .dropdown-menu {
    display: block;
}

@media (max-width: 991.98px) {
    .navbar .dropdown-submenu > .dropdown-menu {
        position: static;
        margin: 0.15rem 0 0.15rem 0.5rem;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 0;
    }
}

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

.user-menu-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
    min-width: 0;
}

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

.user-name {
    font-weight: 600;
    color: var(--ne2ne-text-primary);
    max-width: 10rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-org-name {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--ne2ne-text-secondary);
    max-width: 10rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 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 #c5cdd8;
    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);
}

.demo-pack-label-badge {
    display: inline-block;
    padding: 0.25rem 0.55rem;
    border-radius: 8px;
    background: rgba(30, 32, 153, 0.12);
    color: var(--ne2ne-blue, #1E2099);
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    border: 1px solid rgba(30, 32, 153, 0.22);
    line-height: 1.2;
}

.resource-list-page .demo-pack-label-badge {
    color: var(--gw-navy, #1E2099);
    background: rgba(30, 32, 153, 0.14);
}

.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;
}

/* Django's messages.error tag renders class "alert-error"; Bootstrap only ships
   .alert-danger, so alias the danger styling here to keep error flashes styled. */
.alert-error {
    color: #58151c;
    background-color: #f8d7da;
    border-color: #f1aeb5;
    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;
}

/* My Resources list pages — map/grammar builder atmosphere + frost.
   Background lives on body.resource-list-shell (not .resource-list-page) so
   page-transition opacity animation does not flash white between tabs. */
body.resource-list-shell .animated-bg {
    display: none !important;
}
body.resource-list-shell .main-content,
body.resource-list-shell .content-wrapper {
    background: transparent !important;
}
body.resource-list-shell {
    background:
        radial-gradient(ellipse 55% 70% at 0% 40%, rgba(165, 190, 255, 0.9), transparent 70%),
        radial-gradient(ellipse 50% 65% at 100% 15%, rgba(95, 150, 255, 0.55), transparent 68%),
        radial-gradient(ellipse 45% 50% at 85% 100%, rgba(140, 185, 255, 0.45), transparent 70%),
        radial-gradient(ellipse 40% 45% at 15% 100%, rgba(190, 210, 255, 0.55), transparent 70%),
        linear-gradient(165deg, #eef3ff 0%, #f6f8ff 45%, #fbfcff 100%) !important;
    background-attachment: fixed !important;
}
body.resource-list-shell .content-wrapper {
    padding-top: 2rem;
}

/* Legacy :has() fallback for pages that use the class without the body shell */
body:has(.resource-list-page):not(.resource-list-shell) .animated-bg {
    display: none !important;
}
body:has(.resource-list-page):not(.resource-list-shell),
body:has(.resource-list-page):not(.resource-list-shell) .main-content,
body:has(.resource-list-page):not(.resource-list-shell) .content-wrapper {
    background: transparent !important;
}
body:has(.resource-list-page):not(.resource-list-shell) .content-wrapper {
    padding-top: 2rem;
}
body:has(.resource-list-page):not(.resource-list-shell) .resource-list-page::before {
    content: '';
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 55% 70% at 0% 40%, rgba(165, 190, 255, 0.9), transparent 70%),
        radial-gradient(ellipse 50% 65% at 100% 15%, rgba(95, 150, 255, 0.55), transparent 68%),
        radial-gradient(ellipse 45% 50% at 85% 100%, rgba(140, 185, 255, 0.45), transparent 70%),
        radial-gradient(ellipse 40% 45% at 15% 100%, rgba(190, 210, 255, 0.55), transparent 70%),
        linear-gradient(165deg, #eef3ff 0%, #f6f8ff 45%, #fbfcff 100%);
}

.resource-list-page {
    --gw-radius: 22px;
    --gw-radius-ctrl: 14px;
    --gw-navy: #1E2099;
    --gw-blue: #408AF4;
    --gw-mint: #53EDC0;
    --gw-ink: #14165c;
    --gw-ink-soft: rgba(20, 22, 92, 0.62);
    --gw-ease: cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    color: var(--gw-ink);
    -webkit-font-smoothing: antialiased;
}

/* Content still fades in; shell background does not */
body.resource-list-shell .resource-list-page.page-transition {
    animation: resourcePageIn 0.35s var(--gw-ease, ease-out);
}

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

.resource-list-page > * {
    position: relative;
    z-index: 1;
}

.resource-list-page .glass-card {
    background: linear-gradient(
        165deg,
        rgba(255, 255, 255, 0.62) 0%,
        rgba(245, 248, 255, 0.48) 100%
    );
    backdrop-filter: blur(28px) saturate(165%);
    -webkit-backdrop-filter: blur(28px) saturate(165%);
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: var(--gw-radius);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.85) inset,
        0 0 0 1px rgba(255, 255, 255, 0.35) inset,
        0 18px 48px rgba(64, 120, 220, 0.12);
}

.resource-list-page .glass-card:hover {
    transform: translateY(-3px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 0 0 1px rgba(255, 255, 255, 0.4) inset,
        0 22px 56px rgba(64, 120, 220, 0.16);
}

/* Keep create/edit form cards still (single centered card) */
.resource-list-page .row.justify-content-center > [class*="col-"] > .glass-card:hover {
    transform: none;
}

.resource-list-page .glass-card-header {
    background: rgba(255, 255, 255, 0.22);
    border-bottom: 1px solid rgba(30, 32, 153, 0.08);
}

.resource-list-page h1,
.resource-list-page h5,
.resource-list-page .glass-card-header h5 {
    color: var(--gw-navy);
}

.resource-list-page .text-muted {
    color: var(--gw-ink-soft) !important;
}

.resource-list-page .wf-create-btn {
    background: var(--gw-navy);
    box-shadow: 0 6px 16px rgba(30, 32, 153, 0.28);
}

.resource-list-page .wf-create-btn:hover,
.resource-list-page .wf-create-btn:active,
.resource-list-page .wf-create-btn:focus-visible {
    background: #15177a;
    box-shadow: 0 8px 20px rgba(30, 32, 153, 0.32);
    filter: none;
}

.resource-list-page .resource-card-run-btn {
    border-radius: var(--gw-radius-ctrl);
    border-color: var(--gw-navy);
    background: var(--gw-navy);
}

.resource-list-page .resource-card-run-btn:hover,
.resource-list-page .resource-card-run-btn:focus-visible {
    background: #15177a;
    border-color: #15177a;
}

.resource-list-page .wf-search-form .wf-search-btn:hover,
.resource-list-page .wf-search-form .wf-search-btn:active,
.resource-list-page .wf-search-form .wf-search-btn:focus-visible,
.resource-list-page .wf-search-form .wf-search-shell:focus-within .wf-search-btn {
    background: var(--gw-navy);
    border-color: var(--gw-navy);
    box-shadow: 0 4px 16px rgba(30, 32, 153, 0.28);
}

.resource-list-page .btn-primary {
    background: var(--gw-navy);
    border: none;
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(30, 32, 153, 0.28);
}

.resource-list-page .btn-primary:hover,
.resource-list-page .btn-primary:focus-visible {
    background: #15177a;
    box-shadow: 0 8px 20px rgba(30, 32, 153, 0.32);
    filter: none;
}

.resource-list-page .btn-outline-secondary,
.resource-list-page .btn-outline-primary {
    border-radius: 999px;
    border: 1.5px solid var(--gw-navy);
    color: var(--gw-navy);
    background: transparent;
}

.resource-list-page .btn-outline-secondary:hover,
.resource-list-page .btn-outline-secondary:focus-visible,
.resource-list-page .btn-outline-primary:hover,
.resource-list-page .btn-outline-primary:focus-visible {
    background: rgba(30, 32, 153, 0.06);
    border-color: var(--gw-navy);
    color: var(--gw-navy);
}

.resource-list-page .connection-icon {
    background: var(--gw-navy);
    box-shadow: 0 6px 16px rgba(30, 32, 153, 0.28);
    border-radius: var(--gw-radius-ctrl);
}

.resource-list-page .sftp-form .form-label,
.resource-list-page .rest-api-form .form-label,
.resource-list-page .graphql-form .form-label,
.resource-list-page .soap-form .form-label {
    font-weight: 600;
    color: var(--gw-navy);
}

.resource-list-page .sftp-form .form-control,
.resource-list-page .rest-api-form .form-control,
.resource-list-page .graphql-form .form-control,
.resource-list-page .soap-form .form-control,
.resource-list-page .sftp-form .form-select,
.resource-list-page .rest-api-form .form-select,
.resource-list-page .graphql-form .form-select,
.resource-list-page .soap-form .form-select {
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: var(--gw-radius-ctrl);
    background: rgba(255, 255, 255, 0.72);
    color: var(--gw-navy);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.55) inset;
    padding: 12px 14px;
}

.resource-list-page .sftp-form .form-control:focus,
.resource-list-page .rest-api-form .form-control:focus,
.resource-list-page .graphql-form .form-control:focus,
.resource-list-page .soap-form .form-control:focus,
.resource-list-page .sftp-form .form-select:focus,
.resource-list-page .rest-api-form .form-select:focus,
.resource-list-page .graphql-form .form-select:focus,
.resource-list-page .soap-form .form-select:focus {
    border-color: rgba(64, 138, 244, 0.55);
    background: rgba(64, 138, 244, 0.1);
    box-shadow: 0 0 0 0.15rem rgba(64, 138, 244, 0.18);
    outline: none;
}

.resource-list-page .sftp-form textarea.form-control,
.resource-list-page .rest-api-form textarea.form-control,
.resource-list-page .graphql-form textarea.form-control,
.resource-list-page .soap-form textarea.form-control {
    resize: none;
}

.resource-list-page .sftp-form .form-text,
.resource-list-page .rest-api-form .form-text,
.resource-list-page .graphql-form .form-text,
.resource-list-page .soap-form .form-text {
    color: var(--gw-ink-soft);
}

.resource-list-page .section-divider,
.resource-list-page .modal-section-divider {
    display: flex;
    align-items: center;
    margin: 1.75rem 0;
}

.resource-list-page .section-divider::before,
.resource-list-page .section-divider::after,
.resource-list-page .modal-section-divider::before,
.resource-list-page .modal-section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(30, 32, 153, 0.12);
}

.resource-list-page .section-divider span,
.resource-list-page .modal-section-divider span {
    padding: 0 1rem;
    color: var(--gw-ink-soft);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.resource-list-page .sftp-form-actions .btn,
.resource-list-page .rest-api-form-actions .btn,
.resource-list-page .graphql-form-actions .btn,
.resource-list-page .soap-form-actions .btn {
    padding: 0.625rem 1.5rem;
    font-weight: 600;
    min-height: 42px;
}

.resource-list-page .stat-value {
    color: var(--gw-navy);
}

.resource-list-page .stat-label {
    color: var(--gw-ink-soft);
}

.resource-list-page .ne2ne-toolbar-btn--primary {
    background: var(--gw-navy);
    box-shadow: 0 6px 16px rgba(30, 32, 153, 0.28);
}

.resource-list-page .ne2ne-toolbar-btn--primary:hover,
.resource-list-page .ne2ne-toolbar-btn--primary:focus-visible {
    background: #15177a;
    opacity: 1;
    box-shadow: 0 8px 20px rgba(30, 32, 153, 0.32);
}

.resource-list-page .ne2ne-segmented-btns {
    border-color: rgba(30, 32, 153, 0.22);
    background: rgba(255, 255, 255, 0.55);
}

.resource-list-page .ne2ne-segmented-btns button {
    color: var(--gw-navy);
}

.resource-list-page .ne2ne-segmented-btns button + button {
    border-left-color: rgba(30, 32, 153, 0.12);
}

.resource-list-page .ne2ne-segmented-btns button:hover:not(.active) {
    background: rgba(83, 237, 192, 0.22);
    color: var(--gw-navy);
}

.resource-list-page .ne2ne-segmented-btns button.active {
    background: var(--gw-navy);
}

.resource-list-page .run-status-metric__label {
    color: var(--gw-ink-soft);
}

.resource-list-page .run-status-metric__value {
    color: var(--gw-navy);
}

/* Profile / Security / Billing settings */
.settings-page .glass-card:hover {
    transform: none;
}

.settings-page .list-group-flush .list-group-item {
    background: transparent;
    border-color: rgba(30, 32, 153, 0.08);
    color: var(--gw-navy);
    font-weight: 600;
    padding: 0.9rem 1.15rem;
}

.settings-page .list-group-flush .list-group-item:hover {
    background: rgba(83, 237, 192, 0.22);
    color: var(--gw-navy);
}

.settings-page .list-group-flush .list-group-item.active {
    background: var(--gw-navy);
    color: #fff;
    border-color: var(--gw-navy);
}

.settings-page .form-label {
    font-weight: 600;
    color: var(--gw-navy);
}

.settings-page .form-control,
.settings-page .form-select {
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: var(--gw-radius-ctrl);
    background: rgba(255, 255, 255, 0.72);
    color: var(--gw-navy);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.55) inset;
    padding: 0.7rem 0.9rem;
}

.settings-page .form-control:focus,
.settings-page .form-select:focus {
    border-color: rgba(64, 138, 244, 0.55);
    background: rgba(64, 138, 244, 0.1);
    box-shadow: 0 0 0 0.15rem rgba(64, 138, 244, 0.18);
}

.settings-page .form-control[readonly] {
    background: rgba(255, 255, 255, 0.45);
    color: var(--gw-ink-soft);
}

.settings-page .form-check-input:checked {
    background-color: var(--gw-navy);
    border-color: var(--gw-navy);
}

.settings-page .progress {
    background: rgba(30, 32, 153, 0.08);
    border-radius: 999px;
    overflow: hidden;
}

.settings-page h3,
.settings-page h6 {
    color: var(--gw-navy);
}

/* Resource / workflow list search + pagination (shared) */
.resource-list-tabs {
    gap: 0.35rem;
}
.resource-list-tabs .nav-link {
    border-radius: 999px;
    padding: 0.65rem 1.15rem;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--ne2ne-blue);
    background: transparent;
    border: none;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.resource-list-tabs .nav-link:hover:not(.active) {
    color: var(--ne2ne-blue);
    background: rgba(83, 237, 192, 0.22);
}
.resource-list-tabs .nav-link.active,
.resource-list-tabs .nav-link.active:hover,
.resource-list-tabs .nav-link.active:focus {
    color: #fff;
    background: #1E2099;
    box-shadow: 0 6px 16px rgba(30, 32, 153, 0.28);
}

/* Segmented filter controls (All / Errors / Warnings) */
.ne2ne-segmented-btns {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid rgba(64, 138, 244, 0.55);
    border-radius: 10px;
    background: rgba(240, 247, 255, 0.95);
    overflow: hidden;
}
.ne2ne-segmented-btns button {
    border: none;
    background: transparent;
    color: var(--ne2ne-bright-blue);
    font-weight: 600;
    font-size: 0.8125rem;
    line-height: 1.25;
    padding: 0.45rem 1.05rem;
    transition: background 0.15s ease, color 0.15s ease;
}
.ne2ne-segmented-btns button + button {
    border-left: 1px solid rgba(64, 138, 244, 0.3);
}
.ne2ne-segmented-btns button:hover:not(.active) {
    background: rgba(64, 138, 244, 0.08);
    color: var(--ne2ne-blue);
}
.ne2ne-segmented-btns button.active {
    background: var(--ne2ne-bright-blue);
    color: #fff;
}

.ne2ne-toolbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 1.05rem;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.25;
    border-radius: 10px;
    border: none;
    box-shadow: none;
    transform: none;
    transition: opacity 0.15s ease, box-shadow 0.15s ease;
}
.ne2ne-toolbar-btn--primary {
    background: var(--ne2ne-gradient-primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(64, 138, 244, 0.22);
}
.ne2ne-toolbar-btn--primary:hover,
.ne2ne-toolbar-btn--primary:focus-visible {
    color: #fff;
    opacity: 0.92;
    box-shadow: 0 3px 10px rgba(64, 138, 244, 0.28);
    transform: none;
}

/* Workflow run status bar */
.run-status-bar {
    display: flex;
    align-items: stretch;
    gap: 0;
}
.run-status-metric {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
    padding: 0 1.5rem;
}
.run-status-metric:first-child {
    padding-left: 0;
}
.run-status-metric:last-child {
    padding-right: 0;
}
.run-status-metric + .run-status-metric {
    border-left: 1px solid rgba(30, 32, 153, 0.1);
}
.run-status-metric__label {
    display: block;
    color: #6B7280;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.2;
}
.run-status-metric__value {
    display: flex;
    align-items: center;
    min-height: 52px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ne2ne-blue);
    line-height: 1.2;
}
.run-status-progress-ring {
    position: relative;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
}
.run-status-progress-ring svg {
    display: block;
    transform: rotate(-90deg);
}
.run-status-progress-ring__value {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--ne2ne-blue);
}
.run-status-badge {
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
}

@media (max-width: 767.98px) {
    .run-status-bar {
        flex-direction: column;
        gap: 1rem;
    }
    .run-status-metric {
        padding: 0;
    }
    .run-status-metric + .run-status-metric {
        border-left: none;
        border-top: 1px solid rgba(30, 32, 153, 0.1);
        padding-top: 1rem;
    }
}

.ne2ne-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    border-radius: 0 0 15px 15px;
    padding: 1rem 1.5rem;
}

/* Run Workflow modal — frosted glass (matches resource cards) */
.run-workflow-modal .modal-content {
    background: linear-gradient(
        165deg,
        rgba(255, 255, 255, 0.72) 0%,
        rgba(245, 248, 255, 0.55) 100%
    );
    backdrop-filter: blur(28px) saturate(165%);
    -webkit-backdrop-filter: blur(28px) saturate(165%);
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 18px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.85) inset,
        0 0 0 1px rgba(255, 255, 255, 0.35) inset,
        0 24px 56px rgba(30, 32, 153, 0.16),
        0 8px 20px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    color: #1e2099;
}

.run-workflow-modal .modal-header {
    background: rgba(255, 255, 255, 0.28);
    border-bottom: 1px solid rgba(30, 32, 153, 0.08);
    color: #1e2099;
    padding: 1rem 1.25rem;
}

.run-workflow-modal .modal-title {
    color: #1e2099;
    font-weight: 700;
}

.run-workflow-modal .modal-body {
    background: transparent;
    color: #1e2099;
}

.run-workflow-modal .modal-footer.ne2ne-modal-footer,
.run-workflow-modal .ne2ne-modal-footer {
    background: rgba(255, 255, 255, 0.22);
    border-top: 1px solid rgba(30, 32, 153, 0.08);
    border-radius: 0 0 18px 18px;
}

.run-workflow-modal .upload-zone {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(30, 32, 153, 0.22) !important;
    border-radius: 14px;
}

.run-workflow-modal .form-check-label,
.run-workflow-modal .form-check-label strong {
    color: #1e2099;
}

.run-workflow-modal .ne2ne-modal-btn--secondary {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.run-workflow-modal .alert {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
}

/* Delete / resource confirm modals — frosted glass */
.resource-action-modal .modal-content {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 16px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.8) inset,
        0 20px 48px rgba(30, 32, 153, 0.16),
        0 8px 20px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.resource-action-modal .modal-header,
.resource-action-modal .modal-body,
.resource-action-modal .modal-footer {
    background: transparent;
}

.resource-action-modal .modal-title {
    color: #1e2099;
}
.ne2ne-modal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 2.375rem;
    padding: 0.5rem 1.15rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25;
    border-radius: 10px;
    border: 1px solid transparent;
    box-shadow: none;
    transform: none;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}
.ne2ne-modal-btn--secondary {
    border-color: rgba(148, 163, 184, 0.45);
    color: #64748b;
    background: #fff;
}
.ne2ne-modal-btn--secondary:hover,
.ne2ne-modal-btn--secondary:focus-visible {
    background: rgba(148, 163, 184, 0.12);
    border-color: rgba(100, 116, 139, 0.45);
    color: #475569;
    transform: none;
    box-shadow: none;
}
.ne2ne-modal-btn--primary {
    border: 1px solid var(--ne2ne-blue);
    background: var(--ne2ne-blue);
    color: #fff;
    box-shadow: 0 2px 8px rgba(30, 32, 153, 0.22);
}
.ne2ne-modal-btn--primary:hover:not(:disabled),
.ne2ne-modal-btn--primary:focus-visible:not(:disabled) {
    background: #15177a;
    border-color: #15177a;
    color: #fff;
    opacity: 1;
    transform: none;
    box-shadow: 0 3px 10px rgba(30, 32, 153, 0.32);
}
.ne2ne-modal-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.ne2ne-action-btn-group {
    display: inline-flex;
    align-items: stretch;
}
.ne2ne-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.5;
    border: 1px solid;
    border-radius: 10px;
    background: #fff;
    box-shadow: none;
    transform: none;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.ne2ne-action-btn-group .ne2ne-action-btn {
    border-radius: 0;
}
.ne2ne-action-btn-group .ne2ne-action-btn:first-child {
    border-radius: 10px 0 0 10px;
}
.ne2ne-action-btn-group .ne2ne-action-btn:last-child {
    border-radius: 0 10px 10px 0;
    margin-left: -1px;
}
.ne2ne-action-btn-group .ne2ne-action-btn:only-child {
    border-radius: 10px;
    margin-left: 0;
}
.ne2ne-action-btn--primary {
    border-color: var(--ne2ne-bright-blue);
    color: var(--ne2ne-bright-blue);
    background: rgba(64, 138, 244, 0.08);
}
.ne2ne-action-btn--primary:hover:not(:disabled),
.ne2ne-action-btn--primary:focus-visible:not(:disabled) {
    background: var(--ne2ne-bright-blue);
    border-color: var(--ne2ne-bright-blue);
    color: #fff;
    box-shadow: none;
    transform: none;
}
.ne2ne-action-btn--danger {
    border-color: #dc3545;
    color: #dc3545;
    background: rgba(220, 53, 69, 0.06);
}
.ne2ne-action-btn--danger:hover:not(:disabled),
.ne2ne-action-btn--danger:focus-visible:not(:disabled) {
    background: #dc3545;
    border-color: #dc3545;
    color: #fff;
    box-shadow: none;
    transform: none;
}
.ne2ne-action-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}
.wf-search-form .wf-search-shell {
    display: flex;
    align-items: center;
    min-height: 3rem;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(30, 32, 153, 0.1);
    border-radius: 999px;
    box-shadow: 0 4px 24px rgba(30, 32, 153, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.85);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.wf-search-form .wf-search-shell:focus-within {
    border-color: rgba(64, 138, 244, 0.45);
    box-shadow:
        0 6px 28px rgba(30, 32, 153, 0.1),
        0 0 0 3px rgba(64, 138, 244, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.wf-search-form .wf-search-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 1rem;
    color: var(--ne2ne-text-secondary);
    opacity: 0.85;
    pointer-events: none;
}
.wf-search-form .wf-search-icon-wrap i {
    font-size: 0.95rem;
}
.wf-search-form .wf-search-input {
    flex: 1;
    min-width: 0;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--ne2ne-text-primary);
    padding: 0.65rem 0.5rem 0.65rem 1.15rem;
}
.wf-search-form .wf-search-input::placeholder {
    color: rgba(107, 114, 128, 0.8);
    font-weight: 400;
}
.wf-search-form .wf-search-input:focus {
    outline: none;
}
.wf-search-form .wf-search-btn {
    align-self: stretch;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    flex-shrink: 0;
    border: 1px solid rgba(30, 32, 153, 0.12);
    margin: 0.3125rem 0.375rem 0.3125rem 0;
    padding: 0 1.1rem;
    min-width: 5.75rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ne2ne-blue);
    background: #fff;
    box-shadow: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.wf-search-form .wf-search-btn i {
    font-size: 0.95rem;
    opacity: 0.85;
}
.wf-search-form .wf-search-btn:hover,
.wf-search-form .wf-search-btn:active,
.wf-search-form .wf-search-btn:focus-visible,
.wf-search-form .wf-search-shell:focus-within .wf-search-btn {
    color: #fff;
    border-color: transparent;
    background: var(--ne2ne-gradient-primary);
    box-shadow: 0 4px 16px rgba(64, 138, 244, 0.4);
}
.wf-search-form .wf-search-btn:hover {
    transform: translateY(-1px);
}
.wf-search-form .wf-search-btn:active {
    transform: translateY(0);
}
.wf-search-form .wf-search-btn:focus-visible {
    outline: 2px solid var(--ne2ne-bright-blue);
    outline-offset: 3px;
}
.wf-search-form .wf-search-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    border-radius: 999px;
    padding: 0 1.15rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(30, 32, 153, 0.16);
    background: rgba(255, 255, 255, 0.65);
    color: var(--ne2ne-text-secondary);
    text-decoration: none;
    white-space: nowrap;
}
.wf-search-form .wf-search-clear:hover {
    border-color: rgba(64, 138, 244, 0.35);
    background: rgba(255, 255, 255, 0.9);
    color: var(--ne2ne-blue);
}

.wf-search-form .wf-filter-shell {
    display: inline-flex;
    align-items: center;
    min-height: 3rem;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(30, 32, 153, 0.1);
    border-radius: 999px;
    box-shadow: 0 4px 24px rgba(30, 32, 153, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.85);
    padding-right: 0.75rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.wf-search-form .wf-filter-shell:focus-within {
    border-color: rgba(64, 138, 244, 0.45);
    box-shadow:
        0 6px 28px rgba(30, 32, 153, 0.1),
        0 0 0 3px rgba(64, 138, 244, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.wf-search-form .wf-filter-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 1rem;
    padding-right: 0.25rem;
    color: var(--ne2ne-text-secondary);
    opacity: 0.85;
    pointer-events: none;
}
.wf-search-form .wf-filter-icon i {
    font-size: 0.95rem;
}
.wf-search-form .wf-filter-select {
    border: 0;
    background: transparent;
    box-shadow: none;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ne2ne-text-primary);
    padding: 0.65rem 1.5rem 0.65rem 0.15rem;
    min-width: 0;
    width: auto;
    max-width: 11rem;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16' fill='%236B7280'%3E%3Cpath d='M4.646 6.646a.5.5 0 0 1 .708 0L8 9.293l2.646-2.647a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
}
.wf-search-form .wf-filter-select:focus {
    outline: none;
}
.wf-search-form--with-create .wf-search-shell {
    flex: 1 1 14rem;
    max-width: 26rem;
}
.wf-create-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 3rem;
    padding: 0 1.15rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    background: var(--ne2ne-gradient-primary);
    box-shadow: 0 4px 16px rgba(64, 138, 244, 0.4);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.wf-create-btn i {
    font-size: 0.95rem;
}
.wf-create-btn:hover,
.wf-create-btn:active,
.wf-create-btn:focus-visible {
    color: #fff;
    border-color: transparent;
    background: var(--ne2ne-gradient-primary);
    box-shadow: 0 6px 20px rgba(64, 138, 244, 0.5);
    filter: brightness(1.05);
}
.wf-create-btn:hover {
    transform: translateY(-1px);
}
.wf-create-btn:active {
    transform: translateY(0);
    filter: brightness(0.98);
}
.wf-create-btn:focus-visible {
    outline: 2px solid var(--ne2ne-bright-blue);
    outline-offset: 3px;
}
@media (max-width: 575.98px) {
    .wf-search-form .wf-filter-shell {
        flex: 1 1 calc(50% - 0.5rem);
    }
    .wf-search-form .wf-filter-select {
        max-width: none;
        width: 100%;
    }
}
.wf-pagination-bar {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}
.wf-pagination-bar .wf-pagination-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(1rem, 4vw, 1.85rem);
    flex-wrap: wrap;
}
.wf-pagination-bar .wf-pagination-total {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ne2ne-text-secondary);
    letter-spacing: 0.01em;
}
.wf-pagination-bar .wf-pagination-total strong {
    color: var(--ne2ne-blue);
    font-weight: 600;
}
.wf-pagination-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    border: 1px solid rgba(30, 32, 153, 0.12);
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 16px rgba(30, 32, 153, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.95);
    color: var(--ne2ne-blue);
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}
.wf-pagination-arrow i {
    font-size: 1.2rem;
    line-height: 1;
}
.wf-pagination-arrow:hover:not(.is-disabled) {
    border-color: rgba(64, 138, 244, 0.45);
    color: var(--ne2ne-bright-blue);
    box-shadow: 0 6px 20px rgba(64, 138, 244, 0.18), inset 0 1px 0 rgba(255, 255, 255, 1);
    transform: translateY(-1px);
}
.wf-pagination-arrow:active:not(.is-disabled) {
    transform: translateY(0);
}
.wf-pagination-arrow:focus-visible:not(.is-disabled) {
    outline: 2px solid var(--ne2ne-bright-blue);
    outline-offset: 3px;
}
.wf-pagination-arrow.is-disabled {
    opacity: 0.32;
    cursor: default;
    pointer-events: none;
}

.page-help-btn {
    width: 2rem;
    height: 2rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(251, 191, 36, 0.45);
    color: #d97706;
    background: linear-gradient(145deg, rgba(255, 251, 235, 0.95), rgba(254, 243, 199, 0.85));
    line-height: 1;
    flex-shrink: 0;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.12);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.page-help-btn:hover,
.page-help-btn:focus-visible {
    transform: translateY(-1px);
    color: #b45309;
    border-color: rgba(251, 191, 36, 0.75);
    background: linear-gradient(145deg, #fffbeb, #fef3c7);
    box-shadow: 0 6px 16px rgba(217, 119, 6, 0.18);
}

.page-help-btn[aria-describedby] {
    color: #b45309;
    border-color: rgba(251, 191, 36, 0.85);
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.22);
}

.popover.page-help-popover {
    max-width: min(380px, calc(100vw - 2rem));
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(30, 32, 153, 0.16), 0 4px 12px rgba(15, 23, 42, 0.08);
    background: #fff;
}

.popover.page-help-popover .popover-arrow::before,
.popover.page-help-popover .popover-arrow::after {
    border-bottom-color: #fff;
}

.popover.page-help-popover .popover-header {
    display: none;
    padding: 0;
    margin: 0;
    border: none;
}

.popover.page-help-popover .popover-body {
    padding: 0;
    color: inherit;
}

.page-help-popover-inner {
    overflow: hidden;
}

.page-help-popover-head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    background: linear-gradient(135deg, var(--ne2ne-blue, #1e2099) 0%, var(--ne2ne-bright-blue, #2563eb) 100%);
    color: #fff;
}

.page-help-popover-icon {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.16);
    color: #fde68a;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.page-help-popover-title {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.3;
}

.page-help-popover-text {
    padding: 1rem 1.05rem 1.1rem;
    font-size: 0.875rem;
    color: #475569;
    line-height: 1.55;
    background: linear-gradient(180deg, #fafbff 0%, #fff 100%);
}

.page-help-popover-text a {
    color: var(--ne2ne-bright-blue, #2563eb);
    font-weight: 500;
    text-decoration: none;
}

.page-help-popover-text a:hover {
    color: var(--ne2ne-blue, #1e2099);
    text-decoration: underline;
}

.page-help-popover-text strong {
    color: #1e293b;
    font-weight: 600;
}

/* My Resources card action buttons (Edit / Delete / Publish) */
.resource-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.resource-card-actions .resource-card-btn {
    flex: 1 1 0;
    min-width: 0;
    background: #fff;
    border: 1px solid;
    border-radius: 8px;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    box-shadow: none;
    transform: none;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.resource-card-actions .resource-card-btn:hover,
.resource-card-actions .resource-card-btn:focus-visible {
    transform: none;
    box-shadow: none;
}

.resource-card-actions .resource-card-btn-edit {
    border-color: var(--ne2ne-blue);
    background: #fff;
    color: var(--ne2ne-blue);
}

.resource-card-actions .resource-card-btn-edit:hover,
.resource-card-actions .resource-card-btn-edit:focus-visible {
    background: rgba(64, 138, 244, 0.12);
    border-color: var(--ne2ne-bright-blue);
    color: var(--ne2ne-bright-blue);
}

.resource-card-actions .resource-card-btn-danger {
    border-color: #dc3545;
    color: #dc3545;
}

.resource-card-actions .resource-card-btn-danger:hover,
.resource-card-actions .resource-card-btn-danger:focus-visible {
    background: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

.resource-card-actions .resource-card-btn-publish {
    border-color: var(--ne2ne-mint-green);
    color: #0d9488;
}

.resource-card-actions .resource-card-btn-publish:hover,
.resource-card-actions .resource-card-btn-publish:focus-visible {
    background: var(--ne2ne-mint-green);
    border-color: var(--ne2ne-mint-green);
    color: var(--ne2ne-blue);
}

/* My Resources list cards — consistent height and layout */
.resource-list-card {
    display: flex;
    flex-direction: column;
}

.resource-list-card .glass-card-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.resource-list-card .resource-card-creator {
    display: block;
    color: #6B7280;
    font-size: 0.8125rem;
    margin-bottom: 0.5rem;
}

.resource-list-card .resource-card-description {
    color: #6B7280;
    min-height: 2.75rem;
    max-height: 2.75rem;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.resource-list-card .resource-card-detail {
    min-height: 3.25rem;
    margin-bottom: 1rem;
}

.resource-list-card .resource-card-detail-label {
    color: #6B7280;
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.875rem;
}

.resource-list-card .resource-card-actions {
    margin-top: auto;
}

.resource-card-run-btn {
    font-weight: 600;
    border-radius: 8px;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border: 1px solid var(--ne2ne-bright-blue);
    background: var(--ne2ne-bright-blue);
    color: #fff;
    box-shadow: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.resource-card-run-btn:hover,
.resource-card-run-btn:focus-visible {
    background: #3578e0;
    border-color: #3578e0;
    color: #fff;
    box-shadow: none;
    opacity: 1;
}

/* Workflow build guide */
.workflow-guide-modal .modal-dialog.workflow-guide-dialog {
    max-width: 24rem;
}
.workflow-guide-modal .modal-content {
    border-radius: 2rem;
    border: 1px solid rgba(148, 163, 184, 0.12);
    overflow: hidden;
    background: #eef1f6;
    box-shadow:
        0 24px 48px rgba(15, 23, 42, 0.12),
        0 8px 20px rgba(15, 23, 42, 0.08);
}
.workflow-guide-modal .modal-header,
.workflow-guide-modal .modal-body,
.workflow-guide-modal .modal-footer {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    background: transparent;
}
.workflow-guide-modal .workflow-guide-modal-header {
    justify-content: flex-end;
    padding-top: 1rem;
    padding-bottom: 0;
}
.workflow-guide-modal .workflow-guide-card {
    margin-bottom: 0;
    border-radius: 1.75rem;
    min-height: 22rem;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow:
        0 8px 24px rgba(15, 23, 42, 0.08),
        0 2px 6px rgba(15, 23, 42, 0.04);
}
.workflow-guide-modal .workflow-guide-card .glass-card-body {
    min-height: 22rem;
    display: flex;
    align-items: stretch;
    background: #fff;
}
.workflow-guide-modal .workflow-guide-step-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    min-height: 18.5rem;
    width: 100%;
    text-align: center;
}
.workflow-guide-modal .workflow-guide-step-copy {
    width: 100%;
    text-align: left;
}
.workflow-guide-modal .workflow-guide-step-copy h6 {
    text-align: center;
}
.workflow-guide-modal .workflow-guide-card:hover {
    transform: none;
    box-shadow:
        0 8px 24px rgba(15, 23, 42, 0.08),
        0 2px 6px rgba(15, 23, 42, 0.04);
}
.workflow-guide-icon {
    width: 3.25rem;
    height: 3.25rem;
    flex-shrink: 0;
    border-radius: 1.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: white;
    background: linear-gradient(135deg, var(--ne2ne-blue), var(--ne2ne-bright-blue));
}
.workflow-guide-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(64, 138, 244, 0.25);
    transition: background 0.2s ease, transform 0.2s ease;
}
.workflow-guide-dot.active {
    background: var(--ne2ne-bright-blue);
    transform: scale(1.25);
}
#workflowGuideBody a {
    font-weight: 600;
}
.workflow-guide-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.3rem 0.85rem 0.3rem 0.3rem;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 999px;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(8px);
    box-shadow: none;
    transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.workflow-guide-trigger:hover,
.workflow-guide-trigger:focus-visible {
    color: #475569;
    border-color: rgba(148, 163, 184, 0.35);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: none;
}
.workflow-guide-trigger-icon {
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.8rem;
    color: #eab308;
    background: rgba(251, 191, 36, 0.14);
}
.workflow-guide-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1.5rem;
}
.workflow-guide-nav-btn {
    border: none;
    background: transparent;
    padding: 0.25rem;
    line-height: 1;
    color: #cbd5e1;
    font-size: 1.75rem;
    transition: color 0.15s ease, opacity 0.15s ease;
}
.workflow-guide-nav-btn:hover:not(:disabled),
.workflow-guide-nav-btn:focus-visible:not(:disabled) {
    color: #94a3b8;
}
.workflow-guide-nav-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

/* Shared step navigation — map, grammar, and workflow editors */
.guided-wizard-card .step-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 20px 2.5rem;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    margin-top: auto;
}

.guided-wizard-card .nav-btn {
    padding: 12px 30px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.guided-wizard-card .nav-btn-back {
    background: white;
    color: var(--ne2ne-blue);
    border: 2px solid var(--ne2ne-blue);
}

.guided-wizard-card .nav-btn-back:hover:not(:disabled) {
    background: var(--ne2ne-blue);
    color: white;
}

.guided-wizard-card .nav-btn-next {
    background: var(--ne2ne-bright-blue);
    color: white;
}

.guided-wizard-card .nav-btn-next:hover:not(:disabled) {
    background: var(--ne2ne-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(64, 138, 244, 0.3);
}

.guided-wizard-card .nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.guided-wizard-card .guided-wizard-footer {
    margin-top: auto;
}

.guided-wizard-dismiss {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    color: #94a3b8;
    text-decoration: none;
    font-size: 1.05rem;
    transition: color 0.15s ease, background 0.15s ease;
}
.guided-wizard-dismiss:hover,
.guided-wizard-dismiss:focus-visible {
    color: #64748b;
    background: rgba(148, 163, 184, 0.14);
}

/* Platform guided tour (Shepherd.js) */
.shepherd-modal-overlay-container.shepherd-modal-is-visible {
    opacity: 0.45;
}
.ne2ne-tour-step.shepherd-element {
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow:
        0 20px 40px rgba(15, 23, 42, 0.16),
        0 6px 16px rgba(15, 23, 42, 0.08);
    max-width: 22rem;
}
.ne2ne-tour-step .shepherd-header {
    background: rgba(102, 126, 234, 0.08);
    border-bottom: 1px solid rgba(118, 75, 162, 0.12);
    border-radius: 1rem 1rem 0 0;
    padding: 0.85rem 1rem 0.65rem;
}
.ne2ne-tour-step .shepherd-title {
    font-weight: 600;
    font-size: 1rem;
    color: #667eea;
}
.ne2ne-tour-step .shepherd-cancel-icon {
    color: #764ba2;
}
.ne2ne-tour-step .shepherd-cancel-icon:hover {
    color: #667eea;
}
.ne2ne-tour-step .shepherd-text {
    color: var(--ne2ne-text-primary);
    font-size: 0.9375rem;
    line-height: 1.5;
    padding: 1rem 1rem 0.5rem;
}
.ne2ne-tour-step .shepherd-footer {
    padding: 0.5rem 1rem 1rem;
    gap: 0.5rem;
}
.ne2ne-tour-step .shepherd-button {
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.45rem 1rem;
}
.ne2ne-tour-step .shepherd-button-primary {
    background: var(--ne2ne-gradient-primary);
    color: #fff;
    border: none;
}
.ne2ne-tour-step .shepherd-button-primary:not(:disabled):hover {
    opacity: 0.92;
}
.ne2ne-tour-step .shepherd-button-secondary {
    background: rgba(148, 163, 184, 0.12);
    color: var(--ne2ne-text-primary);
    border: 1px solid rgba(148, 163, 184, 0.25);
}
.ne2ne-tour-step .shepherd-arrow::before {
    background: #fff;
}
.ne2ne-tour-pulse-ring {
    position: relative;
    z-index: 1;
}
.ne2ne-tour-pulse-ring::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 12px;
    border: 2px solid var(--ne2ne-bright-blue);
    pointer-events: none;
    animation: ne2ne-tour-pulse 1.6s ease-out infinite;
}
@keyframes ne2ne-tour-pulse {
    0% {
        transform: scale(0.98);
        opacity: 0.9;
    }
    70% {
        transform: scale(1.06);
        opacity: 0;
    }
    100% {
        transform: scale(1.06);
        opacity: 0;
    }
}

