/**
 * Support Center — Agent Dashboard + Admin Panel
 * Version 1.0.2 — all values hardcoded, no CSS variable dependencies
 */

/* ─────────────────────────────────────────────────────────────
   RESET — isolate from theme interference
───────────────────────────────────────────────────────────── */
.sc-agent-dashboard,
.sc-agent-dashboard *,
.sc-admin-panel,
.sc-admin-panel * {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}
.sc-agent-dashboard,
.sc-admin-panel {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #111827;
}

/* ═════════════════════════════════════════════════════════════
   AGENT DASHBOARD  [support_agent_dashboard]
═════════════════════════════════════════════════════════════ */

.sc-agent-dashboard {
    max-width: 1100px;
    margin: 0 auto;
    padding: 8px 0 24px;
}

/* Header */
.sc-agent-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}
.sc-agent-header h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: #111827;
}
.sc-agent-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.sc-stat-badge {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 12px;
    color: #374151;
    font-weight: 500;
}
.sc-agent-status-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    cursor: pointer;
    color: #374151;
}

/* Two-column layout */
.sc-agent-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 16px;
    align-items: start;
}
@media (max-width: 700px) {
    .sc-agent-layout { grid-template-columns: 1fr; }
}

/* Panels */
.sc-sessions-panel,
.sc-agent-chat-panel {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
}

/* Call panel is position:absolute inside chat panel — needs relative parent */
.sc-agent-chat-panel {
    position: relative;
}

.sc-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}
.sc-panel-header h3 {
    font-size: 13px;
    font-weight: 600;
    margin: 0;
    color: #111827;
}
.sc-panel-header button {
    background: none;
    border: none;
    font-size: 14px;
    cursor: pointer;
    color: #6b7280;
    font-family: inherit;
    padding: 0;
}
.sc-panel-header button:hover { color: #111827; }

/* Session list */
.sc-sessions-list,
.sc-tickets-panel,
.sc-voice-queue-panel {
    max-height: 200px;
    overflow-y: auto;
}

.sc-session-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: background 0.1s;
}
.sc-session-item:last-child { border-bottom: none; }
.sc-session-item:hover { background: #f9fafb; }
.sc-session-item.active {
    background: #fff8ec;
    border-left: 3px solid #f5a623;
}

.sc-session-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff8ec;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: #d4881a;
    flex-shrink: 0;
    overflow: hidden;
}
.sc-session-avatar img { width: 100%; height: 100%; object-fit: cover; }

