/* ============================================================
   enterprise.css — CyberAI Enterprise Dashboard
   Extends the existing dark theme from index_new.css
   ============================================================ */

:root {
    --bg-primary: #0a0f1c;
    --bg-secondary: #111827;
    --bg-card: rgba(17, 24, 39, 0.8);
    --bg-card-solid: #111827;
    --bg-glass: rgba(255, 255, 255, 0.03);
    --bg-sidebar: #0d1220;
    --bg-hover: rgba(255, 255, 255, 0.05);
    --bg-active: rgba(59, 130, 246, 0.12);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-focus: rgba(59, 130, 246, 0.5);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.45);
    --accent-primary: #3b82f6;
    --accent-secondary: #8b5cf6;
    --accent-gradient: linear-gradient(135deg, #3b82f6, #8b5cf6);
    --accent-glow: rgba(59, 130, 246, 0.4);
    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.12);
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.12);
    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.12);
    --info: #06b6d4;
    --info-bg: rgba(6, 182, 212, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --sidebar-width: 260px;
    --header-height: 64px;
    --transition: 0.2s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ============================================================
   LAYOUT: Sidebar + Main
   ============================================================ */
.ent-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.ent-sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    transition: transform 0.3s ease;
}

.ent-sidebar-header {
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--border-color);
}

.ent-sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.ent-sidebar-logo img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: contain;
}

.ent-sidebar-logo-text {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
}

.ent-sidebar-logo-text span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ent-sidebar-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: var(--accent-gradient);
    color: #fff;
    border-radius: 100px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.ent-sidebar-org {
    margin-top: 12px;
    padding: 10px 12px;
    background: var(--bg-hover);
    border-radius: var(--radius-md);
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.ent-sidebar-org-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.88rem;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ent-sidebar-org-role {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Sidebar Nav */
.ent-sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    overflow-y: auto;
}

.ent-sidebar-nav-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    padding: 8px 12px 6px;
    margin-top: 8px;
}

.ent-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.ent-nav-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.ent-nav-item.active {
    background: var(--bg-active);
    color: var(--accent-primary);
    font-weight: 600;
}

.ent-nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 24px;
    background: var(--accent-primary);
    border-radius: 0 3px 3px 0;
}

.ent-nav-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.ent-nav-badge {
    margin-left: auto;
    padding: 2px 8px;
    background: var(--danger);
    color: #fff;
    border-radius: 100px;
    font-size: 0.68rem;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}

/* Sidebar Footer */
.ent-sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border-color);
}

.ent-sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background var(--transition);
}

.ent-sidebar-user:hover {
    background: var(--bg-hover);
}

.ent-sidebar-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.82rem;
    color: #fff;
    flex-shrink: 0;
}

.ent-sidebar-user-info {
    flex: 1;
    min-width: 0;
}

.ent-sidebar-user-name {
    font-weight: 600;
    font-size: 0.82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ent-sidebar-user-email {
    font-size: 0.72rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================================
   MAIN CONTENT AREA
   ============================================================ */
.ent-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Top Header */
.ent-header {
    height: var(--header-height);
    background: rgba(10, 15, 28, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.ent-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ent-header-title {
    font-size: 1.15rem;
    font-weight: 700;
}

.ent-header-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.ent-header-breadcrumb span {
    color: var(--text-secondary);
}

.ent-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ent-header-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 0.82rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.ent-header-btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 4px 12px var(--accent-glow);
}

.ent-header-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

.ent-header-btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.ent-header-btn-ghost:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.15);
}

.ent-mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 8px;
}

/* Content */
.ent-content {
    flex: 1;
    padding: 32px;
    max-width: 1400px;
}

/* ============================================================
   SECTION PANELS (toggle visibility)
   ============================================================ */
.ent-section {
    display: none;
    animation: entFadeIn 0.3s ease;
}

.ent-section.active {
    display: block;
}

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

/* ============================================================
   CARDS & STATS
   ============================================================ */
.ent-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.ent-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.ent-stat-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.ent-stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    opacity: 0.06;
    transform: translate(30%, -30%);
}

.ent-stat-card--blue::after { background: var(--accent-primary); }
.ent-stat-card--purple::after { background: var(--accent-secondary); }
.ent-stat-card--green::after { background: var(--success); }
.ent-stat-card--amber::after { background: var(--warning); }
.ent-stat-card--red::after { background: var(--danger); }
.ent-stat-card--cyan::after { background: var(--info); }

