/* Traffix Admin Panel - Screenshots-based Design */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #0a0e14;
    --bg-sidebar: #0d1117;
    --bg-card: #151b23;
    --bg-hover: #1c232d;
    --bg-input: #21262d;
    --text-primary: #e6edf3;
    --text-secondary: #7d8590;
    --text-muted: #484f58;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --border: #30363d;
    --success: #3fb950;
    --error: #f85149;
    --warning: #d29922;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
}

/* Login Modal */
.login-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    width: 90%;
    max-width: 360px;
    text-align: center;
}

.login-icon {
    margin-bottom: 16px;
}

.login-card h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.login-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.5;
}

.login-card input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 14px;
    margin-bottom: 12px;
}

.login-card input:focus {
    outline: none;
    border-color: var(--accent);
}

.btn-primary {
    width: 100%;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.login-hint {
    font-size: 11px;
    color: var(--accent);
    margin-top: 16px;
    cursor: pointer;
}

.error-text {
    color: var(--error);
    font-size: 12px;
    margin-top: 8px;
}

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

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

.sidebar-header {
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border);
}

.logo-text {
    font-size: 16px;
    font-weight: 600;
}

.nav-menu {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 6px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.15s;
}

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

.nav-item.active {
    background: var(--accent);
    color: white;
}

.nav-icon {
    font-size: 14px;
    width: 20px;
    text-align: center;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

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

.page-header h1 {
    font-size: 18px;
    font-weight: 600;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}

.status-dot {
    font-size: 10px;
}

.status-dot.online {
    color: var(--success);
}

.status-dot.offline {
    color: var(--error);
}

/* Pages */
.page {
    display: none;
    flex: 1;
    overflow: auto;
    padding: 20px 24px;
}

.page.active {
    display: block;
}

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

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.stat-value {
    font-size: 28px;
    font-weight: 600;
}

/* Stats Row (mini stats) */
.stats-row {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
}

.mini-stat {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mini-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.mini-value {
    font-size: 14px;
    font-weight: 600;
}

.mini-value.online {
    color: var(--success);
}

.mini-value.offline {
    color: var(--error);
}

/* Table */
.table-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background: var(--bg-sidebar);
    text-align: left;
    padding: 12px 16px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

.data-table td {
    padding: 12px 16px;
    font-size: 13px;
    border-bottom: 1px solid var(--border);
}

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

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

/* Page Toolbar */
.page-toolbar {
    margin-bottom: 16px;
}

.search-input {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px 12px;
    color: var(--text-primary);
    font-size: 13px;
    width: 250px;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent);
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.status-badge.online,
.status-badge.active,
.status-badge.approved {
    background: rgba(63, 185, 80, 0.15);
    color: var(--success);
}

.status-badge.offline,
.status-badge.rejected {
    background: rgba(248, 81, 73, 0.15);
    color: var(--error);
}

.status-badge.pending {
    background: rgba(210, 153, 34, 0.15);
    color: var(--warning);
}

/* Action Buttons */
.btn-action {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    border: none;
    cursor: pointer;
    margin-right: 4px;
}

.btn-action.edit {
    background: var(--bg-input);
    color: var(--text-secondary);
}

.btn-action.approve {
    background: rgba(63, 185, 80, 0.15);
    color: var(--success);
}

.btn-action.reject {
    background: rgba(248, 81, 73, 0.15);
    color: var(--error);
}

.btn-secondary {
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
}

/* Live Logs */
.logs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.logs-status {
    font-size: 13px;
}

.status-indicator {
    color: var(--error);
}

.status-indicator.connected {
    color: var(--success);
}

.logs-actions {
    display: flex;
    gap: 8px;
}

.logs-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    height: calc(100vh - 200px);
    overflow-y: auto;
    padding: 12px;
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 12px;
}

.log-entry {
    display: flex;
    gap: 12px;
    padding: 4px 0;
    border-bottom: 1px solid var(--border);
}

.log-entry:last-child {
    border-bottom: none;
}

.log-time {
    color: var(--text-muted);
    flex-shrink: 0;
}

.log-level {
    flex-shrink: 0;
    font-weight: 500;
    width: 50px;
}

.log-entry.info .log-level {
    color: var(--accent);
}

.log-entry.error .log-level {
    color: var(--error);
}

.log-entry.warning .log-level {
    color: var(--warning);
}

.log-entry.otp .log-level {
    color: #a855f7;
}

.log-message {
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 60px;
    }

    .sidebar-header span,
    .nav-item span:not(.nav-icon) {
        display: none;
    }

    .nav-item {
        justify-content: center;
        padding: 12px;
    }

    .nav-icon {
        margin: 0;
    }

    .page {
        padding: 16px;
    }
}

