/* Global Styles - Coral/Gold Amicis Theme */

:root {
    --coral-500: #F87171;
    --coral-600: #EF4444;
    --gold-400: #FBBF24;
    --gold-500: #F59E0B;
    --amicis-gold: #FFC107;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --slate-300: #cbd5e1;
    --slate-200: #e2e8f0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #0a0a0a;
    color: white;
    line-height: 1.6;
}

html {
    scroll-snap-type: y proximity;
    scroll-behavior: smooth;
}

a {
    color: var(--coral-500);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--gold-400);
}

.btn-link {
    color: var(--coral-500);
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--coral-500) 0%, var(--coral-600) 100%);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(248, 113, 113, 0.3);
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem var(--slate-900), 0 0 0 0.25rem var(--coral-500);
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--gold-400);
}

.invalid {
    outline: 1px solid var(--coral-600);
}

.validation-message {
    color: var(--coral-600);
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.darker-border-checkbox.form-check-input {
    border-color: var(--slate-500);
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--slate-500);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--slate-900);
}

::-webkit-scrollbar-thumb {
    background: var(--slate-700);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--slate-600);
}

/* Dark theme text overrides */
.text-muted,
p.text-muted {
    color: var(--slate-400) !important;
}

/* Awaiting activation text in agent cards */
.agent-admin-actions .text-muted {
    color: var(--slate-300) !important;
}

/* =============================================== */
/* DASHBOARD LAYOUT - Shared across dashboard pages */
/* =============================================== */

.dashboard-container {
    display: flex;
    min-height: 100vh;
    background: #0a0a0a;
}

/* Sidebar */
.dashboard-sidebar {
    width: 280px;
    background: rgba(15, 23, 42, 0.95);
    border-right: 1px solid rgba(251, 191, 36, 0.1);
    padding: 24px;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(251, 191, 36, 0.1);
    margin-bottom: 24px;
}

.sidebar-header h2 {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

/* Logo icon for marketing pages */
.logo-icon-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* Auth page logo */
.auth-logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.btn-back {
    color: #64748b;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.btn-back:hover {
    color: var(--coral-500);
}

.dashboard-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.dashboard-nav li {
    margin-bottom: 4px;
}

.dashboard-nav li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s ease;
}

.dashboard-nav li a:hover {
    background: rgba(248, 113, 113, 0.1);
    color: white;
}

.dashboard-nav li.active a {
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.15) 0%, rgba(251, 191, 36, 0.1) 100%);
    color: var(--coral-500);
    border-left: 3px solid var(--coral-500);
}

/* Sidebar User Section */
.sidebar-user {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid rgba(251, 191, 36, 0.1);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-user .user-email {
    color: #94a3b8;
    font-size: 0.85rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-logout-sidebar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    color: #f87171;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-logout-sidebar:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

/* Main Content */
.dashboard-content {
    flex: 1;
    margin-left: 280px;
    padding: 32px;
    min-height: 100vh;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.dashboard-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.dashboard-user {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #94a3b8;
}

.btn-logout {
    color: var(--coral-500);
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid rgba(248, 113, 113, 0.3);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: rgba(248, 113, 113, 0.1);
}

/* Management Tabs - shared by Management and Agents pages */
/* DEPRECATED: Use .page-tabs instead (based on Database Browser .table-selector) */
.management-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    padding: 16px;
    background: rgba(30, 41, 59, 0.3);
    border-radius: 12px;
}

.management-tabs button {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(251, 191, 36, 0.1);
    color: var(--slate-300);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.management-tabs button:hover {
    border-color: rgba(248, 113, 113, 0.3);
    color: white;
}

.management-tabs button.active {
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.2) 0%, rgba(251, 191, 36, 0.15) 100%);
    border-color: var(--coral-500);
    color: white;
}

.management-tabs .tab-icon {
    width: 18px;
    height: 18px;
}

/* Page Tabs - unified tab styling for all pages (based on Database Browser) */
.page-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    padding: 16px;
    background: rgba(30, 41, 59, 0.3);
    border-radius: 12px;
}

.page-tabs button {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(251, 191, 36, 0.1);
    color: var(--slate-300);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-tabs button:hover {
    border-color: rgba(248, 113, 113, 0.3);
    color: white;
}

.page-tabs button.active {
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.2) 0%, rgba(251, 191, 36, 0.15) 100%);
    border-color: var(--coral-500);
    color: white;
}

.page-tabs .tab-icon {
    width: 18px;
    height: 18px;
}

/* Tab visibility - show/hide sections based on active tab */
.tab-hidden {
    display: none !important;
}

.tab-visible {
    display: block;
}

/* Loading State */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    color: #64748b;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(248, 113, 113, 0.2);
    border-top-color: var(--coral-500);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Agent Cards Grid */
.agent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.agent-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(251, 191, 36, 0.1);
    border-radius: 12px;
    padding: 10px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-width: 180px;
    max-width: 240px;
    height: 200px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.agent-card:hover {
    border-color: rgba(248, 113, 113, 0.5);
    box-shadow: 0 0 12px rgba(248, 113, 113, 0.3);
}

.agent-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4px;
    gap: 4px;
}

.agent-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.status-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    flex-shrink: 0;
}

.status-badge.online {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.status-badge.offline {
    background: rgba(100, 116, 139, 0.2);
    color: #64748b;
}

.status-badge.purpose {
    background: rgba(99, 102, 241, 0.2);
    color: #818cf8;
}

/* Display Agent Card Styling */
.display-agent-card {
    border-left: 3px solid #818cf8 !important;
}

.display-agent-card .agent-actions {
    border-top-color: rgba(129, 140, 248, 0.1);
}

.agent-details {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2px 8px;
    margin-bottom: 4px;
    font-size: 0.7rem;
}

.agent-details dt {
    color: #64748b;
}

.agent-details dd {
    color: #cbd5e1;
    margin: 0;
}

.agent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
    padding-top: 6px;
    border-top: 1px solid rgba(251, 191, 36, 0.1);
}

