/* SaaS Super Admin CSS - Ultimate Enterprise Design System */

:root {
    /* Color Palette */
    --bg-main: #060814;
    --bg-sidebar: #0b0f1d;
    --bg-card: rgba(13, 20, 38, 0.7);
    --border-color: rgba(255, 255, 255, 0.06);
    
    --primary: #0097b2; /* B2B cyan primary */
    --primary-hover: #007a91;
    --primary-glow: rgba(0, 151, 178, 0.25);
    
    --secondary: #7ed957;
    --secondary-hover: #6bc24a;
    --secondary-glow: rgba(126, 217, 87, 0.25);
    
    --text-main: #f3f4f6; /* gray-100 */
    --text-muted: #6b7280; /* gray-500 */
    
    /* Stat colors */
    --blue: #3b82f6;
    --green: #10b981;
    --orange: #f59e0b;
    --purple: #8b5cf6;
    --yellow: #eab308;
    --red: #ef4444;
    
    --btn-secondary-bg: rgba(255, 255, 255, 0.06);
    --btn-secondary-border: transparent;
    --btn-secondary-text: #f3f4f6;
    --btn-secondary-hover-bg: rgba(255, 255, 255, 0.1);
    --progress-track-bg: rgba(255, 255, 255, 0.05);

    --card-shadow: 0 15px 35px -15px rgba(0, 0, 0, 0.8);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Globals */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.5;
}

/* Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styling */
.sidebar {
    width: 210px;
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 24px;
    flex-shrink: 0;
}

