/* Pulse Columns - Multi-monitor layout */

:root {
    --bg-primary: #1e1e2e;
    --bg-secondary: #2a2a3e;
    --bg-tertiary: #363650;
    --bg-hover: #3a3a50;
    --bg-sidebar: #1e1e2e;

    --text-primary: #e8e8f0;
    --text-secondary: #a8a8b8;
    --text-muted: #7a7a8a;

    --border-light: #3a3a4e;
    --border-medium: #4a4a5e;

    --accent-teal: #00bcd4;
    --accent-dark: #0d1117;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.5);

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    --transition: all 0.2s ease;

    /* Status colors - adjusted for dark theme */
    --status-new: #34d399;
    --status-update: #60a5fa;
    --status-reversal: #fbbf24;
    --status-repeat: #9ca3af;
    --status-shift: #f85149;
    --status-quo: #9ca3af;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: var(--accent-dark);
    color: var(--text-primary);
    height: 100vh;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.app-container {
    display: flex;
    height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    width: 60px;
    background: var(--bg-primary);
    border-right: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex-shrink: 0;
}

.sidebar-header {
    padding: 26px 10px 20px 10px;
}

.logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
}

.sidebar-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
    transition: opacity 0.2s ease;
}

.logo-section a:hover .sidebar-logo {
    opacity: 0.7;
    cursor: pointer;
}

/* Main Navigation */
.main-nav {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nav-item-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.main-nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    font-family: inherit;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    width: 40px;
    height: 40px;
}

.main-nav-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.main-nav-item.active {
    background: var(--accent-teal);
    color: white;
    font-weight: 500;
}

.main-nav-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.nav-label {
    font-size: 9px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1;
    text-align: center;
}

.sidebar-spacer {
    flex: 1;
}

.sidebar-footer {
    padding: 10px;
    border-top: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: visible;
}

.sidebar-footer .connection-indicator {
    justify-content: center;
    padding: 8px;
}

.sidebar-footer .status-text {
    display: none;
}

/* User Menu */
.user-menu-container {
    position: static;
    width: 100%;
}

.user-menu-btn {
    width: 100%;
    padding: 8px;
    background: transparent;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.user-menu-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--border-medium);
    color: var(--text-primary);
}

.user-menu-btn svg {
    stroke: currentColor;
}

/* Dropdown Menu */
.user-dropdown {
    position: fixed;
    bottom: 20px;
    left: 70px;
    width: 280px;
    background: #1e1e2e;
    border: 1px solid #3a3a4e;
    border-radius: 8px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.user-menu-container:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* User Info Section */
.user-info {
    padding: 8px;
    border-bottom: 1px solid #3a3a4e;
    margin-bottom: 4px;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: #e8e8f0;
    margin-bottom: 4px;
}

.user-email {
    font-size: 12px;
    color: #a8a8b8;
    margin-bottom: 6px;
}

.user-role-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 4px;
    background: #00bcd4;
    color: white;
}

.user-role-badge.admin {
    background: #f97316;
}

/* Dropdown Items */
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: #e8e8f0;
    font-family: inherit;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.dropdown-item:hover {
    background: #2a2a3e;
    color: #00bcd4;
}

.dropdown-item svg {
    stroke: currentColor;
    flex-shrink: 0;
}

.logout-item {
    color: #ef4444;
}

.logout-item:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.dropdown-divider {
    height: 1px;
    background: #3a3a4e;
    margin: 4px 0;
}

.connection-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    background: transparent;
    border-radius: var(--radius-md);
    font-size: 12px;
    color: var(--text-secondary);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    animation: pulse-dot 2s infinite;
}

.status-dot.connected {
    background: #10b981;
    animation: none;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Main Content Area */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.view-container {
    display: none;
    flex: 1;
    overflow: hidden;
}

.view-container.active {
    display: flex;
    flex-direction: column;
}

/* Pulse View Specific */
.pulse-header {
    padding: 20px 24px;
    background: #0d1117;
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.view-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.new-column-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--accent-teal);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.new-column-btn:hover {
    background: #00acc1;
}

/* Columns Container */
.columns-container {
    flex: 1;
    overflow: auto;
    padding: 0;
    position: relative;
    background-color: #0d1117;
    min-height: 100%;
    min-width: 100%;
}

.columns-container::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.columns-container::-webkit-scrollbar-track {
    background: var(--accent-dark);
}

.columns-container::-webkit-scrollbar-thumb {
    background: var(--border-medium);
    border-radius: 5px;
}

.columns-container::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

.columns-container::-webkit-scrollbar-corner {
    background: var(--accent-dark);
}

/* Empty State */
.empty-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-secondary);
}

