/* =========================================================
   Live Support Chat – Admin Styles
   ========================================================= */

:root {
    --lsc-blue:     #2563eb;
    --lsc-blue-dk:  #1d4ed8;
    --lsc-green:    #22c55e;
    --lsc-red:      #ef4444;
    --lsc-gray:     #94a3b8;
    --lsc-gray-lt:  #f1f5f9;
    --lsc-border:   #e2e8f0;
    --lsc-text:     #1e293b;
    --lsc-text-2:   #64748b;
    --lsc-radius:   10px;
    --lsc-shadow:   0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
}

/* ── Layout ── */
.lsc-admin-wrap {
    max-width: 1200px;
}

.lsc-page-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem !important;
    margin-bottom: 20px !important;
}
.lsc-page-title .dashicons {
    color: var(--lsc-blue);
    font-size: 1.5rem;
    width: 1.5rem;
    height: 1.5rem;
}

.lsc-two-col {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 20px;
    align-items: start;
}

/* ── Card ── */
.lsc-card {
    background: #fff;
    border: 1px solid var(--lsc-border);
    border-radius: var(--lsc-radius);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--lsc-shadow);
}
.lsc-card h2 {
    margin-top: 0;
    font-size: 1rem;
    color: var(--lsc-text);
    border-bottom: 1px solid var(--lsc-border);
    padding-bottom: 10px;
    margin-bottom: 16px;
}

/* ── Status card ── */
.lsc-status-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.lsc-status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}
.lsc-indicator-online  { background: var(--lsc-green); box-shadow: 0 0 0 3px rgba(34,197,94,.2); }
.lsc-indicator-offline { background: var(--lsc-gray); }

.lsc-status-toggle-btns {
    margin-left: auto;
    display: flex;
    gap: 8px;
}

/* ── Stats row ── */
.lsc-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}
.lsc-stat-card {
    background: #fff;
    border: 1px solid var(--lsc-border);
    border-radius: var(--lsc-radius);
    padding: 20px;
    text-align: center;
    box-shadow: var(--lsc-shadow);
}
.lsc-stat-card.lsc-stat-alert {
    border-color: var(--lsc-blue);
    background: #eff6ff;
}
.lsc-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--lsc-blue);
    line-height: 1;
    margin-bottom: 4px;
}
.lsc-stat-label {
    font-size: .85rem;
    color: var(--lsc-text-2);
}

/* ── Badges ── */
.lsc-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: .78rem;
    font-weight: 600;
}
.lsc-badge-green { background: #dcfce7; color: #166534; }
.lsc-badge-gray  { background: #f1f5f9; color: #64748b; }
.lsc-badge-blue  { background: #dbeafe; color: #1e40af; }

/* ── Modal ── */
.lsc-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lsc-modal-content {
    background: #fff;
    border-radius: var(--lsc-radius);
    width: 600px;
    max-width: 95vw;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.lsc-modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--lsc-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.lsc-modal-header h3 { margin: 0; }
.lsc-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--lsc-text-2);
    line-height: 1;
    padding: 0 4px;
}
.lsc-modal-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.lsc-modal-msg {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: .9rem;
    line-height: 1.4;
}
.lsc-modal-msg.visitor {
    background: var(--lsc-gray-lt);
    align-self: flex-start;
}
.lsc-modal-msg.chatter {
    background: var(--lsc-blue);
    color: #fff;
    align-self: flex-end;
}
.lsc-modal-msg-meta {
    font-size: .7rem;
    opacity: .7;
    margin-top: 4px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .lsc-two-col      { grid-template-columns: 1fr; }
    .lsc-stats-row    { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .lsc-stats-row    { grid-template-columns: 1fr; }
}