.sidebar-header {
    margin-bottom: 40px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 24px;
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-text span {
    color: var(--primary);
    margin-left: 2px;
    font-size: 14px;
    font-weight: 500;
    background: rgba(139, 92, 246, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
    cursor: pointer;
}

.menu-item i {
    font-size: 16px;
}

.menu-item:hover, .menu-item.active {
    color: var(--text-main);
    background-color: rgba(255, 255, 255, 0.04);
}

.menu-item.active {
    background-color: rgba(139, 92, 246, 0.1);
    color: var(--primary);
    border-left: 3px solid var(--primary);
    border-radius: 0 8px 8px 0;
}

.menu-item.logout {
    margin-top: auto;
}

.menu-item.logout:hover {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--red);
    border-left-color: var(--red);
}

.sidebar-footer {
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 16px;
}

.user-info .user-name {
    font-weight: 600;
    font-size: 13px;
}

.user-info .user-role {
    font-size: 11px;
    color: var(--text-muted);
}

/* Main Content Area */
.main-content {
    flex-grow: 1;
    padding: 40px;
    overflow-y: auto;
    max-height: 100vh;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    padding: 12px 32px !important;
    margin-left: -40px;
    margin-right: -40px;
    margin-top: -40px;
    margin-bottom: 24px;
    position: sticky;
    top: -40px;
    z-index: 100;
    transition: background 0.3s ease, border-color 0.3s ease;
}

/* Light Theme Header (Pure white, clean backdrop, vibrant cyan title) */
body.light-theme .topbar,
body.light .topbar {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
}

body.light-theme .topbar-title h1,
body.light .topbar-title h1 {
    color: #0097b2 !important; /* Vibrant Cyan Brand Title */
    font-size: 21px !important;
    font-weight: 800 !important;
}

body.light-theme .topbar-title .subtitle,
body.light .topbar-title .subtitle {
    color: #475569 !important; /* Clear Slate Subtitle */
    font-weight: 500 !important;
}

/* Dark Theme Header (Deep navy blur backdrop, electric cyan title) */
body.dark-theme .topbar,
body.dark .topbar {
    background-color: rgba(11, 15, 29, 0.95) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body.dark-theme .topbar-title h1,
body.dark .topbar-title h1 {
    color: #00d2ff !important; /* Electric Cyan Title in Dark Mode */
    font-size: 21px !important;
    font-weight: 800 !important;
}

body.dark-theme .topbar-title .subtitle,
body.dark .topbar-title .subtitle {
    color: #94a3b8 !important;
    font-weight: 500 !important;
}

/* Topbar Header Action Buttons */
.topbar-btn {
    position: relative;
    padding: 8px 14px;
    font-size: 15px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

body.light-theme .topbar-btn,
body.light .topbar-btn {
    background-color: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

body.light-theme .topbar-btn:hover,
body.light .topbar-btn:hover {
    background-color: #e2e8f0 !important;
    border-color: var(--primary) !important;
    color: var(--primary) !important;
}

body.dark-theme .topbar-btn,
body.dark .topbar-btn {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #f8fafc !important;
}

body.dark-theme .topbar-btn:hover,
body.dark .topbar-btn:hover {
    background-color: rgba(0, 151, 178, 0.2) !important;
    border-color: var(--primary) !important;
    color: var(--primary) !important;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

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

.btn-secondary:hover {
    background-color: var(--btn-secondary-hover-bg);
}

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

.btn-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 6px;
    font-size: 14px;
}

.btn-icon-edit { background-color: rgba(59, 130, 246, 0.1); color: var(--blue); }
.btn-icon-edit:hover { background-color: var(--blue); color: #fff; }

.btn-icon-suspend { background-color: rgba(245, 158, 11, 0.1); color: var(--orange); }
.btn-icon-suspend:hover { background-color: var(--orange); color: #fff; }

.btn-icon-activate { background-color: rgba(16, 185, 129, 0.1); color: var(--green); }
.btn-icon-activate:hover { background-color: var(--green); color: #fff; }

.btn-icon-stats { background-color: rgba(139, 92, 246, 0.1); color: var(--primary); }
.btn-icon-stats:hover { background-color: var(--primary); color: #fff; }

.btn-icon-impersonate { background-color: rgba(234, 179, 8, 0.1); color: var(--yellow); }
.btn-icon-impersonate:hover { background-color: var(--yellow); color: var(--text-dark); }

.btn-icon-extend { background-color: rgba(16, 185, 129, 0.1); color: var(--green); }
.btn-icon-extend:hover { background-color: var(--green); color: #fff; }

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

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(10px);
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.icon-blue { background-color: rgba(59, 130, 246, 0.1); color: var(--blue); }
.icon-green { background-color: rgba(16, 185, 129, 0.1); color: var(--green); }
.icon-orange { background-color: rgba(245, 158, 11, 0.1); color: var(--orange); }
.icon-purple { background-color: rgba(139, 92, 246, 0.1); color: var(--purple); }

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 2px;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
}

/* Analytics Grid (Chart.js + CPU/RAM Dials) */
.analytics-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr 1.2fr;
    gap: 20px;
    margin-bottom: 32px;
}

.analytics-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(10px);
}

.analytics-card h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chart-container {
    position: relative;
    height: 220px;
    width: 100%;
}

/* System Dial Widgets */
.system-widget-card {
    display: flex;
    flex-direction: column;
}

.system-dials {
    display: flex;
    justify-content: space-around;
    gap: 16px;
    margin-bottom: 20px;
    flex-grow: 1;
    align-items: center;
}

.dial-container {
    position: relative;
    width: 100px;
    height: 100px;
}

.dial {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(var(--primary) var(--val), rgba(255, 255, 255, 0.05) var(--val));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px var(--primary-glow);
    transition: background 0.5s ease;
}

#cpu-dial {
    background: conic-gradient(var(--blue) var(--val), rgba(255, 255, 255, 0.05) var(--val));
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.15);
}
#ram-dial {
    background: conic-gradient(var(--purple) var(--val), rgba(255, 255, 255, 0.05) var(--val));
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.15);
}

.dial-inner {
    width: 86px;
    height: 86px;
    background-color: var(--bg-sidebar);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.dial-value {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.dial-label {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.system-status-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.system-status-list p {
    display: flex;
    justify-content: space-between;
}

.status-badge {
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.status-healthy { background-color: rgba(16, 185, 129, 0.15); color: var(--green); }
.status-issue { background-color: rgba(239, 68, 68, 0.15); color: var(--red); }

/* God-mode Live Activity Feed (Terminal Style) */
.live-feed-section {
    margin-top: 24px;
}

.terminal-log-container {
    background-color: #02040a;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    height: 250px;
    padding: 20px;
    font-family: monospace;
    font-size: 13px;
    overflow-y: auto;
    color: #a3e635; /* lime-400 */
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.9);
}

.terminal-row {
    margin-bottom: 6px;
    line-height: 1.4;
    word-break: break-all;
}

.terminal-row .time {
    color: #6b7280; /* gray-500 */
    margin-right: 8px;
}

.terminal-row.system-msg {
    color: #38bdf8; /* sky-400 */
}

.terminal-row.success-msg {
    color: #10b981; /* emerald-500 */
}

.terminal-row.warning-msg {
    color: #fbbf24; /* amber-400 */
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--green);
    background-color: rgba(16, 185, 129, 0.08);
    padding: 4px 10px;
    border-radius: 20px;
}

/* Tabs System */
.tab-content.hidden {
    display: none !important;
}

.quick-filters-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.filter-tab {
    background: none;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-tab:hover {
    color: var(--text-main);
    background-color: rgba(255, 255, 255, 0.03);
}

.filter-tab.active {
    background-color: rgba(139, 92, 246, 0.1);
    color: var(--primary);
    font-weight: 600;
}

/* Section Panel & Search/Filter */
.panel-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(10px);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.section-header h2 {
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.search-box {
    position: relative;
    width: 280px;
}

.search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
}

.search-box input {
    width: 100%;
    padding: 8px 14px 8px 40px;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 13px;
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-glow);
}

.form-control {
    padding: 8px 14px;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 13px;
}

.form-control:focus { outline: none; border-color: var(--primary); }

/* Tenant Table Styling */
.table-card { overflow: hidden; }
.table-responsive { overflow-x: auto; }
.tenant-table { width: 100%; border-collapse: collapse; text-align: left; }
.tenant-table th { padding: 14px 18px; color: var(--text-muted); font-weight: 600; font-size: 12px; border-bottom: 1px solid var(--border-color); text-transform: uppercase; }
.tenant-table td { padding: 14px 18px; border-bottom: 1px solid var(--border-color); font-size: 13px; }
.tenant-table tbody tr { transition: var(--transition); }
.tenant-table tbody tr:hover { background-color: rgba(255, 255, 255, 0.01); }

/* Highlight row near expiry */
.tenant-row-expiring-soon {
    background-color: rgba(245, 158, 11, 0.03);
    border-left: 3px solid var(--orange);
}
.tenant-row-expired {
    background-color: rgba(239, 68, 68, 0.03);
    border-left: 3px solid var(--red);
}

.tenant-id {
    font-family: monospace;
    font-weight: 600;
    color: var(--primary);
    background: rgba(139, 92, 246, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
}

.color-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-block;
    border: 1px solid var(--border-color);
    vertical-align: middle;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.badge-active { background-color: rgba(16, 185, 129, 0.15); color: var(--green); }
.badge-suspended { background-color: rgba(245, 158, 11, 0.15); color: var(--orange); }
.badge-expired { background-color: rgba(239, 68, 68, 0.15); color: var(--red); }
.badge-plan { background-color: rgba(255, 255, 255, 0.05); color: var(--text-main); font-weight: 500; }

.actions-cell { display: flex; gap: 6px; justify-content: flex-end; }
.actions-header { text-align: right; }

.text-center { text-align: center; }
.py-4 { padding-top: 24px; padding-bottom: 24px; }
.mt-2 { margin-top: 8px; }

/* Audit Logs Table */
.audit-log-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.audit-log-table th {
    padding: 12px 16px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 12px;
    border-bottom: 1px solid var(--border-color);
}

.audit-log-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
    font-family: monospace;
}

.audit-log-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.01);
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.modal.active { opacity: 1; pointer-events: auto; }
.modal-content {
    background-color: var(--bg-sidebar);
    border: 1px solid var(--border-color);
    width: 720px;
    max-width: 95vw;
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
    overflow: hidden;
    transform: translateY(-20px);
    transition: transform 0.25s ease;
}

#add-tenant-modal .modal-content {
    width: 880px;
    max-width: 95vw;
}

.modal.active .modal-content { transform: translateY(0); }

.modal-header { padding: 18px 24px; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; }
.modal-header h3 { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; color: var(--text-main); }
.modal-header h3 i { color: var(--primary); }
.close-btn { background: none; border: none; color: var(--text-muted); font-size: 22px; cursor: pointer; transition: var(--transition); }
.close-btn:hover { color: var(--text-main); }
.modal-body { padding: 24px; max-height: 78vh; overflow-y: auto; overflow-x: hidden; }
.modal-footer { padding: 18px 24px; border-top: 1px solid var(--border-color); display: flex; justify-content: flex-end; gap: 12px; }

/* Forms */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 12px; font-weight: 600; color: var(--text-muted); }
.form-group input, .form-group select { padding: 10px 14px; background-color: rgba(255, 255, 255, 0.03); border: 1px solid var(--border-color); border-radius: 8px; color: var(--text-main); font-family: inherit; font-size: 13px; transition: var(--transition); width: 100%; box-sizing: border-box; }
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-glow); }
.form-group code { color: var(--primary); }
.field-hint { font-size: 11px; color: var(--text-muted); }
.form-divider { grid-column: 1 / -1; font-size: 11px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 20px; margin-bottom: 10px; border-bottom: 1px solid rgba(0, 151, 178, 0.2); padding-bottom: 6px; }
.disabled-input { background-color: rgba(255, 255, 255, 0.01) !important; border-color: rgba(255, 255, 255, 0.02) !important; color: var(--text-muted) !important; cursor: not-allowed; }

