/* Customer dashboard: builds on css/tooplate-style.css so it matches the public site. */
body.swp { color: #353535; font-size: 15px; }
.swp a { color: #0284c7; }
.swp a:hover, .swp a:focus { color: #0369a1; }
.swp p { color: #575757; }
.swp .custom-navbar .nav li a { color: #575757; }
.swp .custom-navbar .navbar-brand { color: #252525; }
.swp .custom-navbar .nav li a:hover { color: #0284c7; }
.swp .sw-nav-cta .sw-btn-nav--primary { color: #fff !important; }

.swp-bar { margin-top: 96px; }
.swp-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.swp-bar-inner::before, .swp-bar-inner::after { display: none; }
.swp-menu { list-style: none; display: flex; gap: 6px; margin: 0; padding: 6px; flex-wrap: wrap; border-radius: 999px;
    background: rgba(255, 255, 255, .58); border: 1px solid rgba(255, 255, 255, .52); backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%); box-shadow: 0 8px 32px rgba(14, 165, 233, .1); }
.swp-menu a { color: #575757 !important; padding: 8px 16px; border-radius: 999px; display: block; }
.swp-menu a:hover { color: #0284c7 !important; background: rgba(14, 165, 233, .08); }
.swp-menu li.active a { background: #f97316; color: #fff !important; }
.swp-user, .swp a.swp-user { color: #575757; font-size: 14px; }
.swp a.swp-user:hover { color: #0284c7; }
.swp-menu-admin { width: 100%; margin-top: 10px; background: rgba(255, 255, 255, .42); }
.swp-menu-admin li.active a { background: #0ea5e9; }
.swp-menu-label { align-self: center; padding: 0 8px 0 12px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #0369a1; }

.swp-chart { display: flex; align-items: flex-end; gap: 6px; height: 190px; padding-top: 6px; }
.swp-chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; min-width: 0; }
.swp-chart-bars { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 2px; border-bottom: 1px solid rgba(14, 165, 233, .25); }
.swp-chart-bars i { display: block; width: 40%; max-width: 16px; border-radius: 4px 4px 0 0; }
.swp-chart-col span { font-size: 10px; color: #757575; margin-top: 4px; white-space: nowrap; }
.swp-chart-legend { display: flex; gap: 16px; margin-top: 10px; font-size: 12px; color: #575757; }
.swp-chart-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.swp-feed { list-style: none; padding: 0; margin: 0; }
.swp-feed li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(148, 163, 184, .2); }
.swp-feed li:last-child { border-bottom: 0; }
.swp-feed .ic { flex: 0 0 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.swp-feed .tx { flex: 1; min-width: 0; font-size: 14px; }
.swp-feed .tx small { display: block; color: #757575; }
.swp-ic-user { background: #e0f2fe; color: #0369a1; }
.swp-ic-sub { background: #ffedd5; color: #c2410c; }
.swp-ic-order { background: #dcfce7; color: #166534; }
.swp-ic-lead { background: #fef3c7; color: #92400e; }
.swp-ic-anna { background: #ede9fe; color: #6d28d9; }
.swp-ic-contact { background: #fce7f3; color: #9d174d; }
.swp-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.swp-filter .form-control { width: auto; min-width: 220px; }
.swp-main { padding-top: 26px; padding-bottom: 60px; min-height: 60vh; }
.swp-guest .swp-main { padding-top: 120px; }

.swp h1 { font-size: 30px; margin: 0 0 6px; font-weight: 300; color: #252525; }
.swp h2 { font-size: 20px; margin: 0 0 14px; font-weight: 400; color: #353535; }
.swp h3, .swp h4 { color: #353535; }
.swp .lead-text { color: #575757; margin-bottom: 22px; font-size: 15px; }
.swp label { font-weight: 600; color: #353535; font-size: 13px; }

.swp-card, .swp-stat, .swp-plan, .swp-sim {
    background: rgba(255, 255, 255, .58);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, .52);
    box-shadow: 0 8px 32px rgba(14, 165, 233, .1), inset 0 1px 0 rgba(255, 255, 255, .65);
}
.swp-card { border-radius: 16px; padding: 24px; margin-bottom: 22px; }
.swp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.swp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 22px; }
.swp-stat { border-radius: 14px; padding: 16px 18px; }
.swp-stat b { display: block; font-size: 26px; font-weight: 300; color: #252525; }
.swp-stat span { color: #757575; font-size: 13px; }
.swp-meter { height: 6px; background: rgba(148, 163, 184, .25); border-radius: 4px; margin-top: 8px; overflow: hidden; }
.swp-meter i { display: block; height: 100%; background: linear-gradient(90deg, #0ea5e9, #f97316); }

.swp-bot-card { display: flex; flex-direction: column; gap: 8px; transition: transform .2s, box-shadow .2s; }
.swp-bot-card:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(14, 165, 233, .18); }
.swp-bot-card h3 { font-size: 18px; margin: 4px 0; font-weight: 400; }
.swp-bot-card .meta { color: #757575; font-size: 13px; }
.swp-type { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 10px; border-radius: 20px; }
.swp-type-lead { background: #ffedd5; color: #c2410c; }
.swp-type-chat { background: #e0f2fe; color: #0369a1; }
.swp-type-phone { background: #ede9fe; color: #6d28d9; }
.swp-bot-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 14px; }
.swp-tabs { margin-bottom: 22px; border-bottom-color: rgba(14, 165, 233, .2); }
.swp-tabs > li > a { color: #575757; border-radius: 10px 10px 0 0; }
.swp-tabs > li > a:hover { background: rgba(255, 255, 255, .5); border-color: transparent; }
.swp-tabs > li.active > a, .swp-tabs > li.active > a:hover, .swp-tabs > li.active > a:focus {
    background: rgba(255, 255, 255, .7); color: #ea580c; border-color: rgba(14, 165, 233, .2) rgba(14, 165, 233, .2) transparent; }
.swp-empty { text-align: center; padding: 40px 20px; color: #757575; }
.swp-empty i { font-size: 38px; color: #7dd3fc; display: block; margin-bottom: 10px; }

.swp .btn { border-radius: 999px; padding-left: 18px; padding-right: 18px; transition: .3s; }
.swp .btn-sm, .swp .btn-xs { padding-left: 12px; padding-right: 12px; }
.swp .btn-primary, .swp .btn-success { background: #f97316; border-color: #f97316; color: #fff !important; }
.swp .btn-primary:hover, .swp .btn-primary:focus, .swp .btn-success:hover, .swp .btn-success:focus { background: #ea580c; border-color: #ea580c; }
.swp .btn-default { background: rgba(255, 255, 255, .75); border-color: rgba(14, 165, 233, .35); color: #0369a1 !important; }
.swp .btn-default:hover, .swp .btn-default:focus { background: #fff; border-color: #0ea5e9; }
.swp .btn-link { color: #0284c7; }
.swp .form-control { border-radius: 10px; border-color: rgba(148, 163, 184, .45); background: rgba(255, 255, 255, .85); box-shadow: none; }
.swp .form-control:focus { border-color: #0ea5e9; box-shadow: 0 0 0 3px rgba(14, 165, 233, .15); }
.swp .label-primary { background: #f97316; }
.swp .alert { border-radius: 12px; border: 0; box-shadow: 0 8px 24px rgba(14, 165, 233, .08); }
.swp .alert-success { background: rgba(220, 252, 231, .9); color: #166534; }
.swp .alert-danger { background: rgba(254, 226, 226, .92); color: #991b1b; }
.swp .alert-info { background: rgba(224, 242, 254, .92); color: #075985; }
.swp .alert-warning { background: rgba(255, 237, 213, .92); color: #9a3412; }
.swp .nav-pills > li.active > a, .swp .nav-pills > li.active > a:hover { background: #0ea5e9; }
.swp .pagination > .active > a, .swp .pagination > .active > a:hover { background: #0ea5e9; border-color: #0ea5e9; }

.swp textarea.code, .swp pre.code { font-family: Consolas, Menlo, monospace; font-size: 13px; background: #0c4a6e; color: #e0f2fe; border-radius: 12px; padding: 14px; border: 0; white-space: pre-wrap; word-break: break-all; }
.swp .table { background: transparent; }
.swp .table > thead > tr > th { border-bottom: 1px solid rgba(14, 165, 233, .2); color: #757575; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.swp .table > tbody > tr > td { vertical-align: middle; border-top-color: rgba(148, 163, 184, .25); }
.swp .table-hover > tbody > tr:hover { background: rgba(255, 255, 255, .55); }
.swp-score { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 20px; text-transform: uppercase; }
.swp-score-hot { background: #fee2e2; color: #b91c1c; }
.swp-score-warm { background: #ffedd5; color: #c2410c; }
.swp-score-cold { background: #e0f2fe; color: #0369a1; }

.swp-plan { border-radius: 18px; padding: 24px; display: flex; flex-direction: column; border-width: 2px; }
.swp-plan.current { border-color: #f97316; box-shadow: 0 12px 40px rgba(249, 115, 22, .18); }
.swp-plan .price { font-size: 34px; font-weight: 300; margin: 6px 0; color: #252525; }
.swp-plan .price small { font-size: 14px; color: #757575; }
.swp-plan ul { padding-left: 18px; margin: 12px 0 18px; flex: 1; color: #575757; }

.swp-auth { max-width: 440px; margin: 10px auto 40px; }
.swp-auth .swp-card { padding: 30px; }
.swp-transcript { max-height: 520px; overflow-y: auto; }
.swp-msg { padding: 10px 14px; border-radius: 14px; margin: 6px 0; max-width: 80%; white-space: pre-wrap; }
.swp-msg.user { background: #0ea5e9; color: #fff; margin-left: auto; }
.swp-msg.assistant { background: rgba(255, 255, 255, .85); }
.swp-msg.agent { background: #128c7e; color: #fff; margin-left: auto; }
.swp-msg .anna-live-who { display: block; opacity: .8; font-size: 10px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 3px; }
.anna-live-thread { min-height: 520px; display: flex; flex-direction: column; }
.anna-live-thread .swp-transcript { flex: 1; min-height: 320px; }
.anna-live-compose { display: flex; gap: 8px; margin-top: 12px; align-items: center; }
.anna-live-compose .form-control { flex: 1; }
.anna-live-attach { margin: 0; cursor: pointer; position: relative; overflow: hidden; }
.anna-live-attach input[type="file"] { display: none !important; }
.anna-live-attach-name { font-size: 12px; color: #0369a1; margin-top: 6px; }
.anna-live-file { display: inline-block; margin-top: 6px; color: inherit; font-weight: 600; }
.anna-live-file:hover { color: inherit; }
.swp-msg.user .anna-live-file, .swp-msg.agent .anna-live-file { color: #fff; }
.anna-live-thumb { display: block; max-width: 240px; max-height: 180px; border-radius: 8px; margin-top: 6px; }
.anna-live-filename { font-size: 12px; opacity: .9; margin-top: 4px; }
#anna-live-list .list-group-item .badge { background: #f97316; float: right; }
.swp-q-row { display: grid; grid-template-columns: 1.1fr 1.6fr 1fr .8fr 1.4fr 40px; gap: 8px; align-items: start; margin-bottom: 8px; }
.swp-q-row .form-control { font-size: 13px; }
@media (max-width: 800px) { .swp-q-row { grid-template-columns: 1fr; } }
.swp .help-block { font-size: 13px; color: #757575; }
.swp-sim { border-radius: 16px; height: 420px; display: flex; flex-direction: column; }
.swp-sim-log { flex: 1; overflow-y: auto; padding: 14px; }
.swp-sim form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid rgba(14, 165, 233, .2); }

.swp-img-lib { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.swp-img-lib button { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: #fff; width: 88px; height: 64px; }
.swp-img-lib button.selected, .swp-img-lib button:hover { border-color: #0ea5e9; }
.swp-img-lib img { width: 88px; height: 64px; object-fit: cover; display: block; }
.swp-cover-preview { max-width: 360px; max-height: 200px; object-fit: cover; border-radius: 12px; margin: 8px 0 12px; display: block; background: #e0f2fe; }
.swp-post-thumb { width: 44px; height: 32px; object-fit: cover; border-radius: 6px; margin-right: 8px; vertical-align: middle; }

@media (max-width: 767px) {
    .swp-bar { margin-top: 80px; }
    .swp-menu { border-radius: 16px; }
    .swp-stats { grid-template-columns: 1fr 1fr; }
    .anna-live-inbox [class*="col-"] { width: 100%; float: none; }
    .anna-live-thread { min-height: 70vh; }
    .swp-main { padding-top: 16px; }
    .swp h1 { font-size: 24px; }
}