/* Stat Card Highlight */
.stat-card.highlight {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.05));
    border-color: rgba(59, 130, 246, 0.3);
}

.stat-card.highlight .stat-value {
    color: var(--accent);
}

/* Chart Section */
.chart-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    margin-top: 16px;
}

.chart-section h3 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.chart-container {
    height: 200px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 100%;
    width: 100%;
    justify-content: center;
}

.chart-bar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    max-width: 80px;
    height: 100%;
}

.chart-bar {
    background: linear-gradient(to top, var(--accent), #60a5fa);
    border-radius: 4px 4px 0 0;
    width: 100%;
    min-height: 5px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
}

.chart-value {
    font-size: 10px;
    color: white;
    position: absolute;
    top: 4px;
    font-weight: 500;
}

.chart-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* Progress Bar */
.progress-bar {
    background: var(--bg-input);
    border-radius: 4px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 4px;
}

.progress-bar .progress {
    background: linear-gradient(to right, var(--accent), #60a5fa);
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
}

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

.modal-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

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

#consumerForm {
    padding: 20px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-group input,
.form-group select {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 10px 12px;
    color: var(--text-primary);
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
}

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

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
}

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

.btn-logout {
    width: 100%;
    background: rgba(248, 81, 73, 0.1);
    border: 1px solid rgba(248, 81, 73, 0.3);
    color: var(--error);
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-logout:hover {
    background: rgba(248, 81, 73, 0.2);
}

/* Status badge additional */
.status-badge.suspended,
.status-badge.expired {
    background: rgba(248, 81, 73, 0.15);
    color: var(--error);
}

/* Page toolbar improvements */
.page-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 12px;
}

.page-toolbar .btn-primary {
    width: auto;
    padding: 10px 20px;
}

/* Security Page Styles */
.security-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 15px;
}

.security-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: auto;
}

.security-card.full-width {
    grid-column: 1 / -1;
}

.security-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-sidebar);
    flex-wrap: wrap;
    gap: 10px;
}

.security-card .card-header h3 {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

.security-card .card-body {
    padding: 16px;
    flex: 1;
}

.card-description {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 16px;
    line-height: 1.4;
}

/* Fingerprint Items */
.fingerprint-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fingerprint-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--bg-input);
    border-radius: 8px;
    border: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 8px;
}

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

.fingerprint-icon-small {
    font-size: 18px;
    background: var(--bg-hover);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

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

.fingerprint-date {
    font-size: 11px;
    color: var(--text-secondary);
}

.fingerprint-actions {
    display: flex;
    gap: 6px;
}

/* Vault Logic */
.vault-locked {
    text-align: center;
    padding: 30px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vault-locked .fingerprint-icon {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--text-secondary);
    background: var(--bg-dark);
    padding: 15px;
    border-radius: 50%;
}

.vault-locked p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.vault-status {
    font-size: 11px;
    font-weight: 600;
    background: var(--bg-dark);
    padding: 3px 10px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

/* Secrets UI */
.secrets-tabs {
    display: flex;
    background: var(--bg-input);
    padding: 3px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.secrets-tabs .tab {
    flex: 1;
    border: none;
    background: none;
    color: var(--text-secondary);
    padding: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
}

.secrets-tabs .tab.active {
    background: var(--bg-card);
    color: var(--accent);
}

.secrets-content {
    background: var(--bg-input);
    border-radius: 8px;
    border: 1px solid var(--border);
    margin-bottom: 15px;
    max-height: 250px;
    overflow-y: auto;
}

.secret-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 10px;
}

.secret-key {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    font-family: monospace;
}

.secret-value {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-hover);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-family: monospace;
    max-width: 100%;
}

.secret-text {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.copy-btn {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
}

.vault-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

/* Common Components */
.btn-small,
.btn-danger-small {
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid var(--border);
    background: var(--bg-hover);
    color: var(--text-primary);
}

@media (max-width: 500px) {
    .security-grid {
        grid-template-columns: 1fr;
    }

    .secret-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .secret-value {
        width: 100%;
        justify-content: space-between;
    }
}

/* Security Challenge UI */
.security-card-wide {
    background: var(--bg-card);
    border: 1px solid var(--accent);
    border-radius: 16px;
    padding: 30px;
    width: 90%;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.2);
}

.security-title-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.lock-icon {
    font-size: 48px;
    animation: icon-pulse 2s infinite;
}

@keyframes icon-pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
        filter: drop-shadow(0 0 10px var(--accent));
    }

    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