/* Checkbox switches styling for Feature Flags */
.feature-flags-grid {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 16px 28px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-top: 6px;
    margin-bottom: 6px;
}

.checkbox-container {
    display: block;
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    user-select: none;
    color: var(--text-main);
    line-height: 20px;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: var(--transition);
}

.checkbox-container:hover input ~ .checkmark {
    background-color: rgba(255, 255, 255, 0.08);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--primary);
    border-color: var(--primary);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 6px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Tenant Stats Modal Details */
.stats-modal-content { width: 480px; }
.stats-details-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.stats-item-card { background: rgba(255, 255, 255, 0.02); border: 1px solid var(--border-color); border-radius: 10px; padding: 14px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.stats-item-card i { font-size: 20px; margin-bottom: 2px; }
.stats-item-card .label { font-size: 11px; color: var(--text-muted); font-weight: 500; }
.stats-item-card .value { font-size: 16px; font-weight: 700; }

.text-blue { color: var(--blue); }
.text-green { color: var(--green); }
.text-purple { color: var(--purple); }
.text-orange { color: var(--orange); }
.text-yellow { color: var(--yellow); }
.text-red { color: var(--red); }

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background-color: #0f172a;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary);
    color: var(--text-main);
    padding: 12px 18px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    font-size: 13px;
    font-weight: 500;
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateY(80px);
    opacity: 0;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { border-left-color: var(--green); }
.toast.error { border-left-color: var(--red); }
.toast.info { border-left-color: var(--blue); }

.loading-placeholder { padding: 30px !important; color: var(--text-muted); }

/* Pulse animation for Live indicator */
.animate-pulse {
    animation: pulse 2s infinite;
}

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

/* ==================== CONTROL CENTER MODAL ==================== */
.control-modal-content {
    width: 850px !important;
    max-width: 95vw !important;
    background-color: #0b0f1d !important;
}

.control-modal-body {
    padding: 24px !important;
}

.control-grid-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
}