.ent-stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.ent-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.ent-stat-icon--blue { background: rgba(59, 130, 246, 0.15); color: var(--accent-primary); }
.ent-stat-icon--purple { background: rgba(139, 92, 246, 0.15); color: var(--accent-secondary); }
.ent-stat-icon--green { background: var(--success-bg); color: var(--success); }
.ent-stat-icon--amber { background: var(--warning-bg); color: var(--warning); }
.ent-stat-icon--red { background: var(--danger-bg); color: var(--danger); }
.ent-stat-icon--cyan { background: var(--info-bg); color: var(--info); }

.ent-stat-trend {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 100px;
}

.ent-stat-trend--up { background: var(--success-bg); color: var(--success); }
.ent-stat-trend--down { background: var(--danger-bg); color: var(--danger); }

.ent-stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 4px;
}

.ent-stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Generic Card */
.ent-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.ent-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 12px;
}

.ent-card-title {
    font-size: 1rem;
    font-weight: 700;
}

.ent-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ent-card-body {
    padding: 24px;
}

.ent-card-body--flush {
    padding: 0;
}

/* ============================================================
   TABLES
   ============================================================ */
.ent-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.ent-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.ent-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.02);
}

.ent-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.ent-table tbody tr {
    transition: background var(--transition);
}

.ent-table tbody tr:hover {
    background: var(--bg-hover);
}

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

/* ============================================================
   BADGES & STATUS
   ============================================================ */
.ent-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
}

.ent-badge--success { background: var(--success-bg); color: var(--success); }
.ent-badge--warning { background: var(--warning-bg); color: var(--warning); }
.ent-badge--danger { background: var(--danger-bg); color: var(--danger); }
.ent-badge--info { background: var(--info-bg); color: var(--info); }
.ent-badge--purple { background: rgba(139, 92, 246, 0.15); color: var(--accent-secondary); }
.ent-badge--neutral { background: rgba(255, 255, 255, 0.08); color: var(--text-secondary); }

/* ============================================================
   BUTTONS
   ============================================================ */
.ent-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
    font-family: inherit;
}

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

.ent-btn--primary {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 4px 12px var(--accent-glow);
}

.ent-btn--primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

.ent-btn--secondary {
    background: var(--bg-hover);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.ent-btn--secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.ent-btn--ghost {
    background: transparent;
    color: var(--text-secondary);
}

.ent-btn--ghost:hover:not(:disabled) {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.ent-btn--danger {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.ent-btn--danger:hover:not(:disabled) {
    background: rgba(239, 68, 68, 0.2);
}

.ent-btn--success {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.ent-btn--sm {
    padding: 6px 12px;
    font-size: 0.78rem;
}

.ent-btn--lg {
    padding: 14px 28px;
    font-size: 0.95rem;
}

.ent-btn--icon {
    padding: 8px;
    width: 36px;
    height: 36px;
}

/* ============================================================
   FORMS
   ============================================================ */
.ent-form-group {
    margin-bottom: 18px;
}

.ent-form-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.ent-form-input {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.88rem;
    font-family: inherit;
    transition: border-color var(--transition);
    outline: none;
}

.ent-form-input:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.ent-form-input::placeholder {
    color: var(--text-muted);
}

.ent-form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='rgba(255,255,255,0.5)' viewBox='0 0 16 16'%3E%3Cpath d='M8 11.5l-5-5h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

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

.ent-form-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.ent-form-error {
    font-size: 0.75rem;
    color: var(--danger);
    margin-top: 4px;
}

/* ============================================================
   PROGRESS BAR
   ============================================================ */
.ent-progress {
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    overflow: hidden;
    position: relative;
}

.ent-progress-bar {
    height: 100%;
    border-radius: 100px;
    background: var(--accent-gradient);
    transition: width 0.6s ease;
    position: relative;
}

.ent-progress-bar--success { background: var(--success); }
.ent-progress-bar--warning { background: var(--warning); }
.ent-progress-bar--danger { background: var(--danger); }

.ent-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    margin-bottom: 6px;
}

.ent-progress-label span:last-child {
    font-weight: 700;
    color: var(--text-primary);
}

/* Progress Ring (SVG-based) */
.ent-progress-ring {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ent-progress-ring svg {
    transform: rotate(-90deg);
}

.ent-progress-ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.08);
}

.ent-progress-ring-fill {
    fill: none;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.6s ease;
}

.ent-progress-ring-text {
    position: absolute;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
}

/* ============================================================
   MODAL
   ============================================================ */
.ent-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    animation: entFadeIn 0.2s ease;
}

.ent-modal-overlay.active {
    display: flex;
}

.ent-modal {
    background: var(--bg-card-solid);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    animation: entSlideUp 0.3s ease;
}

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

.ent-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.ent-modal-title {
    font-size: 1.1rem;
    font-weight: 700;
}

.ent-modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: color var(--transition);
}