.security-body p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.security-status-line {
    font-size: 12px;
    font-family: monospace;
    color: var(--warning);
    background: rgba(210, 153, 34, 0.1);
    padding: 8px;
    border-radius: 6px;
    margin-bottom: 24px;
}

.modal-actions.full-width button {
    width: 100%;
    padding: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.user-avatar-mini {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--accent);
    object-fit: cover;
}

/* User Details Styles */
.modal-card.wide {
    max-width: 700px;
}

.user-profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: var(--bg-sidebar);
    border-bottom: 1px solid var(--border);
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--accent);
    object-fit: cover;
}

.user-main-info h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.user-main-info p {
    color: var(--accent);
    font-size: 14px;
    margin-bottom: 8px;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 24px;
}

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

.detail-group label {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.detail-group span {
    font-size: 14px;
    font-weight: 500;
}

.balance-value {
    color: var(--success);
    font-weight: 700 !important;
    font-size: 18px !important;
}

.wallet-text {
    font-family: monospace;
    font-size: 12px !important;
    word-break: break-all;
    background: var(--bg-input);
    padding: 4px 8px;
    border-radius: 4px;
}

.detail-note-section {
    padding: 0 24px 24px;
}

.detail-note-section label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.note-display {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-primary);
    min-height: 60px;
}

.btn-action.info {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent);
}

.btn-action.info:hover {
    background: rgba(59, 130, 246, 0.2);
}

@media (max-width: 600px) {
    .user-profile-header {
        flex-direction: column;
        text-align: center;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }
}
/* Admin Chat Module Styles */
.chat-layout {
    display: flex;
    height: calc(100vh - 120px);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.chat-sessions-list {
    width: 300px;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    background: var(--bg-sidebar);
}

.chat-sessions-header {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sessions-scroll {
    flex: 1;
    overflow-y: auto;
}

.chat-session-item {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-session-item:hover {
    background: var(--bg-hover);
}

.chat-session-item.active {
    background: var(--bg-input);
    border-left: 3px solid var(--accent);
}

.session-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
    overflow: hidden;
}

.session-info {
    flex: 1;
    min-width: 0;
}

.session-info h4 {
    font-size: 14px;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.session-info p {
    font-size: 11px;
    color: var(--text-secondary);
}

.chat-conversation-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-dark);
}

.chat-active-header {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-card);
}

.chat-messages-container {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-messages-container.admin-chat .message {
    max-width: 70%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.4;
}

.chat-messages-container.admin-chat .message.user {
    align-self: flex-start;
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.chat-messages-container.admin-chat .message.admin {
    align-self: flex-end;
    background: var(--accent);
    color: white;
}

.chat-empty-state {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-style: italic;
}

.chat-input-row {
    padding: 16px;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    display: flex;
    gap: 12px;
}

.chat-input-row input {
    flex: 1;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 10px 16px;
    color: var(--text-primary);
    outline: none;
}

.btn-send {
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0 20px;
    cursor: pointer;
    font-weight: 500;
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    border-radius: 4px;
}

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

.unread-badge {
    background: var(--error);
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.sidebar-badge {
    background: var(--error);
    color: white;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 10px;
    margin-left: auto;
}

.session-preview {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.reason-text {
    font-size: 11px;
    color: var(--text-muted);
    font-style: italic;
    max-width: 150px;
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reason-text:hover {
    white-space: normal;
    background: var(--bg-hover);
    padding: 4px;
    border-radius: 4px;
    position: absolute;
    z-index: 10;
    max-width: 300px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