.control-left-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-right: 1px solid var(--border-color);
    padding-right: 24px;
}

.info-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.info-logo-wrap {
    width: 72px;
    height: 72px;
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.info-logo-wrap img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.tenant-id-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
    margin-bottom: 16px;
}

.info-details-list {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding-bottom: 6px;
}

.detail-item strong {
    color: var(--text-muted);
    font-weight: 500;
}

.quick-actions-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
}

.quick-actions-card h4 {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.quick-actions-btns {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Right Panel Tabs */
.control-right-panel {
    display: flex;
    flex-direction: column;
    min-height: 380px;
}

.control-tabs-header {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.control-tab-btn {
    background: none;
    border: none;
    padding: 10px 16px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.control-tab-btn:hover {
    color: var(--text-main);
}

.control-tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.control-tab-pane {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
}

.control-tab-pane:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.15);
}

.control-tab-pane h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
    border-left: 4px solid var(--primary);
    padding-left: 10px;
    line-height: 1;
}

.control-tabs-body {
    max-height: 640px;
    overflow-y: auto;
    padding-right: 12px;
}

.control-tabs-body::-webkit-scrollbar {
    width: 6px;
}
.control-tabs-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 3px;
}
.control-tabs-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}
.control-tabs-body::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

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

/* Resources Progress List */
.resources-progress-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 500;
}

.progress-track {
    width: 100%;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.bg-blue { background-color: var(--blue); box-shadow: 0 0 8px rgba(59, 130, 246, 0.4); }
.bg-green { background-color: var(--green); box-shadow: 0 0 8px rgba(16, 185, 129, 0.4); }
.bg-purple { background-color: var(--purple); box-shadow: 0 0 8px rgba(139, 92, 246, 0.4); }
.bg-orange { background-color: var(--orange); box-shadow: 0 0 8px rgba(245, 158, 11, 0.4); }
.bg-yellow { background-color: var(--yellow); box-shadow: 0 0 8px rgba(234, 179, 8, 0.4); }
.bg-red { background-color: var(--red); box-shadow: 0 0 8px rgba(239, 68, 68, 0.4); }

.mb-3 { margin-bottom: 16px; }

/* ==================== TYPOGRAPHY & SIZE SCALING ==================== */
body {
    font-size: 15px !important;
}

/* Sidebar scaling */
.sidebar {
    width: 210px !important;
}
.sidebar-menu .menu-item {
    font-size: 15px !important;
    padding: 14px 18px !important;
}
.sidebar-menu .menu-item i {
    font-size: 18px !important;
}
.logo-text {
    font-size: 22px !important;
}

/* Stat & Analytics widgets */
.stat-value {
    font-size: 28px !important;
}
.stat-label {
    font-size: 13px !important;
}
.analytics-card h3 {
    font-size: 17px !important;
}

/* Main panel titles */
#page-title {
    font-size: 26px !important;
}
#page-subtitle {
    font-size: 14px !important;
}