.ent-modal-close:hover {
    color: var(--text-primary);
}

.ent-modal-body {
    padding: 24px;
}

.ent-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.ent-empty {
    text-align: center;
    padding: 60px 24px;
}

.ent-empty-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.ent-empty-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.ent-empty-desc {
    color: var(--text-muted);
    font-size: 0.88rem;
    max-width: 400px;
    margin: 0 auto 20px;
    line-height: 1.6;
}

/* ============================================================
   ACTIVITY FEED / TIMELINE
   ============================================================ */
.ent-timeline {
    position: relative;
    padding-left: 24px;
}

.ent-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: var(--border-color);
}

.ent-timeline-item {
    position: relative;
    padding-bottom: 20px;
}

.ent-timeline-item:last-child {
    padding-bottom: 0;
}

.ent-timeline-dot {
    position: absolute;
    left: -20px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-primary);
    border: 2px solid var(--bg-card-solid);
}

.ent-timeline-dot--success { background: var(--success); }
.ent-timeline-dot--warning { background: var(--warning); }

.ent-timeline-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.ent-timeline-text strong {
    color: var(--text-primary);
}

.ent-timeline-time {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ============================================================
   QUICK ACTIONS
   ============================================================ */
.ent-quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 28px;
}

.ent-quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 18px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    color: var(--text-primary);
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

.ent-quick-action:hover {
    border-color: var(--accent-primary);
    background: var(--bg-active);
    transform: translateY(-2px);
}

.ent-quick-action-icon {
    font-size: 1.4rem;
}

.ent-quick-action-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-align: center;
}

/* ============================================================
   GRID LAYOUTS
   ============================================================ */
.ent-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 28px;
}

.ent-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 28px;
}

/* ============================================================
   SEARCH & FILTER BAR
   ============================================================ */
.ent-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.ent-search {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.ent-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
    pointer-events: none;
}

.ent-search input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-family: inherit;
    outline: none;
    transition: border-color var(--transition);
}

.ent-search input:focus {
    border-color: var(--border-focus);
}

.ent-search input::placeholder {
    color: var(--text-muted);
}

.ent-filter-select {
    padding: 10px 36px 10px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-family: inherit;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='rgba(255,255,255,0.5)' viewBox='0 0 16 16'%3E%3Cpath d='M8 11.5l-5-5h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
}

/* ============================================================
   PRICING CARDS (Enterprise Seat Purchase)
   ============================================================ */
.ent-pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.ent-pricing-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
}

.ent-pricing-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.ent-pricing-card.selected {
    border-color: var(--accent-primary);
    background: var(--bg-active);
}

.ent-pricing-card--featured {
    border-color: rgba(139, 92, 246, 0.3);
}