.btn-agent {
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-agent-primary {
    background: linear-gradient(135deg, var(--coral-500) 0%, var(--coral-600) 100%);
    color: white;
    border: none;
}

.btn-agent-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(248, 113, 113, 0.3);
}

.btn-agent-secondary {
    background: transparent;
    color: var(--coral-500);
    border: 1px solid rgba(248, 113, 113, 0.3);
}

.btn-agent-secondary:hover {
    background: rgba(248, 113, 113, 0.1);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}

.empty-state p {
    margin-bottom: 16px;
}

/* =============================================== */
/* AGENTS PAGE - THREE PANEL LAYOUT */
/* =============================================== */

/* Desktop: Hide mobile org sidebar toggle */
.mobile-org-sidebar {
    display: none;
}

/* Desktop: Show hierarchy sidebar as normal */
.agents-hierarchy-sidebar {
    display: block;
}

.agents-three-panel {
    display: flex;
    flex: 1;
    overflow: hidden;
    gap: 0;
}

/* Desktop: Section wrappers should be transparent to flex layout */
.agents-mobile-section {
    display: contents;
}

/* Desktop: Fleet section is hidden when Cloud Agent tab is active */
.agents-mobile-section.agents-fleet-section {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Desktop: Chat section takes full remaining space with stable width */
.agents-mobile-section.agents-chat-section {
    display: block;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

/* Cloud agent details grid fills the chat section completely */
.agents-chat-section .cloud-agent-details {
    width: 100%;
    height: calc(100vh - 200px);
}

/* Hierarchy Panel (Left) */
.hierarchy-panel {
    width: 260px;
    min-width: 260px;
    background: rgba(15, 23, 42, 0.95);
    border-right: 1px solid rgba(251, 191, 36, 0.1);
    display: flex;
    flex-direction: column;
    transition: width 0.3s ease, min-width 0.3s ease;
    overflow: hidden;
}

.hierarchy-panel.collapsed {
    width: 48px;
    min-width: 48px;
}

.hierarchy-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(251, 191, 36, 0.1);
    gap: 8px;
    min-height: 48px;
}

.hierarchy-header h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--slate-300);
    flex: 1;
    white-space: nowrap;
    margin: 0;
    text-align: center;
}

.hierarchy-header .sync-btn,
.hierarchy-header .collapse-toggle {
    background: transparent;
    border: none;
    color: var(--slate-400);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.hierarchy-header .sync-btn:hover,
.hierarchy-header .collapse-toggle:hover {
    background: rgba(251, 191, 36, 0.1);
    color: var(--gold-400);
}

.hierarchy-tree {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.hierarchy-loading,
.hierarchy-empty {
    padding: 24px 16px;
    text-align: center;
    color: var(--slate-500);
    font-size: 0.85rem;
}

.hierarchy-actions {
    padding: 8px 16px;
    border-top: 1px solid rgba(251, 191, 36, 0.1);
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Add Node Form */
.add-node-form {
    background: rgba(15, 23, 42, 0.98);
    border-top: 1px solid rgba(251, 191, 36, 0.2);
    padding: 12px;
}

.add-node-form .form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.8rem;
    color: var(--slate-400);
}

.add-node-form .close-btn {
    background: transparent;
    border: none;
    color: var(--slate-500);
    cursor: pointer;
    padding: 2px 6px;
}

.add-node-form .form-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.add-node-form .form-input,
.add-node-form .form-select {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(251, 191, 36, 0.1);
    border-radius: 6px;
    padding: 8px 10px;
    color: white;
    font-size: 0.85rem;
}

.add-node-form .form-input:focus,
.add-node-form .form-select:focus {
    outline: none;
    border-color: rgba(248, 113, 113, 0.3);
}

.add-node-form .form-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 4px;
}

.btn-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.3);
}

/* Tree Node Styles */
.tree-node {
    user-select: none;
}

.tree-node .node-content {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    cursor: pointer;
    transition: background 0.2s ease;
    gap: 6px;
}

.tree-node .node-content:hover {
    background: rgba(251, 191, 36, 0.05);
}

.tree-node.selected > .node-content {
    background: rgba(248, 113, 113, 0.15);
    border-left: 2px solid var(--coral-500);
}

.tree-node .expand-toggle {
    background: transparent;
    border: none;
    color: var(--slate-500);
    cursor: pointer;
    padding: 2px;
    font-size: 0.65rem;
    width: 16px;
    flex-shrink: 0;
}

.tree-node .expand-placeholder {
    width: 16px;
    flex-shrink: 0;
}

.tree-node .node-icon {
    font-size: 0.9rem;
    flex-shrink: 0;
}

.tree-node .node-name {
    font-size: 0.85rem;
    color: var(--slate-300);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tree-node .agent-count {
    background: rgba(248, 113, 113, 0.2);
    color: var(--coral-500);
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
}

/* Store Agents Section Header (matches Cloud Agent panel style) - MOBILE ONLY */
.store-agents-header {
    display: none; /* Hidden on desktop - only shown on mobile */
}

/* Header actions for desktop (shown via flexbox in fleet section) */
.header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Agent Fleet Section (Center) */
.agent-fleet-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 16px 24px;
    min-width: 0;
}

.fleet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-shrink: 0;
}

.fleet-title {
    font-size: 0.95rem;
    color: var(--slate-400);
}

.filter-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(248, 113, 113, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    color: var(--coral-500);
}