/* Tables and Buttons */
.table th {
    font-size: 14px !important;
    padding: 14px 16px !important;
}
.table td {
    font-size: 14px !important;
    padding: 14px 16px !important;
}
.btn {
    font-size: 14px !important;
    padding: 10px 20px !important;
}
.btn-sm {
    font-size: 13px !important;
    padding: 8px 14px !important;
}
.search-box input {
    font-size: 14px !important;
    padding: 10px 14px 10px 40px !important;
}

/* General inputs & labels */
.form-group label {
    font-size: 13px !important;
    font-weight: 600 !important;
    margin-bottom: 6px !important;
}
.form-control, .form-group input, .form-group select {
    font-size: 14px !important;
    padding: 10px 14px !important;
    height: auto !important;
}
.form-divider {
    font-size: 13px !important;
    padding-bottom: 6px !important;
}
.field-hint {
    font-size: 12px !important;
}

/* General Modal Scaling */
.modal-header h3 {
    font-size: 19px !important;
}
.close-btn {
    font-size: 26px !important;
}
.modal-footer .btn {
    font-size: 14px !important;
    padding: 10px 20px !important;
}

/* SaaS Control Center Modal Overrides */
.control-modal-content {
    width: 96% !important;
    max-width: 1300px !important;
    height: 85vh !important;
    max-height: 850px !important;
    display: flex !important;
    flex-direction: column !important;
    background-color: #0b0f1d !important;
}
.control-modal-body {
    flex: 1 !important;
    overflow-y: auto !important;
    padding: 28px !important;
}
.control-grid-layout {
    grid-template-columns: 320px 1fr !important;
    gap: 32px !important;
}
.control-left-panel {
    gap: 20px !important;
    padding-right: 28px !important;
}
.info-card {
    padding: 24px !important;
}
.info-logo-wrap {
    width: 80px !important;
    height: 80px !important;
    font-size: 36px !important;
}
.tenant-id-label {
    font-size: 12px !important;
}
.info-details-list {
    font-size: 14px !important;
    gap: 10px !important;
}
.detail-item {
    padding-bottom: 8px !important;
}
.quick-actions-card {
    padding: 20px !important;
}
.quick-actions-card h4 {
    font-size: 13px !important;
    margin-bottom: 14px !important;
}
.quick-actions-btns {
    gap: 10px !important;
}
.quick-actions-btns .btn {
    font-size: 13px !important;
    padding: 10px 14px !important;
}

/* Right Panel Tabs scaling */
.control-tabs-header {
    gap: 8px !important;
    margin-bottom: 24px !important;
}
.control-tab-btn {
    font-size: 15px !important;
    padding: 12px 20px !important;
}
.control-tab-pane h4 {
    font-size: 18px !important;
    margin-bottom: 16px !important;
}
.tab-pane-desc {
    font-size: 13px !important;
    margin-bottom: 16px !important;
}
.resources-progress-list {
    gap: 20px !important;
}
.progress-labels {
    font-size: 14px !important;
}
.progress-track {
    height: 12px !important;
}

/* Feature Flags */
.checkbox-container {
    font-size: 13px !important;
    padding-left: 30px !important;
}
.checkbox-container input {
    width: 18px !important;
    height: 18px !important;
}

/* Generic hidden class to fix the tabs overlap */
.hidden {
    display: none !important;
}

/* ==================== BUZDISTR PRO B2B THEME OVERRIDES ==================== */
:root, body.dark-theme, body.dark {
    --bg-main: #060814;
    --bg-sidebar: #0b0f1d;
    --bg-card: rgba(13, 20, 38, 0.7);
    --border-color: rgba(255, 255, 255, 0.08);
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    --topbar-bg: rgba(11, 15, 29, 0.95);
    --topbar-title-color: #ffffff;
    --topbar-subtitle-color: #94a3b8;

    --card-shadow: 0 15px 35px -15px rgba(0, 0, 0, 0.8);
    
    --dial-track: rgba(255, 255, 255, 0.05);
    --dial-inner-bg: #0b0f1d;
    --dial-val-color: #ffffff;
    
    --input-bg: rgba(255, 255, 255, 0.04);
    --input-border: rgba(255, 255, 255, 0.06);
    --input-text: #f3f4f6;
    
    --modal-bg: #0b0f1d;
    --modal-header-border: rgba(255, 255, 255, 0.06);
    --modal-footer-bg: rgba(13, 20, 38, 0.9);
    
    --info-card-bg: rgba(255, 255, 255, 0.02);
    --detail-border: rgba(255, 255, 255, 0.03);
    --detail-strong: #6b7280;
    
    --tr-hover: rgba(255, 255, 255, 0.02);
}