.sc-session-info { flex: 1; min-width: 0; }
.sc-session-name { font-size: 13px; font-weight: 500; color: #111827; }
.sc-session-preview {
    font-size: 11px;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sc-session-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
}
.sc-session-time { font-size: 10px; color: #9ca3af; }

.sc-unread-badge {
    background: #f5a623;
    color: #fff;
    border-radius: 50%;
    width: 17px;
    height: 17px;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Queue / ticket rows */
.sc-queue-item,
.sc-agent-ticket-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 12px;
    color: #374151;
}
.sc-queue-item:last-child,
.sc-agent-ticket-item:last-child { border-bottom: none; }

.sc-queue-badge {
    background: #fff8ec;
    color: #d4881a;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
}
.sc-callback-badge {
    background: #dbeafe;
    color: #1e40af;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: auto;
}

/* Message area */
.sc-agent-messages {
    min-height: 300px;
    max-height: 360px;
    overflow-y: auto;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #ffffff;
}
.sc-no-session {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 200px;
    color: #9ca3af;
    font-size: 13px;
    text-align: center;
}

/* Message bubbles */
.sc-msg { display: flex; align-items: flex-end; gap: 8px; }
.sc-msg.sc-msg-agent    { justify-content: flex-start; }
.sc-msg.sc-msg-customer { justify-content: flex-end; }
.sc-msg.sc-msg-system   { justify-content: center; }
.sc-msg-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #fff8ec;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    color: #d4881a;
}
.sc-msg-inner { max-width: 70%; }
.sc-msg-bubble {
    padding: 9px 12px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.5;
}
.sc-msg.sc-msg-agent    .sc-msg-bubble { background: #f5a623; color: #fff; border-bottom-right-radius: 4px; }
.sc-msg.sc-msg-customer .sc-msg-bubble { background: #f3f4f6; color: #111827; border-bottom-left-radius: 4px; }
.sc-msg.sc-msg-system   .sc-msg-bubble { color: #9ca3af; font-size: 11px; font-style: italic; }
.sc-msg-time { font-size: 10px; color: #9ca3af; margin-top: 3px; padding: 0 2px; }
.sc-msg.sc-msg-agent .sc-msg-time { text-align: right; }

/* Typing bar */
.sc-agent-typing {
    padding: 6px 14px;
    font-size: 11px;
    color: #9ca3af;
    font-style: italic;
    border-top: 1px solid #e5e7eb;
    background: #ffffff;
}

/* Reply bar */
.sc-agent-reply-bar {
    padding: 10px 14px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 8px;
    align-items: flex-end;
    background: #ffffff;
}
.sc-agent-reply-bar textarea {
    flex: 1;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    resize: none;
    background: #f9fafb;
    color: #111827;
    min-height: 60px;
    transition: border-color 0.15s;
}
.sc-agent-reply-bar textarea:focus { border-color: #f5a623; }
.sc-agent-reply-bar button {
    background: #f5a623;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 9px 16px;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
}
.sc-agent-reply-bar button:hover { background: #d4881a; }

/* Loading / empty */
.sc-loading,
.sc-empty {
    text-align: center;
    color: #9ca3af;
    font-size: 13px;
    padding: 20px;
}

/* ═════════════════════════════════════════════════════════════
   ADMIN PANEL  [support_center_admin]
═════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════
   ADMIN PANEL — Modern full-width layout with collapsible sidebar
   ═══════════════════════════════════════════════════════════════════ */

/* ── Full-width override: strip WP .wrap margins / max-width ─────── */
body.wp-admin .wrap:has(.sc-admin-panel),
body.wp-admin .wrap:has(.sc-admin-panel) h1:first-child { display: none; }
.sc-admin-panel {
    --sidebar-w:       220px;
    --sidebar-w-coll:   64px;
    --sidebar-bg:      #16162a;
    --sidebar-accent:  #f5a623;
    --topbar-h:         56px;
    display: flex;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    background: #f8fafc;
    position: fixed;
    inset: 0;
    z-index: 9990;
    font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
}

/* ── Sidebar ────────────────────────────────────────────────────── */
.sc-admin-sidebar {
    width: var(--sidebar-w);
    flex-shrink: 0;
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    overflow: hidden;  /* clips expanding content during width transition */
    transition: width 0.22s cubic-bezier(0.4,0,0.2,1);
    z-index: 10;
}
/* After transition completes, allow tooltips to escape sidebar bounds */
.sc-admin-sidebar:not(.sc-sidebar-collapsed) { overflow: hidden; }

/* Collapsed sidebar */
.sc-sidebar-collapsed {
    width: var(--sidebar-w-coll) !important;
    overflow: visible !important;  /* allow tooltips to escape */
    /* Delay overflow change until after width transition finishes */
    transition: width 0.22s cubic-bezier(0.4,0,0.2,1),
                overflow 0s linear 0.22s;
}

/* In collapsed mode: hide text labels, centre footer */
.sc-sidebar-collapsed .sc-admin-nav-label,
.sc-sidebar-collapsed .sc-admin-foot-name,
.sc-sidebar-collapsed .sc-admin-foot-label { opacity: 0; width: 0; overflow: hidden; white-space: nowrap; }
.sc-sidebar-collapsed .sc-admin-sidebar-foot { justify-content: center; }

/* Collapsed brand row: hide logo + name, centre the toggle button so it's always clickable */
.sc-sidebar-collapsed .sc-admin-sidebar-brand {
    justify-content: center;
    padding: 0 8px;
    overflow: visible;          /* never clip the toggle */
}
.sc-sidebar-collapsed .sc-admin-brand-circle { display: none; }
.sc-sidebar-collapsed .sc-admin-brand-name   { display: none; }
/* Flip chevron to point right when collapsed (expand direction) */
.sc-sidebar-collapsed #sc-sidebar-toggle { transform: rotate(180deg); }
/* When sidebar is collapsed the main area fills the freed space automatically
   because sidebar width shrinks and main has flex:1 — no explicit rule needed.
   Class is kept for future JS targeting. */
.sc-sidebar-is-collapsed .sc-admin-main { /* flex auto-expands */ }
#sc-sidebar-toggle {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255,255,255,0.6);
    opacity: 0.7;
    transition: opacity 0.15s, background 0.15s, transform 0.25s cubic-bezier(0.4,0,0.2,1);
    margin-left: auto;   /* push to right in expanded brand row */
    z-index: 1;          /* always above other brand-row children */
    position: relative;
}
#sc-sidebar-toggle:hover {
    opacity: 1;
    background: rgba(255,255,255,0.12);
}
.sc-toggle-icon {
    width: 15px;
    height: 15px;
    display: block;
    flex-shrink: 0;
}
/* In collapsed mode the margin-left:auto would push it off-screen;
   brand row is justify-content:center so auto margin is meaningless there */
.sc-sidebar-collapsed #sc-sidebar-toggle { margin-left: 0; }

/* Sidebar brand row */
.sc-admin-sidebar-brand {
    height: var(--topbar-h);
    padding: 0 14px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    overflow: hidden;
}
.sc-admin-brand-circle {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--sidebar-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}
.sc-admin-brand-name {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    transition: opacity 0.18s, width 0.18s;
}

/* Sidebar nav */
.sc-admin-nav { flex: 1; padding: 10px 8px; overflow-y: auto; overflow-x: hidden; }
.sc-admin-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    border-left: none;
    border-radius: 10px;
    margin-bottom: 2px;
    user-select: none;
    white-space: nowrap;
    transition: background 0.14s, color 0.14s;
    position: relative;
    overflow: hidden;
}
.sc-admin-nav-item:hover {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.9);
}
.sc-admin-nav-item.active {
    background: var(--sidebar-accent);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(245,166,35,0.35);
}
.sc-admin-nav-icon { font-size: 18px; flex-shrink: 0; line-height: 1; width: 22px; text-align: center; display: flex; align-items: center; justify-content: center; }
.sc-admin-nav-icon svg { display: block; width: 18px; height: 18px; stroke: currentColor; transition: stroke 0.14s; }
.sc-admin-nav-label { transition: opacity 0.18s; }
/* Collapsed state: centre icon, hide label */
.sc-sidebar-collapsed .sc-admin-nav { padding: 10px 6px; }
.sc-sidebar-collapsed .sc-admin-nav-item { justify-content: center; padding: 12px 6px; border-radius: 10px; gap: 0; }

/* ── Collapsed sidebar tooltips ─────────────────────────────────────
   Shown only when sidebar is collapsed; appear to the right of each nav item.
   Arrow points left. Uses :before for the arrow and :after for the content. */

.sc-sidebar-collapsed .sc-admin-nav-item {
    position: relative;  /* anchor for pseudo-element tooltip */
    overflow: visible;   /* let tooltip escape the item bounds */
}

/* Tooltip box */
.sc-sidebar-collapsed .sc-admin-nav-item::after {
    content: attr(title);
    position: absolute;
    left: calc(100% + 14px);
    top: 50%;
    transform: translateY(-50%) scale(0.88);
    transform-origin: left center;
    background: #1e2035;
    color: #f0f0f4;
    font-size: 12px;
    font-weight: 500;
    font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
    padding: 6px 12px;
    border-radius: 8px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.28), 0 1px 4px rgba(0,0,0,0.18);
    border: 1px solid rgba(255,255,255,0.08);
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 99999;
}

/* Tooltip left-pointing arrow */
.sc-sidebar-collapsed .sc-admin-nav-item::before {
    content: '';
    position: absolute;
    left: calc(100% + 8px);
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-right-color: #1e2035;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    z-index: 99999;
}

/* Show on hover */
.sc-sidebar-collapsed .sc-admin-nav-item:hover::after {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}
.sc-sidebar-collapsed .sc-admin-nav-item:hover::before {
    opacity: 1;
}

/* Active item tooltip gets accent border */
.sc-sidebar-collapsed .sc-admin-nav-item.active::after {
    border-color: rgba(245,166,35,0.3);
    background: #252840;
}

/* Sidebar overflow:visible when collapsed is set in .sc-sidebar-collapsed rule above */
.sc-admin-nav { overflow: visible !important; }

/* ── End tooltips ─────────────────────────────────────────────────── */

/* Sidebar footer */
.sc-admin-sidebar-foot {
    padding: 12px 14px;
    border-top: 1px solid rgba(255,255,255,0.07);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    overflow: hidden;
}
.sc-admin-foot-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--sidebar-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    flex-shrink: 0;
}
.sc-admin-foot-name  { font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.85); white-space: nowrap; transition: opacity 0.18s; }
.sc-admin-foot-label { font-size: 10px; color: rgba(255,255,255,0.4); white-space: nowrap; transition: opacity 0.18s; }