.clear-filter-btn {
    background: transparent;
    border: none;
    color: var(--coral-500);
    cursor: pointer;
    padding: 0 4px;
    font-size: 0.9rem;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.clear-filter-btn:hover {
    opacity: 1;
}

.loading-indicator {
    font-size: 0.85rem;
    color: var(--slate-500);
    display: flex;
    align-items: center;
    gap: 8px;
}

.agent-fleet-section .agent-grid {
    flex: 1;
    overflow-y: auto;
    margin-top: 0;
}

.fleet-summary {
    color: var(--slate-500);
    margin-top: 16px;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* Suggestion styles for Agent Details and Cloud Agent chat */
.chat-messages .chat-welcome {
    padding: 24px 16px;
    text-align: center;
}

.chat-messages .welcome-text {
    color: var(--slate-400);
    margin-bottom: 16px;
}

.chat-messages .quick-actions {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.chat-messages .quick-actions-label {
    font-size: 0.75rem;
    color: var(--slate-500);
    margin-bottom: 12px;
}

.chat-messages .suggestion-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    max-width: 400px;
}

.chat-messages .suggestion-list li {
    margin: 0;
}

.chat-messages .suggestion-btn {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(251, 191, 36, 0.25);
    color: var(--slate-300);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.chat-messages .suggestion-btn:hover {
    border-color: rgba(248, 113, 113, 0.4);
    background: rgba(248, 113, 113, 0.15);
    color: var(--slate-200);
    transform: translateY(-1px);
}

/* Small spinner for loading indicators */
.spinner-sm {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Small buttons */
.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-sm.btn-primary {
    background: linear-gradient(135deg, var(--coral-500) 0%, var(--coral-600) 100%);
    color: white;
    border: none;
}

.btn-secondary {
    background: transparent;
    color: var(--slate-400);
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.btn-secondary:hover {
    border-color: rgba(248, 113, 113, 0.3);
    color: var(--coral-500);
}

/* Responsive adjustments for three-panel layout */
@media (max-width: 1200px) {
    .hierarchy-panel {
        width: 220px;
        min-width: 220px;
    }
}

@media (max-width: 992px) {
    .agents-three-panel {
        flex-direction: column;
    }
    
    .hierarchy-panel {
        width: 100%;
        min-width: 100%;
        max-height: 200px;
        border-right: none;
        border-bottom: 1px solid rgba(251, 191, 36, 0.1);
    }
    
    .hierarchy-panel.collapsed {
        max-height: 48px;
        width: 100%;
        min-width: 100%;
    }
    
    .agent-fleet-section {
        min-height: 300px;
    }
}

/* Mobile: Agents page layout */
@media (max-width: 768px) {
    /* Alerts in normal document flow */
    .alert-mobile {
        margin-bottom: 16px;
        border-radius: 12px;
        padding: 12px 16px;
        font-size: 0.9rem;
    }

    /* Three-panel becomes simple block layout for natural scrolling */
    .agents-three-panel.agents-sections {
        display: block;
    }

    /* Tab-visible sections get mobile styling */
    .agents-mobile-section.tab-visible {
        display: block;
        padding: 16px;
        padding-bottom: 24px;
        background: rgba(15, 23, 42, 0.95);
        border-radius: 16px;
        margin-bottom: 16px;
    }

    /* Hide desktop hierarchy sidebar on mobile */
    .agents-hierarchy-sidebar {
        display: none !important;
    }

    /* Mobile: Show Store Agents header */
    .store-agents-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 0 12px 0;
        margin-bottom: 12px;
        border-bottom: 1px solid rgba(251, 191, 36, 0.1);
    }

    .store-agents-header .panel-title {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 1rem;
        font-weight: 600;
        color: var(--slate-200);
    }

    .store-agents-header .agent-icon-img {
        width: 24px;
        height: 24px;
        object-fit: contain;
    }

    .store-agents-header .context-badge {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: rgba(248, 113, 113, 0.1);
        padding: 4px 12px;
        border-radius: 20px;
        color: var(--coral-500);
        font-size: 0.85rem;
    }

    .store-agents-header .clear-filter-btn {
        background: transparent;
        border: none;
        color: var(--coral-500);
        cursor: pointer;
        padding: 0 4px;
        font-size: 0.9rem;
        opacity: 0.7;
        transition: opacity 0.2s ease;
    }

    .store-agents-header .clear-filter-btn:hover {
        opacity: 1;
    }

    .store-agents-header .header-actions {
        margin-left: auto;
        margin-right: 12px;
    }

    /* Mobile: Show org sidebar toggle within Store Agents section */
    .mobile-org-sidebar {
        display: block;
        margin-bottom: 12px;
    }

    .mobile-org-toggle {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px 16px;
        background: rgba(30, 41, 59, 0.6);
        border: 1px solid rgba(251, 191, 36, 0.15);
        border-radius: 12px;
        color: var(--slate-300);
        font-size: 0.9rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .mobile-org-toggle:hover,
    .mobile-org-toggle.expanded {
        background: rgba(30, 41, 59, 0.8);
        border-color: rgba(251, 191, 36, 0.3);
        color: white;
    }

    .mobile-org-toggle .toggle-icon {
        font-size: 1.1rem;
    }

    .mobile-org-toggle .toggle-label {
        flex: 1;
        text-align: left;
    }

    .mobile-org-toggle .toggle-arrow {
        font-size: 0.7rem;
        color: var(--slate-400);
    }

    .mobile-org-content {
        margin-top: 8px;
        background: rgba(15, 23, 42, 0.95);
        border: 1px solid rgba(251, 191, 36, 0.1);
        border-radius: 12px;
        overflow: hidden;
        max-height: 300px;
        overflow-y: auto;
    }

    .mobile-org-content .hierarchy-panel {
        width: 100% !important;
        min-width: 100% !important;
        border: none;
        border-radius: 0;
    }

    .mobile-org-content .hierarchy-header {
        display: none; /* Hide duplicate header since toggle shows org name */
    }

    /* Agent Fleet Section */
    .agents-mobile-section.agents-fleet-section {
        /* inherits from mobile-visible */
    }

    .agents-fleet-section .agent-fleet-section {
        display: block;
    }

    .agents-fleet-section .fleet-header {
        padding-bottom: 12px;
    }

    .agents-fleet-section .agent-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .agents-fleet-section .agent-card {
        margin-bottom: 0;
        max-width: none;
        width: 100%;
    }

    .agents-fleet-section .fleet-summary {
        padding-top: 12px;
        margin: 0;
    }

    .agents-fleet-section .empty-state,
    .agents-fleet-section .loading-state {
        padding: 40px 0;
        text-align: center;
    }

    /* Cloud Agent Section - contains CloudAgentDetails component */
    /* Full-screen immersive experience like Agent Details page */
    .agents-mobile-section.agents-chat-section.tab-visible {
        display: block;
        padding: 0;
        padding-bottom: 0;
        background: transparent;
        overflow: hidden;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 100;
        border-radius: 0;
        margin: 0;
    }

    /* Hide header and tabs when Cloud Agent is active */
    .dashboard-content:has(.agents-chat-section.tab-visible) .dashboard-header,
    .dashboard-content:has(.agents-chat-section.tab-visible) .management-tabs {
        display: none;
    }

    .agents-chat-section .cloud-agent-details {
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 0;
        height: 100vh;
        overflow-y: auto;
        overflow-x: hidden;
        scroll-snap-type: y mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }

    .agents-chat-section .cloud-agent-details .cloud-column.mobile-section {
        scroll-snap-align: start;
        min-height: 100vh;
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
        padding: 16px;
        box-sizing: border-box;
        width: 100%;
    }

    /* Chat Section - Most important, takes full screen */
    .agents-chat-section .cloud-column#cloud-chat-section {
        min-height: 100vh;
        padding-top: 0;
    }

    /* Chat card header needs left padding for hamburger menu on mobile */
    .agents-chat-section .cloud-agent-details .chat-card .card-header {
        padding-left: 60px; /* Space for hamburger menu */
    }

    .agents-chat-section .cloud-agent-details .chat-card {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .agents-chat-section .chat-messages {
        flex: 1;
        overflow-y: auto;
        min-height: 250px;
    }

    /* Info & Actions sections on mobile */
    .agents-chat-section .cloud-column#cloud-info-section,
    .agents-chat-section .cloud-column#cloud-actions-section {
        gap: 16px;
        padding-top: 16px;
    }

    .agents-chat-section .cloud-info-column .card,
    .agents-chat-section .cloud-actions-column .card {
        flex: 1;
    }

    .agents-chat-section .info-body {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        padding: 12px;
    }

    .agents-chat-section .info-item {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .agents-chat-section .info-label {
        font-size: 0.7rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: var(--slate-400);
    }

    .agents-chat-section .info-value {
        font-size: 0.85rem;
        word-break: break-word;
    }

    /* Section navigation indicator (visual hint for scrolling) */
    .agents-sections::after {
        content: '';
        position: fixed;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
        width: 4px;
        height: 60px;
        background: rgba(255,255,255,0.1);
        border-radius: 2px;
        z-index: 100;
        pointer-events: none;
    }

    /* Hide collapse buttons on mobile since sections are always expanded */
    .agents-mobile-section .collapse-toggle {
        display: none;
    }
}

/* =============================================== */
/* DASHBOARD PAGE STYLES */
/* =============================================== */

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.metric-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(251, 191, 36, 0.1);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: all 0.3s ease;
}

.metric-card:hover {
    border-color: rgba(248, 113, 113, 0.3);
    transform: translateY(-2px);
}

.metric-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.15) 0%, rgba(251, 191, 36, 0.1) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.metric-content h3 {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

.metric-change {
    color: #64748b;
    font-size: 0.85rem;
    margin: 4px 0 0 0;
}

/* Dashboard Section */
.dashboard-section {
    margin-bottom: 32px;
}

.dashboard-section h2 {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.action-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(251, 191, 36, 0.1);
    border-radius: 16px;
    padding: 24px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.action-card:hover {
    border-color: rgba(248, 113, 113, 0.3);
    transform: translateY(-2px);
    background: rgba(248, 113, 113, 0.05);
}

.action-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.15) 0%, rgba(251, 191, 36, 0.1) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.action-card h3 {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.action-card p {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

/* Getting Started */
.getting-started {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.step-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(251, 191, 36, 0.1);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
}

.step-card:hover {
    border-color: rgba(248, 113, 113, 0.2);
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #F87171, #FBBF24);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.step-content h3 {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.step-content p {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

/* Coming Soon Pages */
.coming-soon {
    text-align: center;
    padding: 80px 40px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.5), rgba(15, 23, 42, 0.8));
    border-radius: 16px;
    border: 1px solid rgba(248, 113, 113, 0.1);
    max-width: 600px;
    margin: 40px auto;
}

.coming-soon-icon {
    font-size: 4rem;
    margin-bottom: 24px;
}

.coming-soon h2 {
    color: white;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.coming-soon > p {
    color: var(--slate-400);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.coming-soon-features {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.coming-soon-features .feature {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--slate-300);
    font-size: 0.95rem;
}

.coming-soon-features .feature-icon {
    font-size: 1.2rem;
}

.coming-soon-label {
    display: inline-block;
    background: linear-gradient(135deg, var(--coral-500), var(--gold-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* =============================================== */
/* ALERTS */
/* =============================================== */

.alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.alert-success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* =============================================== */
/* AGENT MANAGEMENT BUTTONS */
/* =============================================== */

.agent-admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed rgba(251, 191, 36, 0.1);
}

.btn-admin {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.btn-admin:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-warning {
    background: rgba(251, 191, 36, 0.15);
    color: var(--gold-400);
    border-color: rgba(251, 191, 36, 0.3);
}

.btn-warning:hover:not(:disabled) {
    background: rgba(251, 191, 36, 0.25);
}

.btn-success {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.3);
}

.btn-success:hover:not(:disabled) {
    background: rgba(34, 197, 94, 0.25);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.btn-danger:hover:not(:disabled) {
    background: rgba(239, 68, 68, 0.25);
}

/* Inactive Agent Card */
.agent-card.agent-inactive {
    opacity: 0.6;
    border-color: rgba(100, 116, 139, 0.3);
}

.status-badge.deactivated {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.status-badges {
    display: flex;
    gap: 8px;
}

/* =============================================== */
/* ADMIN PAGE SHARED STYLES */
/* =============================================== */

/* Management Section - shared card container for admin pages */
.management-section {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(251, 191, 36, 0.1);
    border-radius: 16px;
    padding: 24px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-header h2 {
    color: #fff;
    margin: 0;
    font-size: 1.25rem;
}

/* Filter bar for admin tables */
.filter-bar {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.filter-bar select {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(251, 191, 36, 0.1);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
}

/* Form cards for create/edit forms */
.form-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(251, 191, 36, 0.15);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.form-card h3 {
    color: #fff;
    margin: 0 0 16px 0;
    font-size: 1.1rem;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    color: var(--slate-300);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(251, 191, 36, 0.1);
    color: #fff;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.95rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(248, 113, 113, 0.3);
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 16px;
}

/* Status message alerts */
.status-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.status-message.success {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.status-message.error {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* Access denied message */
.access-denied {
    text-align: center;
    padding: 60px;
    color: var(--slate-400);
}

.access-denied h2 {
    color: var(--coral-500);
    margin-bottom: 16px;
}

/* Small action buttons for tables */
.btn-danger-small {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-danger-small:hover {
    background: rgba(239, 68, 68, 0.3);
}

.btn-success-small {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-success-small:hover {
    background: rgba(34, 197, 94, 0.3);
}

/* Badges for status indicators */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-success {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.badge-inactive {
    background: rgba(100, 116, 139, 0.2);
    color: #64748b;
}

.badge-online {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.badge-offline {
    background: rgba(100, 116, 139, 0.2);
    color: #64748b;
}

.badge-action {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

/* Table actions column */
.actions {
    white-space: nowrap;
}

.actions select {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(251, 191, 36, 0.1);
    color: #fff;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 0.85rem;
}

/* Truncated text with ellipsis */
.truncate {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
}

/* Table scroll wrapper for responsive tables */
.table-scroll-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    color: var(--slate-400);
}

/* =============================================== */
/* DATABASE BROWSER */
/* =============================================== */

.table-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    padding: 16px;
    background: rgba(30, 41, 59, 0.3);
    border-radius: 12px;
}

.table-selector button {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(251, 191, 36, 0.1);
    color: var(--slate-300);
}

.table-selector button:hover {
    border-color: rgba(248, 113, 113, 0.3);
    color: white;
}

.table-selector button.active {
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.2) 0%, rgba(251, 191, 36, 0.15) 100%);
    border-color: var(--coral-500);
    color: white;
}

.table-container {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(251, 191, 36, 0.1);
    border-radius: 16px;
    padding: 24px;
    overflow-x: auto;
}

.table-container h2 {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.data-table th {
    text-align: left;
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.5);
    color: var(--slate-300);
    font-weight: 600;
    border-bottom: 1px solid rgba(251, 191, 36, 0.1);
    white-space: nowrap;
}

.data-table td {
    padding: 12px 16px;
    color: var(--slate-300);
    border-bottom: 1px solid rgba(30, 41, 59, 0.5);
}

.data-table tr:hover td {
    background: rgba(248, 113, 113, 0.05);
}

.data-table code {
    background: rgba(15, 23, 42, 0.5);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--gold-400);
}

.data-table .inactive-row {
    opacity: 0.5;
}

.data-table .summary-cell,
.data-table .details-cell {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: help;
}

.table-container {
    overflow-x: auto;
}

/* Mobile menu toggle - hidden on desktop, shown on mobile */
.mobile-menu-toggle {
    display: none;
}

.sidebar-overlay {
    display: none;
}

/* Responsive */
@media (max-width: 1200px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }

    .dashboard-sidebar {
        display: block;
        position: fixed;
        left: -100%;
        top: 0;
        width: 100%;
        height: 100vh;
        z-index: 1001;
        transition: left 0.3s ease;
        background: rgba(15, 23, 42, 0.98);
    }

    .dashboard-sidebar.open {
        left: 0;
    }

    /* Sidebar header needs left padding to avoid hamburger button */
    .dashboard-sidebar .sidebar-header {
        padding-left: 60px;
    }

    .mobile-menu-toggle {
        display: flex;
        position: fixed;
        top: 16px;
        left: 16px;
        z-index: 1002;
        width: 44px;
        height: 44px;
        background: linear-gradient(135deg, #F87171 0%, #EF4444 100%);
        border: none;
        border-radius: 12px;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 20px rgba(248, 113, 113, 0.4);
        transition: all 0.3s ease;
    }

    .mobile-menu-toggle:hover {
        transform: scale(1.05);
    }

    .hamburger-icon {
        line-height: 1;
    }

    /* Mobile header - title next to hamburger */
    .dashboard-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 999;
        background: linear-gradient(180deg, rgba(15, 23, 42, 0.98) 0%, rgba(15, 23, 42, 0.95) 100%);
        padding: 16px 16px 16px 76px; /* Left padding for hamburger button */
        margin: 0;
        flex-direction: row;
        align-items: center;
        gap: 0;
        border-bottom: 1px solid rgba(251, 191, 36, 0.1);
    }

    .dashboard-header h1 {
        font-size: 1.25rem;
        margin: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .dashboard-user {
        display: none; /* Hide user info in mobile header, show elsewhere */
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
    }

    .sidebar-overlay.open {
        display: block;
    }

    .dashboard-content {
        margin-left: 0;
        padding: 70px 16px 16px;
        max-width: 100vw;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    /* Management tabs mobile layout */
    .management-tabs {
        flex-wrap: wrap;
        gap: 8px;
        padding: 8px;
        background: rgba(0, 0, 0, 0.2);
        border-radius: 8px;
        border-bottom: none;
    }

    .management-tabs button {
        padding: 8px 12px;
        font-size: 0.85rem;
        flex: 1 1 calc(50% - 8px);
        justify-content: center;
        border-radius: 6px;
    }

    /* Page tabs mobile layout */
    .page-tabs {
        padding: 8px;
        gap: 6px;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .page-tabs button {
        padding: 8px 10px;
        font-size: 0.8rem;
        justify-content: center;
        text-align: center;
        width: 100%;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }

    .coming-soon {
        padding: 40px 20px;
        margin: 20px;
    }

    .coming-soon-features {
        flex-direction: column;
        gap: 16px;
    }

    /* Admin Table Responsive Styles */
    .table-selector {
        padding: 8px;
        gap: 6px;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .table-selector button {
        padding: 8px 10px;
        font-size: 0.75rem;
        justify-content: center;
        text-align: center;
        width: 100%;
    }

    .table-container {
        padding: 12px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table-container h2 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }

    .data-table {
        min-width: 500px;
        font-size: 0.8rem;
    }

    .data-table th {
        padding: 8px 10px;
        font-size: 0.75rem;
    }

    .data-table td {
        padding: 8px 10px;
    }

    .data-table code {
        font-size: 0.75rem;
        padding: 2px 4px;
    }

    /* Release page mobile styles */
    .release-info-card,
    .upload-section,
    .files-section {
        padding: 16px;
    }

    .upload-area {
        padding: 24px 16px;
    }

    .file-list-table {
        min-width: 400px;
    }
}

/* ======================================
   Amicis Logo Icon Styles
   ====================================== */

.nav-icon {
    width: 1.2em;
    height: 1.2em;
    vertical-align: middle;
    margin-right: 0.25em;
}

.amicis-logo-lg {
    width: 80px;
    height: 80px;
}

.orbit-icon {
    width: 100%;
    height: 100%;
}

.feature-icon-img {
    width: 2.5rem;
    height: 2.5rem;
}

.metric-icon-img {
    width: 2rem;
    height: 2rem;
}

.action-icon-img {
    width: 2.5rem;
    height: 2.5rem;
}

.table-icon {
    width: 1em;
    height: 1em;
    vertical-align: middle;
    margin-right: 0.25em;
}

/* =============================================== */
/* DARK CARD COMPONENT - For consistent dark theme */
/* =============================================== */

.card-dark {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(251, 191, 36, 0.15);
    color: #e2e8f0;
}

.card-dark .card-header {
    background: rgba(15, 23, 42, 0.5);
    border-bottom: 1px solid rgba(251, 191, 36, 0.1);
    color: #f1f5f9;
}

.card-dark .card-body {
    color: #cbd5e1;
}

.card-dark .text-muted {
    color: #94a3b8 !important;
}

.card-dark .list-group-item {
    background: transparent;
    border-color: rgba(251, 191, 36, 0.1);
    color: #cbd5e1;
}

.card-dark .list-group-item:hover {
    background: rgba(248, 113, 113, 0.1);
    color: #f1f5f9;
}

.card-dark .form-control {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(251, 191, 36, 0.2);
    color: #e2e8f0;
}

.card-dark .form-control::placeholder {
    color: #64748b;
}

.card-dark .form-control:focus {
    background: rgba(15, 23, 42, 0.9);
    border-color: var(--coral-500);
    color: #f1f5f9;
}

.card-dark .form-select {
    background-color: rgba(15, 23, 42, 0.8);
    border-color: rgba(251, 191, 36, 0.2);
    color: #e2e8f0;
}

.card-dark .border-top,
.card-dark .border-bottom {
    border-color: rgba(251, 191, 36, 0.1) !important;
}

/* Chat message styling for dark theme */
.card-dark .chat-message.bg-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
}

.card-dark .chat-message.bg-light {
    background: rgba(51, 65, 85, 0.8) !important;
    color: #e2e8f0 !important;
}

.card-dark .chat-message.bg-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #1e293b !important;
}

.card-dark .chat-message.bg-info {
    background: rgba(56, 189, 248, 0.2) !important;
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #e2e8f0 !important;
}

/* =============================================== */
/* CHAT MESSAGE IMAGE CONSTRAINTS */
/* =============================================== */

/* Base image constraints in chat messages */
.chat-message img {
    max-width: 100%;
    max-height: 300px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

/* Ensure chat message container constrains content */
.chat-message {
    overflow: hidden;
    min-width: 0;
    word-break: break-word;
}

/* Mobile-specific image constraints - much smaller on phone screens */
@media (max-width: 768px) {
    .chat-message img {
        max-width: 200px;
        max-height: 200px;
    }
    
    /* Note: DisplayAgent has its own mobile styles in DisplayAgent.razor.css */
    /* This 75% max-width is for other chat views, not the kiosk display */
    .cloud-chat-column .chat-messages .chat-message {
        max-width: 75% !important;
    }
}

/* Tablet image constraints */
@media (min-width: 769px) and (max-width: 1024px) {
    .chat-message img {
        max-width: 250px;
        max-height: 250px;
    }
}

/* =============================================== */
/* AGENT DETAILS - Mobile Section Layout */
/* =============================================== */

/* Container for all agent sections */
.agent-details-sections {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Tablet/smaller desktop: 2-column layout */
@media (min-width: 769px) and (max-width: 1399px) {
    .agent-details-sections {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto auto;
        gap: 24px;
    }

    .agent-section.mobile-section#chat-section {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .agent-section.mobile-section#screen-section {
        grid-column: 1;
        grid-row: 2;
    }

    .agent-section.mobile-section#info-section {
        grid-column: 2;
        grid-row: 2;
    }

    .agent-section.mobile-section#workflows-section {
        grid-column: 1 / -1;
        grid-row: 3;
    }

    .mobile-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .chat-card {
        height: calc(100vh - 400px);
        min-height: 350px;
    }

    .chat-body {
        overflow: hidden;
    }

    .chat-messages {
        min-height: 0;
    }

    .screen-preview-body {
        min-height: 300px;
        background: #1a1a2e;
        cursor: pointer;
    }

    .screen-image {
        object-fit: contain;
        max-height: 400px;
    }
}

/* Large desktop: 3-column layout - fills the empty space */
@media (min-width: 1400px) {
    .agent-details-sections {
        display: grid;
        grid-template-columns: 1.2fr 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        gap: 20px;
        height: calc(100vh - 140px);
    }

    /* Chat: left column, spans both rows */
    .agent-section.mobile-section#chat-section {
        grid-column: 1;
        grid-row: 1 / 3;
    }

    /* Screen: center column, top row */
    .agent-section.mobile-section#screen-section {
        grid-column: 2;
        grid-row: 1;
    }

    /* Info: center column, bottom row */
    .agent-section.mobile-section#info-section {
        grid-column: 2;
        grid-row: 2;
    }

    /* Workflows: right column, top row */
    .agent-section.mobile-section#workflows-section {
        grid-column: 3;
        grid-row: 1 / 3;
    }

    /* Workflows section becomes stacked instead of side-by-side */
    .agent-section#workflows-section .mobile-grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
        height: 100%;
    }

    .agent-section#workflows-section .mobile-card {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .agent-section#workflows-section .workflows-body,
    .agent-section#workflows-section .conversations-body {
        flex: 1;
        overflow-y: auto;
    }

    /* Make cards fill their containers */
    .agent-section.mobile-section {
        display: flex;
        flex-direction: column;
    }

    .agent-section.mobile-section > .card,
    .agent-section.mobile-section > .mobile-grid {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .mobile-grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .mobile-grid .mobile-card {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .chat-card {
        height: 100%;
        min-height: 0;
    }

    .chat-body {
        overflow: hidden;
        flex: 1;
    }

    .chat-messages {
        min-height: 0;
    }

    .screen-preview-body {
        flex: 1;
        min-height: 200px;
        background: #1a1a2e;
        cursor: pointer;
    }

    .screen-image {
        object-fit: contain;
        max-height: 100%;
    }

    .info-body {
        flex: 1;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px 24px;
        padding: 12px;
    }

    .info-item {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .info-label {
        font-size: 0.7rem;
        color: var(--slate-400);
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .info-value {
        font-size: 0.9rem;
    }
}

/* Mobile: Full-screen sections with scroll snap */
@media (max-width: 768px) {
    /* Make the dashboard content the scroll container on mobile */
    .dashboard-content:has(.agent-details-sections) {
        padding: 70px 0 0 0;
        overflow: hidden;
        height: 100vh;
        display: flex;
        flex-direction: column;
    }

    .agent-details-sections {
        flex: 1;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        overflow-x: hidden;
        scroll-snap-type: y mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        padding: 0;
    }

    .agent-section.mobile-section {
        scroll-snap-align: start;
        min-height: calc(100vh - 70px);
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
        padding: 16px;
        box-sizing: border-box;
    }

    /* Chat Section - Most important, takes full screen */
    .agent-section#chat-section {
        min-height: calc(100vh - 70px);
    }

    .mobile-card {
        border-radius: 16px;
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .chat-card {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .chat-body {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0;
        overflow: hidden;
    }

    .chat-messages {
        flex: 1;
        overflow-y: auto;
        min-height: 0;
    }

    .chat-input {
        flex-shrink: 0;
        padding: 12px !important;
        background: rgba(15, 23, 42, 0.95);
    }

    .chat-input .form-control-lg {
        font-size: 16px; /* Prevent iOS zoom */
        padding: 12px 16px;
        border-radius: 24px 0 0 24px;
    }

    .chat-input .btn-lg {
        border-radius: 0 24px 24px 0;
        padding: 12px 20px;
    }

    .quick-commands {
        text-align: left;
        padding: 0 16px;
    }

    .quick-commands li {
        padding: 8px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .quick-commands .btn-link {
        font-size: 0.95rem;
        white-space: normal;
        text-align: left;
        line-height: 1.4;
    }

    /* Screen Section */
    .agent-section#screen-section .mobile-card {
        flex: 1;
    }

    .screen-preview-body {
        flex: 1;
        min-height: 250px;
        background: #1a1a2e;
        cursor: pointer;
        padding: 16px;
    }

    .screen-image {
        object-fit: contain;
        max-width: 100%;
        max-height: 100%;
    }

    /* Info Section */
    .mobile-grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
        flex: 1;
    }

    .mobile-grid .mobile-card {
        flex: 1;
    }

    .info-body {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        padding: 16px;
    }

    .info-item {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .info-label {
        font-size: 0.75rem;
        color: var(--slate-400);
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .info-value {
        font-size: 1rem;
    }

    /* Workflows & Conversations */
    .workflows-body,
    .conversations-body {
        max-height: none;
        flex: 1;
    }

    .workflows-body .list-group-item,
    .conversations-body .list-group-item {
        padding: 14px 16px;
        font-size: 1rem;
    }

    /* Section indicators (scroll dots) - optional visual hint */
    .agent-details-sections::after {
        content: '';
        position: fixed;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
        width: 4px;
        height: 60px;
        background: rgba(255,255,255,0.1);
        border-radius: 2px;
        z-index: 100;
    }
}

/* =============================================== */
/* CLOUD AGENT DETAILS - AgentList Page */
/* =============================================== */

/* Cloud Agent Details - 3-column layout matching AgentDetails exactly */
.cloud-agent-details {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: 1fr 1fr;
    gap: 20px;
    height: calc(100vh - 200px);
    padding: 16px;
    min-width: 0;
    overflow: hidden;
}

/* Chat column: spans both rows */
.cloud-column.cloud-chat-column {
    grid-column: 1;
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
}

.cloud-chat-column .chat-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
    height: 100%;
    overflow: hidden;
}

.cloud-chat-column .chat-body {
    flex: 1;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
}

.cloud-chat-column .chat-messages {
    flex: 1;
    overflow-y: auto;
    min-width: 0;
    word-break: break-word;
}

/* Middle column: spans both rows */
.cloud-column.cloud-info-column {
    grid-column: 2;
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 0;
    overflow-y: auto;
}

/* Right column: spans both rows */
.cloud-column.cloud-actions-column {
    grid-column: 3;
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 0;
    overflow-y: auto;
}

/* Cards in info/actions columns fill space */
.cloud-info-column .card,
.cloud-actions-column .card {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.cloud-info-column .card-body,
.cloud-actions-column .card-body {
    flex: 1;
    overflow-y: auto;
}

/* Tablet: 2 columns */
@media (max-width: 1200px) {
    .cloud-agent-details {
        grid-template-columns: 1fr 1fr;
        height: calc(100vh - 180px);
    }
    
    .cloud-column.cloud-chat-column {
        grid-column: 1;
        grid-row: 1 / 3;
    }
    
    .cloud-column.cloud-info-column {
        grid-column: 2;
        grid-row: 1 / 3;
    }
    
    /* Hide right column on tablet */
    .cloud-actions-column {
        display: none;
    }
}

/* Mobile: Stack vertically with scroll snap */
@media (max-width: 768px) {
    .cloud-agent-details {
        display: flex;
        flex-direction: column;
        gap: 0;
        height: auto;
        padding: 0;
        overflow-y: auto;
        overflow-x: hidden;
        scroll-snap-type: y mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
    
    .cloud-column.cloud-chat-column,
    .cloud-column.cloud-info-column,
    .cloud-column.cloud-actions-column {
        grid-column: auto;
        grid-row: auto;
    }

    .cloud-column.mobile-section {
        scroll-snap-align: start;
        min-height: calc(100vh - 160px);
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
        padding: 16px;
        box-sizing: border-box;
    }
    
    .cloud-chat-column .chat-card {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }
    
    .cloud-actions-column {
        display: flex;
    }

    /* Fix info-body grid on mobile */
    .cloud-info-column .info-body {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        padding: 12px;
    }

    .cloud-info-column .info-item {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .cloud-info-column .info-label {
        font-size: 0.7rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .cloud-info-column .info-value {
        font-size: 0.85rem;
        word-break: break-word;
    }

    /* Cards fill the section */
    .cloud-info-column .mobile-card,
    .cloud-actions-column .mobile-card {
        flex: 1;
    }

    .cloud-info-column .card-body,
    .cloud-actions-column .card-body {
        padding: 12px;
    }

    /* Make list items more compact */
    .cloud-info-column .list-group-item,
    .cloud-actions-column .list-group-item {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
}

/* =============================================== */
/* BOOTH DATA MANAGEMENT STYLES */
/* =============================================== */

.booth-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.booth-stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.booth-stat-icon {
    font-size: 1.5rem;
}

.booth-stat-content {
    display: flex;
    flex-direction: column;
}

.booth-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #f87171;
}

.booth-stat-label {
    color: #94a3b8;
    font-size: 0.85rem;
}

.booth-danger-zone {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.booth-danger-zone h3 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    color: #fff;
}

.booth-danger-zone .warning-text {
    color: #fbbf24;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.booth-danger-zone .action-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-danger {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
}

.btn-danger:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.btn-danger:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-danger-outline {
    background: transparent;
    color: #f87171;
    border: 2px solid #dc2626;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.btn-danger-outline:hover:not(:disabled) {
    background: rgba(220, 38, 38, 0.1);
}

.btn-danger-outline:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.lead-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.lead-photo-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f87171, #ef4444);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
    color: white;
}

.empty-message {
    color: #64748b;
    text-align: center;
    padding: 40px;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

.modal-card {
    background: #1a1a1a;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 16px;
    padding: 30px;
    max-width: 400px;
    text-align: center;
    color: white;
}

.modal-card h3 {
    margin: 0 0 15px 0;
    font-size: 1.5rem;
}

.confirm-warning {
    color: #fbbf24;
    font-size: 0.9rem;
    margin: 15px 0;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}