body.light-theme, body.light {
    --bg-main: #f8fafc;
    --bg-sidebar: #ffffff;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    
    --text-main: #0f172a;
    --text-muted: #64748b;
    
    --topbar-bg: rgba(255, 255, 255, 0.95);
    --topbar-title-color: #0f172a;
    --topbar-subtitle-color: #475569;

    --card-shadow: 0 4px 12px rgba(0, 151, 178, 0.04);
    
    --dial-track: rgba(0, 0, 0, 0.06);
    --dial-inner-bg: #ffffff;
    --dial-val-color: #1e293b;
    
    --input-bg: #ffffff;
    --input-border: #cbd5e1;
    --input-text: #0f172a;
    
    --modal-bg: #ffffff;
    --modal-header-border: #e2e8f0;
    --modal-footer-bg: #f8fafc;
    
    --info-card-bg: #f8fafc;
    --detail-border: #e2e8f0;
    --detail-strong: #475569;
    
    --btn-secondary-bg: #cbd5e1;
    --btn-secondary-border: #cbd5e1;
    --btn-secondary-text: #1e293b;
    --btn-secondary-hover-bg: #94a3b8;
    --progress-track-bg: #cbd5e1;

    --tr-hover: #f1f5f9;
}

/* Override body */
body {
    background-color: var(--bg-main) !important;
    color: var(--text-main) !important;
}

/* Sidebar Specific - Kept Dark Theme Rail as designed */
.sidebar {
    background: linear-gradient(175deg, #050a14 0%, #062328 42%, #0a2c36 74%, #060f18 100%) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.06) !important;
}
.sidebar-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding-bottom: 20px !important;
}
.logo-icon i {
    color: var(--primary) !important;
}
.logo-text {
    color: #ffffff !important;
}
.logo-text span {
    background: rgba(0, 151, 178, 0.15) !important;
    color: var(--primary) !important;
}
.sidebar-menu .menu-item {
    color: #94a3b8 !important;
}
.sidebar-menu .menu-item:hover {
    background-color: rgba(255, 255, 255, 0.06) !important;
    color: #ffffff !important;
}
.sidebar-menu .menu-item.active {
    background-color: rgba(0, 151, 178, 0.1) !important;
    color: var(--primary) !important;
    border-left: 3px solid var(--primary) !important;
}
.sidebar-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}
.user-info .user-name {
    color: #f1f5f9 !important;
}
.user-info .user-role {
    color: #94a3b8 !important;
}

/* Topbar theme colors */
.topbar-title h1 {
    color: var(--text-main) !important;
}
.topbar-title .subtitle {
    color: var(--text-muted) !important;
}

/* Analytics widgets & cards */
.analytics-card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: var(--card-shadow) !important;
}
.analytics-card h3 {
    color: var(--text-main) !important;
    border-bottom: 1px solid var(--border-color) !important;
    padding-bottom: 12px !important;
}
.stat-card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: var(--card-shadow) !important;
}
.stat-value {
    color: var(--text-main) !important;
}
.stat-label {
    color: var(--text-muted) !important;
}

/* System Dial Widgets in Light Theme */
.dial-inner {
    background-color: var(--dial-inner-bg) !important;
}
.dial-value {
    color: var(--dial-val-color) !important;
}
.dial {
    background: conic-gradient(var(--blue) var(--val), var(--dial-track) var(--val)) !important;
}
#cpu-dial {
    background: conic-gradient(var(--blue) var(--val), var(--dial-track) var(--val)) !important;
}
#ram-dial {
    background: conic-gradient(var(--purple) var(--val), var(--dial-track) var(--val)) !important;
}
.system-status-list {
    border-top: 1px solid var(--border-color) !important;
}
.system-status-list p {
    color: var(--text-main) !important;
}

/* Panels and Tables */
.panel-section {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: var(--card-shadow) !important;
}
.section-header h2 {
    color: var(--text-main) !important;
}
.tenant-table th {
    color: var(--text-muted) !important;
    border-bottom: 1px solid var(--border-color) !important;
}
.tenant-table td {
    color: var(--text-main) !important;
    border-bottom: 1px solid var(--border-color) !important;
}
.tenant-table tbody tr:hover {
    background-color: var(--tr-hover) !important;
}
.tenant-table tbody tr {
    border-bottom: 1px solid var(--border-color) !important;
}

/* Inputs and Forms */
.form-control, .form-group input, .form-group select {
    background-color: var(--input-bg) !important;
    border: 1px solid var(--input-border) !important;
    color: var(--input-text) !important;
}

/* Fix Dropdown Option visibility in Dark and Light themes */
select option {
    background-color: #0b0f1d !important;
    color: #f8fafc !important;
    padding: 10px 14px !important;
}