.ent-pricing-card--featured::before {
    content: 'Best Value';
    position: absolute;
    top: -1px;
    right: 16px;
    padding: 4px 12px;
    background: var(--accent-gradient);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    border-radius: 0 0 8px 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ent-pricing-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.ent-pricing-amount {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.ent-pricing-amount small {
    font-size: 0.5em;
    font-weight: 400;
    color: var(--text-muted);
}

.ent-pricing-note {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.ent-pricing-features {
    list-style: none;
}

.ent-pricing-features li {
    font-size: 0.82rem;
    color: var(--text-secondary);
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ent-pricing-features li::before {
    content: '✓';
    color: var(--success);
    font-weight: 700;
    font-size: 0.78rem;
}

/* ============================================================
   SEAT QUANTITY SELECTOR
   ============================================================ */
.ent-qty {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    width: fit-content;
}

.ent-qty button {
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    border: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
}

.ent-qty button:hover {
    background: var(--bg-hover);
}

.ent-qty input {
    width: 60px;
    height: 40px;
    background: var(--bg-primary);
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    color: var(--text-primary);
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    outline: none;
}

/* ============================================================
   CHART PLACEHOLDER (simple CSS charts)
   ============================================================ */
.ent-chart-bar-group {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 140px;
    padding-top: 12px;
}

.ent-chart-bar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    height: 100%;
    justify-content: flex-end;
}

.ent-chart-bar {
    width: 100%;
    max-width: 32px;
    border-radius: 4px 4px 0 0;
    background: var(--accent-gradient);
    transition: height 0.6s ease;
    min-height: 4px;
}

.ent-chart-bar--secondary {
    background: rgba(139, 92, 246, 0.5);
}

.ent-chart-bar-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    white-space: nowrap;
}

/* ============================================================
   DONUT CHART (CSS-only)
   ============================================================ */
.ent-donut {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ent-donut-center {
    position: absolute;
    text-align: center;
}

.ent-donut-value {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1;
}

.ent-donut-label {
    font-size: 0.68rem;
    color: var(--text-muted);
}

/* ============================================================
   NOTIFICATION TOAST
   ============================================================ */
.ent-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ent-toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--bg-card-solid);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: entSlideInRight 0.3s ease;
    min-width: 300px;
    max-width: 440px;
}

@keyframes entSlideInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

.ent-toast--success { border-left: 3px solid var(--success); }
.ent-toast--error { border-left: 3px solid var(--danger); }
.ent-toast--info { border-left: 3px solid var(--accent-primary); }
.ent-toast--warning { border-left: 3px solid var(--warning); }

.ent-toast-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.ent-toast-content {
    flex: 1;
}

.ent-toast-title {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.ent-toast-msg {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.ent-toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    padding: 4px;
    flex-shrink: 0;
}

/* ============================================================
   USER ROW (avatar + name + email)
   ============================================================ */
.ent-user-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ent-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    color: #fff;
    flex-shrink: 0;
}

.ent-user-name {
    font-weight: 600;
    font-size: 0.85rem;
}

.ent-user-email {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ============================================================
   TABS (for sub-navigation within sections)
   ============================================================ */
.ent-tabs {
    display: flex;
    gap: 2px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.ent-tab {
    padding: 12px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
}

.ent-tab:hover {
    color: var(--text-secondary);
}

.ent-tab.active {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .ent-grid-2 { grid-template-columns: 1fr; }
    .ent-grid-3 { grid-template-columns: 1fr 1fr; }
    .ent-pricing-grid { grid-template-columns: 1fr; }
}

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

    .ent-sidebar.open {
        transform: translateX(0);
    }

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

    .ent-mobile-toggle {
        display: block;
    }

    .ent-content {
        padding: 20px 16px;
    }

    .ent-header {
        padding: 0 16px;
    }

    .ent-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ent-grid-3 { grid-template-columns: 1fr; }

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

    .ent-quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }

    .ent-card-header {
        padding: 14px 16px;
    }

    .ent-card-body {
        padding: 16px;
    }

    .ent-modal {
        max-width: 100%;
        border-radius: var(--radius-lg);
    }
}

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

    .ent-quick-actions {
        grid-template-columns: 1fr 1fr;
    }

    .ent-stat-value {
        font-size: 1.4rem;
    }
}

/* Sidebar overlay for mobile */
.ent-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
}

.ent-sidebar-overlay.active {
    display: block;
}

/* ============================================================
   LOADING SKELETON
   ============================================================ */
.ent-skeleton {
    background: linear-gradient(90deg, var(--bg-secondary) 25%, rgba(255, 255, 255, 0.05) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: entShimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes entShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.ent-skeleton-line { height: 14px; margin-bottom: 10px; }
.ent-skeleton-line:last-child { width: 60%; }
.ent-skeleton-card { height: 120px; }

/* ============================================================
   SECTION-SPECIFIC: Overview page layout
   ============================================================ */
.ent-overview-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 28px;
}

@media (max-width: 1024px) {
    .ent-overview-grid { grid-template-columns: 1fr; }
}

/* Welcome banner */
.ent-welcome {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(139, 92, 246, 0.12));
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}

.ent-welcome::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08), transparent 70%);
    pointer-events: none;
}

.ent-welcome-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.ent-welcome-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    max-width: 600px;
    margin-bottom: 16px;
    line-height: 1.6;
}

/* ============================================================
   ALERT / INFO BOX
   ============================================================ */
.ent-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 0.85rem;
}

.ent-alert--info {
    background: var(--info-bg);
    border: 1px solid rgba(6, 182, 212, 0.2);
    color: var(--info);
}

.ent-alert--warning {
    background: var(--warning-bg);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

.ent-alert--success {
    background: var(--success-bg);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.ent-alert-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.ent-alert-text {
    flex: 1;
    line-height: 1.5;
}

.ent-alert-text strong {
    display: block;
    margin-bottom: 2px;
}

/* ============================================================
   LOADING SPINNER
   ============================================================ */
.ent-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: entSpin 0.8s linear infinite;
}

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

/* Centered loading */
.ent-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    gap: 16px;
}

.ent-loading-text {
    font-size: 0.88rem;
    color: var(--text-muted);
}