.empty-state svg {
    margin-bottom: 24px;
    color: var(--text-muted);
}

.empty-state h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* Column Card */
.pulse-column {
    position: absolute;
    width: 420px;
    height: 600px;
    min-width: 320px;
    min-height: 400px;
    max-width: 800px;
    max-height: 1200px;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 0;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease;
    z-index: 1;
    resize: both;
    overflow: hidden;
}

.pulse-column:hover {
    box-shadow: var(--shadow-lg);
}

.pulse-column.dragging {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    cursor: grabbing;
}

.pulse-column.active {
    z-index: 10;
}

.pulse-column.resizing {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

/* Custom resize handle */
.resize-handle {
    position: absolute;
    width: 20px;
    height: 20px;
    right: 0;
    bottom: 0;
    cursor: nwse-resize;
    z-index: 10;
}

.resize-handle::after {
    content: '';
    position: absolute;
    right: 3px;
    bottom: 3px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 12px 12px;
    border-color: transparent transparent var(--border-medium) transparent;
    opacity: 0.5;
}

.resize-handle:hover::after {
    opacity: 0.8;
    border-color: transparent transparent var(--accent-teal) transparent;
}

/* Column Header */
.column-header {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-tertiary);
    border-radius: 0;
    cursor: grab;
    user-select: none;
    flex-shrink: 0;
}

.column-header:active {
    cursor: grabbing;
}

.column-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.column-controls {
    display: flex;
    gap: 8px;
}

.column-control-btn {
    padding: 6px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.column-control-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.column-control-btn.active {
    background: var(--accent-teal);
    color: white;
}

/* Notification Bell Button */
.notification-btn {
    position: relative;
}

.notification-btn svg {
    transition: all 0.2s ease;
}

.notification-btn:not(.active) {
    color: var(--text-muted);
}

.notification-btn.active {
    background: var(--accent-teal);
    color: white;
}

.notification-btn.active::after {
    content: '';
    position: absolute;
    top: 4px;
    right: 4px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ef4444;
    border: 1px solid white;
}

/* Filter Section */
.column-filters {
    padding: 16px;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-primary);
    max-height: 0;
    overflow: visible;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    position: relative;
    z-index: 100;
}

.column-filters.visible {
    max-height: 500px;
    opacity: 1;
    padding: 16px;
}

.filter-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.filter-row:last-child {
    margin-bottom: 0;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
}

.column-search-input {
    width: 100%;
    padding: 8px 12px;
    padding-right: 32px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 13px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    transition: var(--transition);
}

.column-search-input:focus {
    outline: none;
    border-color: var(--accent-teal);
    background: var(--bg-secondary);
}

.column-search-input::placeholder {
    color: var(--text-muted);
}

.search-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.filter-dropdown-wrapper {
    position: relative;
    z-index: 10;
}

.filter-dropdown-btn {
    padding: 8px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 13px;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.filter-dropdown-btn:hover {
    background: var(--bg-hover);
}

.filter-dropdown-btn svg {
    width: 12px;
    height: 12px;
    color: var(--text-secondary);
}

.filter-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    min-width: 150px;
    z-index: 1000;
    display: none;
}

.filter-dropdown-wrapper.open .filter-dropdown-menu {
    display: block;
}

.filter-option {
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    color: var(--text-secondary);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-option:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.filter-option.active {
    background: var(--accent-teal);
    color: white;
}

.filter-checkbox {
    width: 14px;
    height: 14px;
    border: 1.5px solid var(--border-medium);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-option.active .filter-checkbox {
    background: white;
    border-color: white;
}

.filter-checkbox svg {
    width: 10px;
    height: 10px;
    display: none;
}

.filter-option.active .filter-checkbox svg {
    display: block;
    color: var(--accent-teal);
}

/* Headlines List */
.column-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 12px 12px 12px;
    min-height: 0;
}

.column-content::-webkit-scrollbar {
    width: 6px;
}

.column-content::-webkit-scrollbar-track {
    background: transparent;
}

.column-content::-webkit-scrollbar-thumb {
    background: var(--border-medium);
    border-radius: 3px;
}

.column-content::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

.column-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    color: var(--text-secondary);
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border-light);
    border-top-color: var(--accent-teal);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.column-empty {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-secondary);
}

/* Headline Card */
.headline-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 0;
    margin-bottom: 8px;
    overflow: visible;
    transition: var(--transition);
}

.headline-card.new-headline {
    animation: amberFlash 1.5s ease-out;
}