select option:checked,
select option:hover {
    background-color: #0097b2 !important;
    color: #ffffff !important;
}

body.light-theme select option {
    background-color: #ffffff !important;
    color: #0f172a !important;
}

body.light-theme select option:checked,
body.light-theme select option:hover {
    background-color: #0284c7 !important;
    color: #ffffff !important;
}

/* Date and Datetime Picker Calendar Indicator for Dark Mode */
body.dark-theme input[type="date"]::-webkit-calendar-picker-indicator,
body.dark-theme input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    filter: invert(0.9) hue-rotate(170deg) opacity(0.9);
    cursor: pointer;
}

.form-control:focus, .form-group input:focus, .form-group select:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 2px var(--primary-glow) !important;
}
.search-box input {
    background-color: var(--input-bg) !important;
    border: 1px solid var(--input-border) !important;
    color: var(--input-text) !important;
}
.search-box input:focus {
    border-color: var(--primary) !important;
}
.form-group label {
    color: var(--text-muted) !important;
}

/* Modals Light Theme styling */
.modal-content {
    background-color: var(--modal-bg) !important;
    border: 1px solid var(--modal-header-border) !important;
    box-shadow: var(--card-shadow) !important;
}
.modal-header {
    border-bottom: 1px solid var(--modal-header-border) !important;
}
.modal-header h3 {
    color: var(--text-main) !important;
}
.modal-body {
    background-color: var(--modal-bg) !important;
}
.modal-footer {
    border-top: 1px solid var(--modal-header-border) !important;
    background-color: var(--modal-footer-bg) !important;
}
.form-divider {
    color: var(--primary) !important;
    border-bottom: 1px solid var(--modal-header-border) !important;
}
.field-hint {
    color: var(--text-muted) !important;
}

/* Control Modal overrides for Light Theme */
.control-modal-content {
    background-color: var(--modal-bg) !important;
}
.control-left-panel {
    border-right: 1px solid var(--modal-header-border) !important;
}
.info-card {
    background: var(--info-card-bg) !important;
    border: 1px solid var(--modal-header-border) !important;
}
.info-details-list {
    color: var(--text-main) !important;
}
.detail-item {
    border-bottom: 1px solid var(--detail-border) !important;
}
.detail-item strong {
    color: var(--detail-strong) !important;
}
.quick-actions-card {
    background: var(--info-card-bg) !important;
    border: 1px solid var(--modal-header-border) !important;
}
.quick-actions-card h4 {
    color: var(--detail-strong) !important;
}
.control-tabs-header {
    border-bottom: 1px solid var(--modal-header-border) !important;
}
.control-tab-btn {
    color: var(--text-muted) !important;
}
.control-tab-btn.active {
    color: var(--primary) !important;
    border-bottom-color: var(--primary) !important;
}
.control-tab-pane h4 {
    color: var(--text-main) !important;
}
.progress-track {
    background-color: var(--border-color) !important;
}
.tenant-id-label {
    color: var(--text-muted) !important;
}

/* Terminal style logs inside modal - kept dark for CLI realism */
#control-pane-logs table th {
    color: #94a3b8 !important;
    border-bottom: 1px solid #334155 !important;
}
#control-pane-logs table td {
    border-bottom: 1px solid #1e293b !important;
}

.clickable-tenant-row {
    cursor: pointer;
    transition: background-color 0.15s ease;
}
.clickable-tenant-row:hover {
    background-color: var(--tr-hover) !important;
}

/* Dashboard Stat Widget Card Premium Styling */
.stat-widget-card {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    padding: 16px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
}

.stat-widget-card:hover {
    transform: translateY(-4px) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -2px rgba(0, 0, 0, 0.1) !important;
}

/* SaaS 3-Tier Pricing Cards Grid */
.saas-plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 16px;
    margin-bottom: 24px;
}

@media (max-width: 992px) {
    .saas-plans-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

.plan-card {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease;
    position: relative;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

body.light-theme .plan-card {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04) !important;
}

.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 151, 178, 0.2);
    border-color: var(--primary) !important;
}

.plan-card.active-tenant-plan {
    border: 2px solid var(--primary) !important;
    background: rgba(0, 151, 178, 0.06) !important;
}

body.light-theme .plan-card.active-tenant-plan {
    background: #f0fdf4 !important;
    border-color: #10b981 !important;
}

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

.plan-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 2px 0;
}

.plan-tag {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    opacity: 0.75;
}