/* ── Main area ─────────────────────────────────────────────────── */
.sc-admin-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
    background: #f8fafc;
}

/* Sticky topbar */
.sc-admin-topbar {
    height: var(--topbar-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 9;
    gap: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.sc-admin-page-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0;
    white-space: nowrap;
}
.sc-admin-topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.sc-date-range-picker {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 2px;
}
.sc-drp-btn {
    padding: 5px 10px;
    font-size: 12px;
    border: none;
    background: none;
    border-radius: 6px;
    cursor: pointer;
    color: #6b7280;
    font-family: inherit;
    transition: all 0.12s;
}
.sc-drp-btn.active {
    background: #ffffff;
    color: #111827;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.sc-drp-btn:hover:not(.active) { background: #ffffff; color: #374151; }

.sc-export-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    background: none;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 12px;
    font-family: inherit;
    cursor: pointer;
    color: #374151;
    transition: border-color 0.15s;
}
.sc-export-btn:hover { border-color: #f5a623; color: #d4881a; }

/* Views */
.sc-admin-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    min-height: 0;
    /* Content scrolls independently; topbar stays sticky */
}
.sc-admin-view { display: none; }
.sc-admin-view.active { display: block; }

/* ── Stat cards ── */
.sc-stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
    gap: 14px;
    margin-bottom: 20px;
}
.sc-stat-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
}
.sc-stat-card-label {
    font-size: 11px;
    color: #6b7280;
    margin-bottom: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.sc-stat-card-value {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    line-height: 1;
    margin-bottom: 4px;
}
.sc-stat-card-delta { font-size: 11px; }
.sc-stat-card-delta.up   { color: #10b981; }
.sc-stat-card-delta.down { color: #ef4444; }

/* ── Charts ── */
.sc-charts-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}
@media (max-width: 800px) { .sc-charts-row { grid-template-columns: 1fr; } }

.sc-chart-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
}
.sc-chart-title {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 14px;
}
.sc-chart-wrap { position: relative; height: 200px; }

/* ── Tables ── */
.sc-admin-table-wrap {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}
.sc-admin-table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
    flex-wrap: wrap;
    gap: 8px;
}
.sc-admin-table-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}
.sc-filter-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.sc-filter-input,
.sc-filter-select {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 12px;
    background: #ffffff;
    color: #111827;
    outline: none;
    font-family: inherit;
}
.sc-filter-input:focus,
.sc-filter-select:focus { border-color: #f5a623; }

.sc-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sc-table th {
    text-align: left;
    padding: 10px 14px;
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
    white-space: nowrap;
}
.sc-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #f3f4f6;
    color: #111827;
    vertical-align: middle;
}
.sc-table tr:last-child td { border-bottom: none; }
.sc-table tbody tr:hover td { background: #fafafa; cursor: pointer; }
.sc-table .sc-table-empty td {
    text-align: center;
    color: #9ca3af;
    padding: 32px;
    cursor: default;
}

/* ── Status pills ── */
.sc-pill {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}
.sc-pill-open     { background: #fef3c7; color: #92400e; }
.sc-pill-pending  { background: #dbeafe; color: #1e40af; }
.sc-pill-resolved { background: #d1fae5; color: #065f46; }
.sc-pill-closed   { background: #f3f4f6; color: #6b7280; }
.sc-pill-active   { background: #d1fae5; color: #065f46; }
.sc-pill-ended    { background: #f3f4f6; color: #6b7280; }
.sc-pill-waiting  { background: #fef3c7; color: #92400e; }
.sc-pill-urgent   { background: #fee2e2; color: #991b1b; }
.sc-pill-normal   { background: #fef3c7; color: #92400e; }
.sc-pill-low      { background: #f3f4f6; color: #6b7280; }
.sc-pill-callback { background: #dbeafe; color: #1e40af; }

/* ── Buttons ── */
.sc-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-family: inherit;
    border: none;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    white-space: nowrap;
    font-weight: 500;
}
.sc-btn-primary            { background: #f5a623; color: #ffffff; }
.sc-btn-primary:hover      { background: #d4881a; }
.sc-btn-secondary          { background: #f3f4f6; color: #374151; border: 1px solid #e5e7eb; }
.sc-btn-secondary:hover    { background: #e5e7eb; }
.sc-btn-danger             { background: #fee2e2; color: #991b1b; }
.sc-btn-danger:hover       { background: #fecaca; }
.sc-btn-success            { background: #d1fae5; color: #065f46; }
.sc-btn-success:hover      { background: #a7f3d0; }
.sc-btn-sm { padding: 4px 10px; font-size: 11px; }

/* ── Pagination ── */
.sc-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-top: 1px solid #e5e7eb;
    font-size: 12px;
    color: #6b7280;
}
.sc-page-btns { display: flex; gap: 6px; }
.sc-page-btn {
    padding: 4px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    color: #374151;
    cursor: pointer;
    font-size: 12px;
    font-family: inherit;
}
.sc-page-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.sc-page-btn:not(:disabled):hover { border-color: #f5a623; color: #d4881a; }

/* ── Slide-in detail panel ── */
.sc-detail-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 440px;
    height: 100vh;
    background: #ffffff;
    border-left: 1px solid #e5e7eb;
    box-shadow: -4px 0 24px rgba(0,0,0,0.12);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.sc-detail-panel.open { transform: translateX(0); }
.sc-detail-panel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    z-index: 9998;
    display: none;
}
.sc-detail-panel-overlay.open { display: block; }
.sc-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}
.sc-detail-title { font-size: 15px; font-weight: 600; color: #111827; }
.sc-detail-close {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f3f4f6;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    color: #6b7280;
    line-height: 1;
}
.sc-detail-close:hover { background: #e5e7eb; color: #111827; }
.sc-detail-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.sc-detail-foot {
    padding: 12px 20px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

/* ── Meta grid ── */
.sc-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}
.sc-meta-item label {
    font-size: 10px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: block;
    margin-bottom: 3px;
}
.sc-meta-item span { font-size: 13px; color: #111827; }

/* ── Reply thread ── */
.sc-reply-thread { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.sc-reply-item { padding: 10px 12px; border-radius: 8px; font-size: 13px; line-height: 1.5; }
.sc-reply-item.customer  { background: #fff8ec; margin-left: 20px; }
.sc-reply-item.agent     { background: #f3f4f6; margin-right: 20px; }
.sc-reply-item.internal  { background: #fffbeb; border: 1px solid #fde68a; }
.sc-reply-item.original  { background: #f9fafb; font-style: italic; color: #6b7280; }
.sc-reply-sender { font-size: 11px; font-weight: 600; color: #6b7280; margin-bottom: 4px; }
.sc-reply-time   { font-size: 10px; color: #9ca3af; margin-top: 4px; text-align: right; }

/* Reply box */
.sc-reply-box { margin-top: 12px; }
.sc-reply-box textarea {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    resize: vertical;
    min-height: 70px;
    color: #111827;
    background: #ffffff;
}
.sc-reply-box textarea:focus { border-color: #f5a623; }
.sc-reply-box-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    align-items: center;
}
.sc-internal-toggle {
    font-size: 12px;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

/* ── KB layout ── */
.sc-kb-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 16px;
    align-items: start;
}
@media (max-width: 700px) { .sc-kb-layout { grid-template-columns: 1fr; } }

.sc-kb-cat-list {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
}
.sc-kb-cat-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.1s;
}
.sc-kb-cat-row:last-child { border-bottom: none; }
.sc-kb-cat-row:hover { background: #f9fafb; }
.sc-kb-cat-row.active {
    background: #fff8ec;
    border-left: 3px solid #f5a623;
}
.sc-kb-cat-icon { font-size: 15px; flex-shrink: 0; }
.sc-kb-cat-name { flex: 1; font-weight: 500; color: #111827; }
.sc-kb-cat-count { font-size: 11px; color: #9ca3af; }
.sc-kb-cat-actions { display: flex; gap: 4px; opacity: 0; transition: opacity 0.15s; }
.sc-kb-cat-row:hover .sc-kb-cat-actions { opacity: 1; }
.sc-kb-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    padding: 2px 4px;
    border-radius: 4px;
    color: #6b7280;
}
.sc-kb-icon-btn:hover { background: #f3f4f6; color: #111827; }
.sc-add-cat-btn {
    width: 100%;
    padding: 10px 14px;
    background: none;
    border: none;
    border-top: 1px solid #e5e7eb;
    font-size: 13px;
    color: #d4881a;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}
.sc-add-cat-btn:hover { background: #fff8ec; }

/* ── Article editor ── */
.sc-article-editor {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-top: 16px;
    overflow: hidden;
}
.sc-editor-header {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.sc-editor-body {
    padding: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 800px) { .sc-editor-body { grid-template-columns: 1fr; } }

.sc-editor-field { margin-bottom: 12px; }
.sc-editor-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 5px;
}
.sc-editor-input,
.sc-editor-select,
.sc-editor-textarea {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    font-family: inherit;
    color: #111827;
    background: #ffffff;
    outline: none;
}
.sc-editor-input:focus,
.sc-editor-select:focus,
.sc-editor-textarea:focus { border-color: #f5a623; }
.sc-editor-textarea { min-height: 200px; resize: vertical; }

.sc-preview-pane {
    background: #f9fafb;
    border-radius: 8px;
    padding: 14px;
    font-size: 13px;
    line-height: 1.7;
    color: #111827;
    min-height: 200px;
    border: 1px solid #e5e7eb;
}
.sc-preview-pane h3 {
    font-size: 11px;
    color: #9ca3af;
    font-weight: 600;
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.sc-editor-actions {
    padding: 12px 16px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 8px;
    align-items: center;
}

/* ── Agent cards ── */
.sc-agent-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px,1fr));
    gap: 16px;
    margin-bottom: 20px;
}
.sc-agent-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px;
}
.sc-agent-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.sc-agent-card-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff8ec;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    color: #d4881a;
    position: relative;
    flex-shrink: 0;
}
.sc-online-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    border: 2px solid #ffffff;
    position: absolute;
    bottom: 0;
    right: 0;
}
.sc-offline-dot { background: #d1d5db !important; }
.sc-agent-card-name  { font-size: 14px; font-weight: 600; color: #111827; }
.sc-agent-card-role  { font-size: 11px; color: #9ca3af; }
.sc-agent-card-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-bottom: 14px;
}
.sc-agent-stat label {
    font-size: 10px;
    color: #9ca3af;
    display: block;
    margin-bottom: 2px;
}
.sc-agent-stat span { font-size: 15px; font-weight: 600; color: #111827; }
.sc-agent-card-actions { display: flex; gap: 6px; }

/* ── Voice queue ── */
.sc-voice-stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px,1fr));
    gap: 10px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 16px;
}
.sc-voice-stat label {
    font-size: 10px;
    color: #9ca3af;
    display: block;
    margin-bottom: 3px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.sc-voice-stat span { font-size: 18px; font-weight: 600; color: #111827; }
.sc-wait-timer { font-variant-numeric: tabular-nums; }

/* ── Settings ── */
.sc-settings-sections { display: flex; flex-direction: column; gap: 20px; }
.sc-settings-section {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}
.sc-settings-section-header {
    padding: 12px 18px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
}
.sc-settings-section-body { padding: 18px; }
.sc-settings-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f3f4f6;
}
.sc-settings-row:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.sc-settings-label { width: 200px; flex-shrink: 0; }
.sc-settings-label strong { font-size: 13px; color: #111827; display: block; margin-bottom: 2px; }
.sc-settings-label span   { font-size: 11px; color: #9ca3af; }
.sc-settings-control { flex: 1; }
.sc-settings-input,
.sc-settings-select,
.sc-settings-textarea {
    width: 100%;
    max-width: 360px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    font-family: inherit;
    color: #111827;
    background: #ffffff;
    outline: none;
}
.sc-settings-input:focus,
.sc-settings-select:focus,
.sc-settings-textarea:focus { border-color: #f5a623; }
.sc-settings-textarea { min-height: 80px; resize: vertical; }
input[type="color"].sc-settings-input {
    padding: 4px;
    height: 36px;
    width: 80px;
    cursor: pointer;
}
.sc-settings-save-bar {
    position: sticky;
    bottom: 0;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
    margin: 0 -20px -20px;
}
.sc-settings-save-msg { font-size: 13px; color: #059669; font-weight: 500; }

/* ── Danger zone ── */
.sc-danger-zone {
    border: 1px solid #fecaca;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 20px;
}
.sc-danger-zone-header {
    background: #fef2f2;
    padding: 12px 18px;
    font-size: 13px;
    font-weight: 600;
    color: #991b1b;
    border-bottom: 1px solid #fecaca;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.sc-danger-zone-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.sc-danger-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
.sc-danger-info strong { font-size: 13px; color: #111827; display: block; }
.sc-danger-info span   { font-size: 11px; color: #9ca3af; }

/* ── Toasts ── */
.sc-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}
.sc-toast {
    padding: 11px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 500;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    animation: scToastIn 0.2s ease;
    pointer-events: all;
    max-width: 300px;
}
.sc-toast.success { background: #059669; }
.sc-toast.error   { background: #dc2626; }
.sc-toast.warning { background: #d97706; }
.sc-toast.info    { background: #2563eb; }
@keyframes scToastIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Confirm dialog ── */
.sc-confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.sc-confirm-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    max-width: 380px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.sc-confirm-box h3 { font-size: 16px; font-weight: 600; color: #111827; margin: 0 0 8px; }
.sc-confirm-box p  { font-size: 13px; color: #6b7280; margin: 0 0 16px; line-height: 1.5; }
.sc-confirm-input {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    font-family: inherit;
    margin-bottom: 14px;
    outline: none;
}
.sc-confirm-input:focus { border-color: #ef4444; }
.sc-confirm-actions { display: flex; gap: 8px; justify-content: flex-end; }

/* ── Activity feed ── */
.sc-activity-feed { display: flex; flex-direction: column; }
.sc-activity-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 13px;
}
.sc-activity-item:last-child { border-bottom: none; }
.sc-activity-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff8ec;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: #d4881a;
}
.sc-activity-text { flex: 1; color: #111827; line-height: 1.5; }
.sc-activity-time { font-size: 11px; color: #9ca3af; flex-shrink: 0; margin-top: 2px; }

/* ── Toggle switch ── */
.sc-toggle {
    position: relative;
    width: 36px;
    height: 20px;
    display: inline-block;
    flex-shrink: 0;
}
.sc-toggle input { opacity: 0; width: 0; height: 0; }
.sc-toggle-slider {
    position: absolute;
    inset: 0;
    background: #d1d5db;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.2s;
}
.sc-toggle-slider:before {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    left: 3px;
    top: 3px;
    background: #ffffff;
    border-radius: 50%;
    transition: transform 0.2s;
}
.sc-toggle input:checked + .sc-toggle-slider { background: #f5a623; }
.sc-toggle input:checked + .sc-toggle-slider:before { transform: translateX(16px); }

/* ── Checkbox ── */
.sc-checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #111827;
    cursor: pointer;
    margin-bottom: 8px;
}
.sc-checkbox-row input { cursor: pointer; width: 14px; height: 14px; }

/* ── Stars ── */
.sc-stars       { color: #f5a623; letter-spacing: 1px; font-size: 13px; }
.sc-stars-empty { color: #d1d5db; }

/* ── Spinner ── */
.sc-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #e5e7eb;
    border-top-color: #f5a623;
    border-radius: 50%;
    animation: scSpin 0.7s linear infinite;
    vertical-align: middle;
}
@keyframes scSpin { to { transform: rotate(360deg); } }

/* ── Responsive ── */
@media (max-width: 900px) {
    .sc-admin-sidebar { width: 200px; }
    .sc-stat-cards { grid-template-columns: repeat(2,1fr); }
    .sc-meta-grid  { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .sc-admin-panel { flex-direction: column; }
    .sc-admin-sidebar { width: 100%; }
    .sc-admin-nav {
        display: flex;
        flex-direction: row;
        padding: 0;
        overflow-x: auto;
        scrollbar-width: none;
    }
    .sc-admin-nav::-webkit-scrollbar { display: none; }
    .sc-admin-nav-item {
        padding: 10px 12px;
        border-left: none;
        border-bottom: 3px solid transparent;
        white-space: nowrap;
        flex-shrink: 0;
    }
    .sc-admin-nav-item.active { border-left: none; border-bottom-color: #f5a623; }
    .sc-admin-sidebar-brand,
    .sc-admin-sidebar-foot { display: none; }
    .sc-kb-layout  { grid-template-columns: 1fr; }
    .sc-detail-panel { width: 100%; }
    .sc-settings-label { width: 120px; }
}

/* ── Agent language selector ───────────────────────────────── */
.sc-agent-lang-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}
.sc-agent-lang-wrap .sc-lang-icon {
    font-size: 14px;
    color: #6b7280;
}
.sc-agent-lang-wrap .sc-lang-select {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
    outline: none;
    font-family: inherit;
    max-width: 130px;
}
.sc-agent-lang-wrap .sc-lang-select:focus {
    border-color: #f5a623;
}

/* ── Incoming call ring pulse animation ────────────────────── */
@keyframes scRingPulse {
    from { transform: scale(1);    opacity: 1; }
    to   { transform: scale(1.18); opacity: 0.75; }
}

/* ── Answer button in queue row ────────────────────────────── */
.sc-answer-queue-btn {
    background: #d1fae5;
    color: #065f46;
    border: none;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
    flex-shrink: 0;
}
.sc-answer-queue-btn:hover { background: #a7f3d0; }

/* ── Incoming call overlay ─────────────────────────────────── */
#sc-incoming-call-overlay {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.92);
    z-index: 50;
    border-radius: 8px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    text-align: center;
}

/* ══════════════════════════════════════════════════════════════
   AGENT PROFILE PANEL
   Positioned as absolute overlay inside .sc-agent-chat-panel
   ══════════════════════════════════════════════════════════════ */

/* Chat panel needs position:relative so profile overlay is scoped to it */
.sc-agent-chat-panel {
    position: relative;
}

.sc-agent-profile-panel {
    position: absolute;
    inset: 0;                           /* covers entire sc-agent-chat-panel */
    background: #ffffff;
    z-index: 20;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 8px;
}

.sc-profile-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Avatar row */
.sc-profile-avatar-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.sc-profile-avatar-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sc-profile-avatar-edit {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 24px;
    height: 24px;
    background: #F5A623;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    color: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    line-height: 24px;
    text-align: center;
}

.sc-profile-display-name {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 2px;
}

/* Fields area */
.sc-profile-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sc-profile-label {
    font-size: 11px;
    font-weight: 600;
    color: #374151;
    display: block;
    margin-bottom: 4px;
}

.sc-profile-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    box-sizing: border-box;
    color: #111827;
    background: #fff;
    outline: none;
    transition: border-color 0.15s;
}
.sc-profile-input:focus {
    border-color: #F5A623;
    box-shadow: 0 0 0 2px rgba(245,166,35,0.15);
}

.sc-profile-pwd-link {
    background: none;
    border: none;
    padding: 0;
    font-size: 12px;
    color: #6b7280;
    cursor: pointer;
    text-decoration: underline;
    font-family: inherit;
}
.sc-profile-pwd-link:hover { color: #374151; }

/* Profile toggle button in agent header */
#sc-profile-toggle-btn:hover {
    background: #f3f4f6 !important;
}
#sc-profile-toggle-btn.active {
    background: #f3f4f6 !important;
    border-color: #F5A623 !important;
}


/* ── Floating incoming call widget (Feature 5) ───────────────────────── */
@keyframes scFloatCallIn {
    from { opacity: 0; transform: translateY(20px) scale(0.92); }
    to   { opacity: 1; transform: translateY(0)    scale(1);    }
}
#sc-float-call-widget {
    transition: box-shadow 0.15s ease;
}
#sc-float-call-widget:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.55);
}
#sc-float-answer-btn:hover  { filter: brightness(1.12); }
#sc-float-decline-btn:hover { filter: brightness(1.12); }