@keyframes amberFlash {
    0% {
        background-color: rgba(245, 158, 11, 0.3);
    }
    100% {
        background-color: var(--bg-secondary);
    }
}

.headline-card:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--border-medium);
}

.headline-card:last-child {
    margin-bottom: 0;
}

.headline-header {
    padding: 12px;
    position: relative;
}

/* Expand Arrow Button */
.expand-arrow {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    color: var(--text-muted);
    background: transparent;
}

.expand-arrow:hover {
    background: var(--bg-hover);
    color: var(--text-secondary);
}

.expand-arrow svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.headline-card.expanded .expand-arrow svg {
    transform: rotate(180deg);
}

.headline-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.headline-time {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.headline-source {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.source-icon {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    object-fit: cover;
}

.source-icon.ft-logo {
    border-radius: 2px;
}

.context-badge {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-new { background: rgba(52, 211, 153, 0.15); color: var(--status-new); }
.badge-update { background: rgba(96, 165, 250, 0.15); color: var(--status-update); }
.badge-reversal { background: rgba(251, 191, 36, 0.15); color: var(--status-reversal); }
.badge-repeat { background: rgba(156, 163, 175, 0.15); color: var(--status-repeat); }
.badge-shift { background: rgba(248, 81, 73, 0.15); color: var(--status-shift); }
.badge-status-quo { background: rgba(156, 163, 175, 0.15); color: var(--status-quo); }
.badge-lang { background: rgba(240, 136, 62, 0.15); color: #f0883e; }
.badge-translated { background: rgba(240, 136, 62, 0.15); color: #f0883e; }

.headline-text {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-primary);
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

/* Clickable headline link */
.headline-link {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.headline-link:hover {
    color: var(--accent-teal);
    text-decoration: underline;
}

/* Translation toggle button */
.translate-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    padding: 3px 8px;
    background: var(--surface-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 4px;
    color: var(--text-secondary);
    font-size: 11px;
    cursor: pointer;
    transition: var(--transition);
}

.translate-toggle:hover {
    background: var(--surface-hover);
    color: var(--text-primary);
    border-color: var(--accent-teal);
}

.translate-toggle.showing-original {
    background: rgba(45, 212, 191, 0.1);
    border-color: var(--accent-teal);
    color: var(--accent-teal);
}

.translate-toggle svg {
    flex-shrink: 0;
}

.translate-toggle .toggle-label {
    white-space: nowrap;
}

.headline-context {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.headline-card.expanded .headline-context {
    max-height: 2000px;
}

.context-inner {
    padding: 0 12px 12px 12px;
    border-top: 1px solid var(--border-light);
}

.context-section {
    margin-top: 12px;
}

.context-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.context-narrative {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Implications Section */
.implications-section {
    margin-top: 12px;
    background: rgba(96, 165, 250, 0.06);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 6px;
    padding: 12px;
}

.implications-label {
    font-size: 11px;
    font-weight: 600;
    color: #60a5fa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.implications-label svg {
    width: 14px;
    height: 14px;
    fill: #60a5fa;
}

.implications-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.implications-list li {
    padding-left: 18px;
    position: relative;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.implications-list li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: #60a5fa;
    font-weight: bold;
    font-size: 16px;
}

/* Shift/Status-Quo Justification Section */
.justification-section {
    margin-top: 12px;
    border-radius: 6px;
    padding: 12px;
    border: 1px solid;
}

.justification-section.shift {
    background: rgba(251, 191, 36, 0.08);
    border-color: rgba(251, 191, 36, 0.3);
}

.justification-section.status-quo {
    background: rgba(156, 163, 175, 0.08);
    border-color: rgba(156, 163, 175, 0.3);
}

.justification-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.justification-section.shift .justification-label {
    color: #fbbf24;
}

.justification-section.status-quo .justification-label {
    color: #9ca3af;
}

.justification-label svg {
    width: 14px;
    height: 14px;
}

.justification-section.shift .justification-label svg {
    stroke: #fbbf24;
}

.justification-section.status-quo .justification-label svg {
    stroke: #9ca3af;
}

.justification-text {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.justification-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 90%;
    max-width: 500px;
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--bg-hover);
}

.modal-body {
    padding: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 14px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: var(--transition);
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--accent-teal);
    background: var(--bg-tertiary);
}

.form-input::placeholder, .form-textarea::placeholder {
    color: var(--text-muted);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.form-hint {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 6px;
    line-height: 1.4;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Buttons */
.btn-primary, .btn-secondary {
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--accent-teal);
    color: white;
}

.btn-primary:hover {
    background: #00acc1;
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    background: var(--bg-hover);
}

.loading-spinner {
    color: rgba(255, 255, 255, 0.7);
}

/* =============================================================================
   ANALYST VIEW STYLES (adapted from kronical-style.css)
   ============================================================================= */

.analyst-container {
    display: flex;
    height: 100%;
    background: var(--bg-primary);
}

/* Left Panel - 33% width */
.analyst-left-panel {
    width: 33.33%;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Search Section */
.analyst-left-panel .search-section {
    padding: 20px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-light);
}

/* Active Search Bubble */
.active-search-container {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.active-search-bubble {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px 6px 14px;
    background: #00a8b5;
    color: white;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    animation: slideInBubble 0.3s ease;
    cursor: pointer;
    position: relative;
    border: 2px solid transparent;
}

.active-search-bubble:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.active-search-bubble.active {
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2), 0 2px 8px rgba(0, 0, 0, 0.15);
    cursor: default;
}

.active-search-bubble.active:hover {
    transform: none;
}

.bubble-text {
    user-select: none;
}

.bubble-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.bubble-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

@keyframes slideInBubble {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.analyst-left-panel .search-title {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    font-weight: 600;
}

.analyst-left-panel .search-box {
    position: relative;
}

.analyst-search-input {
    width: 100%;
    padding: 12px 40px 12px 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.2s ease;
}

.analyst-search-input:focus {
    outline: none;
    border-color: #00a8b5;
    box-shadow: 0 0 0 3px rgba(0, 168, 181, 0.1);
}

.analyst-left-panel .search-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.analyst-left-panel .live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 12px;
    color: #00d084;
}

.analyst-left-panel .pulse-dot {
    width: 6px;
    height: 6px;
    background: #00d084;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* Headlines Section */
.analyst-left-panel .headlines-section {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: var(--bg-primary);
    border-bottom: none;
}

.analyst-left-panel .headlines-section::-webkit-scrollbar {
    width: 6px;
}

.analyst-left-panel .headlines-section::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

.analyst-left-panel .headlines-section::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 3px;
}

.analyst-left-panel .headlines-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.analyst-left-panel .headlines-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.analyst-left-panel .match-count {
    font-size: 12px;
    color: var(--text-muted);
    background: var(--bg-primary);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
}

/* Headline Cards */
.analyst-headline-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

.analyst-headline-card:hover {
    border-color: #00a8b5;
    box-shadow: var(--shadow-sm);
}

.analyst-headline-card.new {
    border-left: 3px solid #00d084;
}

.analyst-headline-card .new-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #10b981;
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.analyst-headline-card .headline-source {
    font-size: 11px;
    color: #00a8b5;
    font-weight: 600;
    margin-bottom: 6px;
    text-transform: uppercase;
    background: none;
    padding: 0;
    border-radius: 0;
}

/* Chat Section - Card design within headlines section */
.analyst-chat-section {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #0d0d0d;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    margin: 20px;
    min-height: 400px;
    flex: 1;
}

.analyst-chat-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.analyst-chat-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.analyst-new-chat-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.analyst-new-chat-btn:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-teal);
    color: var(--accent-teal);
}

.analyst-messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.analyst-messages-container::-webkit-scrollbar {
    width: 6px;
}

.analyst-messages-container::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.analyst-messages-container::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 3px;
}

.analyst-chat-message {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.analyst-message-role {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.analyst-message-content {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    color: var(--text-primary);
    font-size: 13px;
    line-height: 1.5;
}

.analyst-chat-message.user .analyst-message-content {
    background: var(--bg-tertiary);
    border-color: var(--border-medium);
}

.analyst-chat-message.assistant .analyst-message-role {
    color: var(--accent-teal);
}

.analyst-chat-welcome {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.chat-welcome-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.chat-welcome-text {
    font-size: 13px;
    line-height: 1.6;
}

.analyst-chat-input-section {
    padding: 8px 20px 32px 20px;
    border-top: none;
    flex-shrink: 0;
}

.analyst-input-wrapper {
    position: relative;
    display: flex;
    gap: 8px;
}

.analyst-message-input {
    flex: 1;
    padding: 15px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 13px;
    font-family: inherit;
    resize: none;
    max-height: 120px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.analyst-message-input:focus {
    outline: none;
    border-color: var(--accent-teal);
    background: var(--bg-tertiary);
}

.analyst-message-input::placeholder {
    color: var(--text-muted);
}

.analyst-send-btn {
    width: 36px;
    height: 36px;
    background: var(--accent-teal);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    align-self: center;
}

.analyst-send-btn:hover {
    background: #00a5bb;
    transform: translateY(-1px);
}

.analyst-send-btn:active {
    transform: translateY(0);
}

.analyst-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Right Panel - 67% width */
.analyst-right-panel {
    width: 66.67%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bg-primary);
}

/* Analysis Container */
.analysis-container {
    flex: 1;
    overflow-y: auto;
    padding: 24px 30px;
    background: var(--bg-secondary);
}

/* Welcome State */
.analyst-welcome {
    text-align: center;
    padding: 60px 20px;
}

.analyst-welcome h2 {
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.analyst-welcome p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Analysis Sections */
.analysis-section {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.section-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    font-weight: 600;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-content {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Parsed AI Response Styles */
.parsed-overview {
    margin-bottom: 20px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.subsection-title {
    color: var(--accent-teal);
    font-weight: 600;
    font-size: 15px;
    margin-top: 20px;
    margin-bottom: 12px;
}

.parsed-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.parsed-list li {
    padding-left: 20px;
    margin-bottom: 10px;
    position: relative;
    line-height: 1.6;
    color: var(--text-secondary);
}

.parsed-list li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-teal);
    font-weight: bold;
    font-size: 18px;
}

.parsed-list strong,
.parsed-overview strong {
    color: var(--text-primary);
    font-weight: 600;
}

.parsed-list .number,
.parsed-overview .number {
    color: var(--accent-teal);
    font-weight: 600;
}

/* Latest Development - Breaking News Section */
.latest-development {
    background: linear-gradient(135deg, rgba(0, 168, 181, 0.08), rgba(0, 168, 181, 0.03));
    border-left: 4px solid var(--accent-teal);
    padding: 16px 20px;
    margin-bottom: 24px;
    border-radius: 8px;
    line-height: 1.7;
    color: var(--text-primary);
    font-weight: 500;
}

.latest-development strong {
    color: var(--text-primary);
    font-weight: 700;
}

.latest-development .number {
    color: var(--accent-teal);
    font-weight: 700;
}

/* How This Changes the Picture Section */
.changes-section {
    margin-bottom: 20px;
    padding: 14px 18px;
    background: rgba(0, 168, 181, 0.04);
    border-radius: 6px;
}

.changes-section .subsection-title {
    margin-top: 0;
    margin-bottom: 10px;
}

.changes-text {
    line-height: 1.7;
    color: var(--text-secondary);
}

.changes-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

.changes-text .number {
    color: var(--accent-teal);
    font-weight: 600;
}

/* Recommendations - Primary Asset Card */
.primary-asset {
    background: linear-gradient(135deg, rgba(0, 168, 181, 0.06), rgba(0, 168, 181, 0.02));
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 16px;
}

.asset-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.asset-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.asset-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 18px;
}

.asset-category {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Category badge colors */
.category-commodity {
    background: #fef3c7;
    color: #92400e;
}

.category-stock,
.category-equity {
    background: #dbeafe;
    color: #1e40af;
}

.category-global-index {
    background: #dbeafe;
    color: #1e40af;
}

.category-currency {
    background: #e0e7ff;
    color: #4338ca;
}

.category-energy {
    background: #fed7aa;
    color: #9a3412;
}

.category-defense {
    background: #e5e7eb;
    color: #374151;
}

.category-fixed-income {
    background: #f3e8ff;
    color: #6b21a8;
}

/* Sentiment badges */
.sentiment-badge {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sentiment-bullish {
    background: #d1fae5;
    color: #065f46;
}

.sentiment-bearish {
    background: #fee2e2;
    color: #991b1b;
}

.sentiment-neutral {
    background: #fef3c7;
    color: #92400e;
}

.asset-explanation {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

.asset-explanation strong {
    color: var(--text-primary);
    font-weight: 600;
}

.asset-explanation .number {
    color: var(--accent-teal);
    font-weight: 600;
}

/* No action state for recommendations */
.no-action-state {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 32px 24px;
    text-align: center;
}

.no-action-state .icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.no-action-state .message {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.no-action-state .submessage {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
}

/* Disclaimer for recommendations */
.disclaimer {
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 6px;
    padding: 12px 16px;
    margin-top: 16px;
    font-size: 12px;
    color: #92400e;
}

/* Timeline Styles */
.timeline-items {
    margin-top: 16px;
    position: relative;
}

.timeline-items::before {
    content: '';
    position: absolute;
    left: 90px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-light);
}

.timeline-item {
    display: flex;
    gap: 20px;
    padding-bottom: 20px;
    position: relative;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 86px;
    top: 8px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid #00a8b5;
}

.timeline-date {
    width: 75px;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    padding-top: 6px;
    text-align: right;
}

.timeline-content {
    flex: 1;
    padding-left: 20px;
}

.timeline-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.timeline-description {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Loading Indicator */
.loading-indicator {
    color: var(--text-muted);
    font-style: italic;
    padding: 20px 0;
}

/* Pulse Animation */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 208, 132, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(0, 208, 132, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 208, 132, 0);
    }
}

/* =============================================================================
   AGENTS PAGE STYLES (adapted from kronical-style.css)
   ============================================================================= */

/* =============================================================================
   AGENTS PAGE - CARD-BASED DESIGN
   ============================================================================= */

/* Agents Container */
.agents-container {
    padding: 24px;
    overflow-y: auto;
    height: 100%;
    width: 100%;
}

/* Agents Header */
.agents-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
}

.agents-header h1 {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
}

.btn-new-agent {
    background: var(--accent-teal);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-new-agent:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Agents Section */
.agents-section {
    margin-bottom: 64px;
}

.section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    padding-top: 48px; /* Space for half-out icons */
}

/* Individual Agent Card */
.agent-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 50px 24px 24px 24px;
    position: relative;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.agent-card:hover {
    background: var(--bg-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Circular Icon Container (half in/half out) */
.agent-icon-container {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 3px solid var(--border-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.agent-icon-container img,
.agent-icon-container svg {
    width: 40px;
    height: 40px;
}

.agent-icon-container img {
    filter: brightness(0) invert(1); /* Make SVG images white */
}

.agent-icon-container svg {
    stroke: var(--text-primary);
    fill: none;
}

.agent-card-body {
    text-align: center;
}

.agent-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.agent-description {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 20px;
    min-height: 63px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.agent-actions {
    display: flex;
    gap: 8px;
}

.btn-agent-toggle {
    flex: 1;
    height: 40px;
    border-radius: var(--radius-md);
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-agent-toggle.enabled {
    background: var(--accent-teal);
    color: white;
}

.btn-agent-toggle.enabled:hover {
    opacity: 0.9;
}

.btn-agent-toggle.disabled {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.btn-agent-toggle.disabled:hover {
    background: var(--border-medium);
}

.agent-controls {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 12px;
}

.btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: none;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

.btn-icon.edit:hover {
    background: var(--accent-teal);
    color: white;
}

.btn-icon.delete:hover {
    background: #f87171;
    color: white;
}

/* Icon Picker */
.icon-picker {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-top: 12px;
    max-height: 300px;
    overflow-y: auto;
}

.icon-option {
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-light);
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.icon-option:hover {
    border-color: var(--accent-teal);
    background: var(--bg-hover);
}

.icon-option.selected {
    border-color: var(--accent-teal);
    background: rgba(0, 188, 212, 0.2);
}

.icon-option img,
.icon-option svg {
    width: 28px;
    height: 28px;
}

.icon-option img {
    filter: brightness(0) invert(1);
}

.icon-option svg {
    stroke: var(--text-primary);
}

/* Responsive Grid */
@media (max-width: 1200px) {
    .agents-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .agents-grid {
        grid-template-columns: 1fr;
    }

    .icon-picker {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
    font-size: 14px;
    grid-column: 1 / -1; /* Span all columns */
}

/* Alerts Section */
.alerts-section {
    margin-bottom: 32px;
}

.alerts-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.alerts-controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

.filter-dropdown {
    padding: 8px 16px;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    background: var(--bg-primary);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
}

.filter-dropdown:hover {
    border-color: var(--border-medium);
    background: var(--bg-secondary);
}

.filter-dropdown:focus {
    outline: none;
    border-color: #008080;
}

.mark-all-read-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    background: #008080;
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.mark-all-read-btn:hover {
    background: #006666;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.alerts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Alert Card */
.alert-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 16px;
    transition: var(--transition);
}

.alert-card:hover {
    border-color: var(--border-medium);
    box-shadow: var(--shadow-sm);
}

.alert-escalation {
    border-left: 4px solid #ff4444;
}

.alert-deescalation {
    border-left: 4px solid #22c55e;
}

.alert-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 13px;
}

.alert-icon {
    font-size: 14px;
}

.alert-type {
    font-weight: 600;
    color: var(--text-primary);
}

.alert-divider {
    color: var(--text-muted);
}

.alert-agent-name {
    color: var(--text-secondary);
}

.alert-time {
    color: var(--text-muted);
    margin-left: auto;
}

.alert-body {
    margin-bottom: 12px;
}

.alert-headline {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
}

.alert-footer {
    display: flex;
    gap: 16px;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Skeleton Loading States */
@keyframes skeleton-loading {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    padding-top: 48px;
}

.skeleton-agent-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 50px 24px 24px 24px;
    position: relative;
    height: 220px;
    overflow: hidden;
}

.skeleton-agent-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.03),
        transparent
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

/* Skeleton icon circle */
.skeleton-agent-card::after {
    content: '';
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 3px solid var(--border-medium);
}

.skeleton-alerts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skeleton-alert-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    height: 80px;
    position: relative;
    overflow: hidden;
}

.skeleton-alert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.03),
        transparent
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

/* Modal Overrides for Agents */
.agent-modal-content {
    max-width: 600px;
}

.delete-modal-content {
    max-width: 450px;
}

.warning-text {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 8px;
}

.btn-danger {
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    background: #ef4444;
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

/* Detached Window Styles */
body.detached-window {
    background: var(--bg-primary);
}

body.detached-window .sidebar {
    display: none;
}

body.detached-window .pulse-header {
    padding: 12px 16px;
}

body.detached-window .view-title {
    font-size: 16px;
}

body.detached-window .columns-container {
    padding: 16px;
}

body.detached-window .pulse-column {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    max-height: calc(100vh - 80px);
}

/* Agent Alert Badge */
.alert-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #f87171;
    color: white;
    font-size: 10px;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

/* Toast Notification */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    background: var(--bg-secondary);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    padding: 16px;
    width: 360px;
    box-shadow: var(--shadow-lg);
    pointer-events: all;
    animation: slideIn 0.3s ease-out;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.toast.dismissing {
    animation: slideOut 0.3s ease-out forwards;
}

.toast-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.toast-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: var(--transition);
}

.toast-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.toast-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.toast-agent {
    font-size: 13px;
    color: var(--text-secondary);
}

.toast-agent strong {
    color: var(--text-primary);
}

.toast-type {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.toast-type.shift {
    background: rgba(210, 153, 34, 0.15);
    color: #d29922;
}

.toast-type.status-quo {
    background: rgba(156, 163, 175, 0.15);
    color: #9ca3af;
}

.toast-type.success {
    background: rgba(52, 211, 153, 0.15);
    color: #34d399;
}

.toast-headline {
    font-size: 13px;
    color: var(--text-primary);
    line-height: 1.4;
    margin-top: 4px;
}

/* Notification Banner */
.notification-banner {
    background: var(--bg-secondary);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.banner-icon {
    font-size: 24px;
}

.banner-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.banner-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.banner-description {
    font-size: 13px;
    color: var(--text-secondary);
}

.banner-actions {
    display: flex;
    gap: 8px;
}

.banner-btn {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.banner-btn-primary {
    background: var(--accent-teal);
    color: white;
    border-color: var(--accent-teal);
}

.banner-btn-primary:hover {
    background: #00a7b7;
    border-color: #00a7b7;
}

.banner-btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--border-medium);
}

.banner-btn-secondary:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

/* =============================================================================
   SMART COLUMN AGENT STYLES
   ============================================================================= */

/* Smart Column accent color */
:root {
    --smart-blue: #3b82f6;
    --smart-blue-dim: rgba(59, 130, 246, 0.15);
    --smart-blue-glow: rgba(59, 130, 246, 0.3);
}

/* Header buttons container */
.header-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Smart Agent button */
.smart-agent-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--smart-blue);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.smart-agent-btn:hover {
    background: #2563eb;
}

.smart-agent-btn svg {
    width: 16px;
    height: 16px;
}

/* Smart Column - Blue border styling */
.pulse-column.smart-column {
    border: 2px solid var(--smart-blue);
    box-shadow: var(--shadow-md), 0 0 20px var(--smart-blue-glow);
}

.pulse-column.smart-column:hover {
    box-shadow: var(--shadow-lg), 0 0 25px var(--smart-blue-glow);
}

.pulse-column.smart-column .column-header {
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, rgba(59, 130, 246, 0.08) 100%);
    border-bottom: 1px solid var(--smart-blue);
}

/* Smart column header indicator */
.smart-column-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.smart-column-indicator .smart-icon {
    width: 18px;
    height: 18px;
    color: var(--smart-blue);
}

.smart-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
    color: var(--smart-blue);
    background: var(--smart-blue-dim);
    padding: 4px 8px;
    border-radius: 10px;
}

/* Smart Match badge */
.badge-smart-match {
    background: var(--smart-blue-dim);
    color: var(--smart-blue);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-smart-match svg {
    width: 10px;
    height: 10px;
}

/* AI Match Reason section in headline cards */
.match-reason-section {
    border-top: 1px solid var(--border-light);
    padding: 10px 12px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(59, 130, 246, 0.03) 100%);
}

.match-reason-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--smart-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.match-reason-label svg {
    width: 12px;
    height: 12px;
}

.match-reason-text {
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-secondary);
    font-style: italic;
}

/* Smart Column Modal styling */
.smart-modal-header {
    background: linear-gradient(135deg, var(--bg-primary) 0%, rgba(59, 130, 246, 0.05) 100%);
}

.smart-modal-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.smart-modal-header h3 svg {
    color: var(--smart-blue);
}

.smart-btn-primary {
    background: var(--smart-blue) !important;
}

.smart-btn-primary:hover {
    background: #2563eb !important;
}

/* Smart column limit indicator */
.smart-column-limit {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    margin-top: 12px;
}

.smart-column-limit .limit-text {
    font-size: 13px;
    color: var(--text-secondary);
}

.smart-column-limit .limit-text span {
    color: var(--smart-blue);
    font-weight: 600;
}

/* Smart column limit warning */
.smart-column-limit.at-limit {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.smart-column-limit.at-limit .limit-text {
    color: #f59e0b;
}

/* Smart column empty state card */
.smart-column-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    margin: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    text-align: center;
}

.smart-column-empty .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--smart-blue-dim);
    padding: 8px 16px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.smart-column-empty .status-dot {
    width: 8px;
    height: 8px;
    background: var(--smart-blue);
    border-radius: 50%;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.smart-column-empty .status-text {
    color: var(--smart-blue);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.smart-column-empty p {
    color: var(--text-muted);
    font-size: 12px;
    margin: 0;
    line-height: 1.5;
}

/* Hide old elements if present */
.smart-column-empty svg,
.smart-column-empty .smart-hint {
    display: none;
}

/* Smart column filter panel (shows instruction editor) */
.smart-column-filters {
    /* Inherits background from .column-filters (--bg-primary) */
}

.smart-column-filters .filter-row {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.smart-instruction-input {
    display: block !important;
    width: 100%;
    min-height: 80px;
    padding: 10px 12px;
    background: #0d1117 !important;
    border: 1px solid #30363d !important;
    border-radius: 6px;
    color: #e6edf3 !important;
    font-size: 13px;
    line-height: 1.5;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.smart-instruction-input:focus {
    outline: none;
    border-color: var(--smart-blue);
}

.smart-instruction-input::placeholder {
    color: var(--text-muted);
}

.smart-save-btn {
    align-self: flex-end;
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #3b82f6 !important;
    border: none;
    border-radius: 6px;
    color: white !important;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.smart-save-btn:hover {
    background: #2563eb;
}

.smart-save-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.smart-save-btn svg {
    width: 16px;
    height: 16px;
}

.smart-save-btn .spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Smart match card styles */
.smart-match-card .headline-header {
    padding: 12px;
    position: relative;
}

.smart-match-card .headline-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.smart-match-card .headline-text {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-primary);
    padding-right: 24px;
}

.smart-match-card .expand-arrow {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    color: var(--text-muted);
}

.smart-match-card .expand-arrow:hover {
    background: var(--bg-hover, #3a3a50);
    color: var(--text-secondary);
}

.smart-match-card.expanded .expand-arrow svg {
    transform: rotate(180deg);
}

/* Smart match badge */
.badge-smart-match {
    background: var(--smart-blue-dim);
    color: var(--smart-blue);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-smart-match svg {
    width: 10px;
    height: 10px;
}

/* Match reason section */
.match-reason-section {
    border-top: 1px solid var(--border-light);
    padding: 10px 12px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(59, 130, 246, 0.03) 100%);
}

.match-reason-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--smart-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.match-reason-label svg {
    width: 12px;
    height: 12px;
}

.match-reason-text {
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-secondary);
    font-style: italic;
}

/* Context section for smart cards */
.smart-match-card .headline-context {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.smart-match-card.expanded .headline-context {
    max-height: 2000px;
    overflow: hidden;
}

.smart-match-card .context-inner {
    padding: 0 12px 12px 12px;
    border-top: 1px solid var(--border-light);
}

.smart-match-card .context-section {
    margin-top: 12px;
}

.smart-match-card .context-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.smart-match-card .context-narrative {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Flash animation for new smart matches */
.headline-card.new-match {
    animation: smartMatchFlash 1.5s ease-out;
}

@keyframes smartMatchFlash {
    0% {
        background-color: rgba(59, 130, 246, 0.3);
        border-color: var(--smart-blue);
    }
    100% {
        background-color: var(--bg-secondary);
        border-color: var(--border-light);
    }
}