.plan-badge-active {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.plan-pricing {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 16px;
}

.price-monthly {
    font-size: 21px;
    font-weight: 800;
    color: #00d2ff;
    line-height: 1.2;
}

body.light-theme .price-monthly {
    color: #0284c7;
}

.price-yearly {
    font-size: 18px;
    font-weight: 800;
    color: #10b981;
    line-height: 1.2;
}

body.light-theme .price-yearly {
    color: #059669;
}

.price-unit {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    margin-left: 2px;
}

.plan-features {
    display: flex;
    flex-direction: column;
    gap: 9px;
    border-top: 1px solid var(--border-color);
    padding-top: 14px;
    margin-bottom: 18px;
}

.feature-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-main);
}

.feature-val-highlight {
    color: #38bdf8;
    font-weight: 700;
}

body.light-theme .feature-val-highlight {
    color: #0284c7;
}

.feature-val-infinite {
    color: #10b981;
    font-weight: 700;
}

.feature-status.status-on {
    color: #10b981;
    font-weight: 700;
    font-size: 11px;
    background: rgba(16, 185, 129, 0.1);
    padding: 2px 8px;
    border-radius: 6px;
}

.feature-status.status-off {
    color: #ef4444;
    font-weight: 600;
    font-size: 11px;
    background: rgba(239, 68, 68, 0.1);
    padding: 2px 8px;
    border-radius: 6px;
}

.btn-select-plan {
    width: 100%;
    padding: 9px 12px;
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-select-plan:hover {
    filter: brightness(1.1);
    transform: scale(1.02);
}

.info-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 16px !important;
    padding: 24px !important;
    text-align: center !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3) !important;
}

.info-logo-wrap {
    width: 80px !important;
    height: 80px !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 2px dashed rgba(255, 255, 255, 0.1) !important;
    border-radius: 50% !important;
    margin: 0 auto 16px auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 36px !important;
    transition: all 0.4s ease !important;
}

.info-card:hover .info-logo-wrap {
    transform: scale(1.05) rotate(5deg) !important;
    border-color: var(--primary) !important;
}

.info-card h2 {
    font-size: 20px !important;
    font-weight: 800 !important;
    letter-spacing: -0.5px !important;
    margin: 8px 0 4px 0 !important;
    color: #fff !important;
}

.detail-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 10px 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    font-size: 13px !important;
}

.detail-item:last-child {
    border-bottom: none;
}

.quick-actions-card {
    background: rgba(255, 255, 255, 0.01) !important;
    border: 1px solid rgba(255, 255, 255, 0.03) !important;
    border-radius: 16px !important;
    padding: 20px !important;
}

.quick-actions-card h4 {
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    margin-bottom: 12px !important;
    color: var(--text-muted) !important;
}

.quick-actions-btns {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.quick-actions-btns .btn {
    border-radius: 10px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    transition: all 0.2s ease !important;
    border: 1px solid var(--btn-secondary-border) !important;
    background: var(--btn-secondary-bg) !important;
    color: var(--btn-secondary-text) !important;
}

.quick-actions-btns .btn:hover {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    transform: translateX(4px) !important;
}

/* B2B Telegram-style Chat Theme Adaptation */
#saas-b2b-chat-modal .modal-content {
    background-color: var(--bg-sidebar) !important;
    color: var(--text-main) !important;
}

.b2b-chat-body {
    background-color: var(--bg-main) !important;
}

.b2b-chat-sidebar {
    background-color: var(--bg-sidebar) !important;
    border-right: 1px solid var(--border-color) !important;
}

.b2b-company-item {
    color: var(--text-main) !important;
}

.b2b-company-item:hover {
    background-color: rgba(0, 151, 178, 0.08) !important;
}

.b2b-company-item.active {
    background-color: rgba(0, 151, 178, 0.18) !important;
}

.b2b-chat-window {
    background-color: var(--bg-main) !important;
}

#b2b-chat-messages-container {
    background-color: var(--bg-main) !important;
    color: var(--text-main) !important;
}

body.dark-theme #b2b-chat-messages-container,
body.dark #b2b-chat-messages-container {
    background-color: #060913 !important;
}

body.light-theme #b2b-chat-messages-container,
body.light #b2b-chat-messages-container {
    background-color: #f8fafc !important;
}

/* Company Admin Support Chat Modal Theme */
#company-support-chat-modal > div {
    background-color: var(--bg-card, #ffffff) !important;
    color: var(--text-main, #0f172a) !important;
    border: 1px solid var(--border-color, #e2e8f0) !important;
}

body.dark-theme #company-support-messages,
body.dark #company-support-messages {
    background-color: #0b0f1d !important;
    color: #f8fafc !important;
}

body.light-theme #company-support-messages,
body.light #company-support-messages {
    background-color: #f8fafc !important;
    color: #0f172a !important;
}
