/* ═══════════════════════════════════════════
   Yekreter — Panel CSS v3
   Üst navigasyon, light AI teması
   ═══════════════════════════════════════════ */

/* ── Login Page ── */
body.login-page {
    background: #f0f4ff;
    margin: 0;
    min-height: 100vh;
    overflow: hidden;
}

body.login-page::before {
    content: '';
    position: fixed; inset: 0;
    background-image:
        linear-gradient(rgba(37,99,235,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37,99,235,0.05) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none; z-index: 0;
}

.login-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    position: relative; z-index: 1;
}

.login-brand {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #0ea5e9 100%);
    display: flex; align-items: center; justify-content: center;
    padding: 3rem;
    position: relative; overflow: hidden;
}
.login-brand::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 40px 40px;
}
.login-brand::after {
    content: '';
    position: absolute;
    bottom: -100px; right: -100px;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
}

.login-brand-inner {
    position: relative; z-index: 1;
    max-width: 380px; width: 100%;
}

.login-logo {
    font-size: 1.4rem; font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
    display: inline-block;
    margin-bottom: 2.5rem;
    text-decoration: none;
}
.login-logo span { color: rgba(255,255,255,0.7); }

.login-tagline h2 {
    font-size: 1.8rem; font-weight: 800;
    color: #ffffff; line-height: 1.2;
    letter-spacing: -0.8px;
    margin-bottom: 0.8rem;
}
.login-tagline p {
    font-size: 0.9rem; color: rgba(255,255,255,0.65);
    line-height: 1.6; margin-bottom: 2rem;
}

.login-stats {
    display: flex; gap: 1.5rem; margin-bottom: 2rem;
}
.ls-item { text-align: center; }
.ls-val {
    font-size: 1.4rem; font-weight: 800;
    color: #ffffff; letter-spacing: -0.5px;
}
.ls-label {
    font-size: 0.68rem; font-weight: 600;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase; letter-spacing: 0.06em;
    margin-top: 0.1rem;
}

.login-terminal {
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    padding: 1rem 1.2rem;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.75rem;
    line-height: 1.9;
}
.lt-line { display: flex; gap: 0.4rem; }
.lt-p { color: rgba(255,255,255,0.5); }
.lt-c { color: rgba(255,255,255,0.85); }
.lt-ok { color: #86efac; padding-left: 0.8rem; }
.lt-cur {
    display: inline-block;
    width: 6px; height: 12px;
    background: rgba(255,255,255,0.8);
    vertical-align: middle;
    animation: lt-blink 1s step-end infinite;
    border-radius: 1px;
    margin-left: 1px;
}
@keyframes lt-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.login-form-side {
    display: flex; align-items: center; justify-content: center;
    padding: 2rem;
    background: #f0f4ff;
}

.login-card {
    width: 100%; max-width: 380px;
}

.lc-header { margin-bottom: 1.8rem; }
.lc-header h1 {
    font-size: 1.6rem; font-weight: 800;
    color: #0f172a; letter-spacing: -0.5px;
    margin-bottom: 0.3rem;
}
.lc-header p {
    font-size: 0.85rem; color: #64748b;
}

.form-label-new {
    display: block;
    font-size: 0.78rem; font-weight: 700;
    color: #374151; margin-bottom: 0.4rem;
    letter-spacing: 0.01em;
}

.form-control-new {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.9rem; font-family: inherit;
    color: #0f172a;
    background: #ffffff;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}
.form-control-new:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.form-control-new::placeholder { color: #cbd5e1; }

.btn-login {
    width: 100%;
    padding: 0.78rem 1rem;
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem; font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: all 0.15s;
    box-shadow: 0 4px 16px rgba(37,99,235,0.25);
    letter-spacing: 0.01em;
}
.btn-login:hover {
    background: #1d4ed8;
    box-shadow: 0 6px 20px rgba(37,99,235,0.35);
    transform: translateY(-1px);
}

.login-back {
    display: block; text-align: center;
    margin-top: 1.5rem;
    font-size: 0.8rem; color: #94a3b8;
    transition: color 0.15s;
}
.login-back:hover { color: #2563eb; }

/* ── Kayıt — Steps ── */
.login-steps {
    display: flex; flex-direction: column;
    gap: 1rem; margin-bottom: 2rem;
}
.lstep {
    display: flex; align-items: flex-start; gap: 1rem;
}
.lstep-num {
    width: 28px; height: 28px; flex-shrink: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: 1.5px solid rgba(255,255,255,0.3);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; font-weight: 800; color: #fff;
}
.lstep-title {
    font-size: 0.85rem; font-weight: 700; color: #fff;
    margin-bottom: 0.1rem;
}
.lstep-desc {
    font-size: 0.75rem; color: rgba(255,255,255,0.55);
}

/* ── Kayıt — Plan Tabs ── */
.reg-plan-tabs {
    display: flex; gap: 0.5rem;
}
.reg-plan-tab {
    flex: 1;
    border: 1.5px solid #e2e8f0;
    border-radius: 7px;
    padding: 0.6rem 0.5rem;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s;
    background: #fff;
}
.reg-plan-tab input { display: none; }
.reg-plan-tab:hover { border-color: #2563eb; }
.reg-plan-tab.active {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.rpt-name {
    display: block;
    font-size: 0.78rem; font-weight: 700; color: #0f172a;
    margin-bottom: 0.15rem;
}
.rpt-price {
    display: block;
    font-size: 0.7rem; color: #64748b;
}
.reg-plan-tab.active .rpt-name { color: #2563eb; }
.reg-plan-tab.active .rpt-price { color: #3b82f6; }

@media (max-width: 768px) {
    body.login-page { overflow: auto; }
    .login-split { grid-template-columns: 1fr; }
    .login-brand { padding: 2rem; min-height: auto; }
    .login-brand::after { display: none; }
    .login-tagline h2 { font-size: 1.4rem; }
    .login-stats { justify-content: center; }
    .login-form-side { padding: 2rem 1.5rem; }
}

/* ═══════════════════════════════════════════
   PANEL LAYOUT — Üst Navbar
   ═══════════════════════════════════════════ */

body.panel-body {
    background: #f0f4ff;
    margin: 0;
    min-height: 100vh;
}

body.panel-body::before {
    content: '';
    position: fixed; inset: 0;
    background-image:
        linear-gradient(rgba(37,99,235,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37,99,235,0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none; z-index: 0;
}

/* ── Top Navbar ── */
.panel-topnav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(37,99,235,0.1);
    box-shadow: 0 1px 8px rgba(37,99,235,0.06);
}

.topnav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 56px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 1.5rem;
}

.topnav-left {
    display: flex; align-items: center; gap: 2rem;
}

.topnav-logo {
    font-size: 1.15rem; font-weight: 800;
    color: #2563eb; letter-spacing: -0.4px;
    text-decoration: none; flex-shrink: 0;
}
.topnav-logo span { color: #0f172a; }

.topnav-menu {
    display: flex; align-items: center; gap: 0.2rem;
}
.topnav-menu a {
    padding: 0.4rem 0.85rem;
    font-size: 0.83rem; font-weight: 500;
    color: #64748b;
    border-radius: 6px;
    transition: all 0.12s;
    white-space: nowrap;
}
.topnav-menu a:hover {
    color: #0f172a;
    background: rgba(37,99,235,0.06);
}
.topnav-menu a.active {
    color: #2563eb;
    background: rgba(37,99,235,0.08);
    font-weight: 600;
}

/* ── Kullanıcı Dropdown ── */
.topnav-right {
    display: flex; align-items: center; gap: 0.5rem;
}

.topnav-user {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.35rem 0.6rem 0.35rem 0.4rem;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    transition: background 0.12s;
    user-select: none;
}
.topnav-user:hover { background: rgba(37,99,235,0.06); }

.topnav-avatar {
    width: 30px; height: 30px;
    border-radius: 6px;
    background: rgba(37,99,235,0.1);
    border: 1px solid rgba(37,99,235,0.2);
    color: #2563eb;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.75rem;
    flex-shrink: 0;
}

.topnav-name {
    font-size: 0.82rem; font-weight: 600; color: #374151;
    max-width: 130px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.topnav-caret {
    color: #94a3b8;
    transition: transform 0.15s;
    flex-shrink: 0;
}
.topnav-user.open .topnav-caret { transform: rotate(180deg); }

.topnav-dropdown {
    display: none;
    position: absolute; top: calc(100% + 8px); right: 0;
    min-width: 200px;
    background: #ffffff;
    border: 1px solid rgba(37,99,235,0.1);
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(15,23,42,0.12);
    overflow: hidden;
    z-index: 200;
}
.topnav-user.open .topnav-dropdown { display: block; }

.topnav-dropdown-email {
    padding: 0.7rem 1rem 0.5rem;
    font-size: 0.75rem; color: #94a3b8; font-weight: 500;
    border-bottom: 1px solid rgba(37,99,235,0.07);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.topnav-dropdown a {
    display: block;
    padding: 0.55rem 1rem;
    font-size: 0.83rem; font-weight: 500;
    color: #374151;
    transition: background 0.1s;
}
.topnav-dropdown a:hover { background: #f8faff; color: #0f172a; }
.topnav-dropdown a.logout { color: #ef4444; }
.topnav-dropdown a.logout:hover { background: #fef2f2; }

/* ── Mobile Hamburger ── */
.topnav-hamburger {
    display: none;
    flex-direction: column; gap: 4px;
    background: none; border: none; cursor: pointer;
    padding: 0.4rem;
}
.topnav-hamburger span {
    display: block; width: 20px; height: 2px;
    background: #374151; border-radius: 2px;
    transition: all 0.2s;
}

/* ── Main Content ── */
.panel-main {
    position: relative; z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem 3rem;
}

.panel-content {
    width: 100%;
}

.page-heading {
    margin-bottom: 1.2rem;
}
.page-heading h1 {
    font-size: 1.3rem; font-weight: 800;
    color: #0f172a; letter-spacing: -0.5px;
    margin: 0;
}

/* ── Stat Cards ── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem; margin-bottom: 1.2rem;
}
.stat-card {
    background: #ffffff;
    border: 1px solid rgba(37,99,235,0.1);
    border-radius: 10px;
    padding: 1.2rem 1.3rem;
    box-shadow: 0 1px 4px rgba(37,99,235,0.06);
    transition: box-shadow 0.15s, transform 0.15s;
}
.stat-card:hover {
    box-shadow: 0 4px 16px rgba(37,99,235,0.1);
    transform: translateY(-1px);
}
.stat-card .stat-label {
    font-size: 0.68rem; color: #94a3b8;
    font-weight: 700; margin-bottom: 0.3rem;
    text-transform: uppercase; letter-spacing: 0.06em;
}
.stat-card .stat-value {
    font-size: 1.9rem; font-weight: 800; letter-spacing: -1px;
    color: #0f172a;
}
.stat-card .stat-change {
    font-size: 0.73rem; margin-top: 0.2rem; font-weight: 600;
    color: #94a3b8;
}
.stat-card .stat-change.up { color: #059669; }
.stat-card .stat-change.down { color: #dc2626; }

/* ── Panel Table ── */
.panel-table-wrapper {
    background: #ffffff;
    border: 1px solid rgba(37,99,235,0.1);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(37,99,235,0.06);
}
.panel-table-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.9rem 1.3rem;
    border-bottom: 1px solid rgba(37,99,235,0.08);
    background: #f8faff;
}
.panel-table-header h3 {
    font-size: 0.88rem; font-weight: 700; color: #0f172a;
    margin: 0;
}

.panel-table {
    width: 100%; border-collapse: collapse;
}
.panel-table th {
    text-align: left; padding: 0.65rem 1.3rem;
    font-size: 0.68rem; font-weight: 700;
    color: #94a3b8; text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid rgba(37,99,235,0.07);
    background: #f8faff;
}
.panel-table td {
    padding: 0.75rem 1.3rem; font-size: 0.84rem;
    border-bottom: 1px solid rgba(37,99,235,0.05);
    color: #374151;
}
.panel-table tr:last-child td { border-bottom: none; }
.panel-table tr:hover td { background: #f8faff; }

/* ── Status Badges ── */
.badge-status {
    display: inline-block; padding: 0.18rem 0.6rem;
    border-radius: 20px;
    font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.04em;
}
.badge-active {
    background: #d1fae5; color: #065f46;
    border: 1px solid #a7f3d0;
}
.badge-inactive {
    background: #f1f5f9; color: #64748b;
    border: 1px solid #e2e8f0;
}
.badge-error {
    background: #fee2e2; color: #991b1b;
    border: 1px solid #fecaca;
}
.badge-pending {
    background: #fef3c7; color: #92400e;
    border: 1px solid #fde68a;
}

/* ── Filter Bar ── */
.filter-bar {
    background: #ffffff;
    border: 1px solid rgba(37,99,235,0.1);
    border-radius: 10px;
    padding: 0.75rem 1.3rem;
    margin-bottom: 0.9rem;
    box-shadow: 0 1px 4px rgba(37,99,235,0.05);
}
.filter-form {
    display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap;
}
.filter-group { flex-shrink: 0; }
.filter-input {
    min-width: 180px; font-size: 0.82rem; padding: 0.45rem 0.7rem;
}
.filter-select {
    min-width: 150px; font-size: 0.82rem; padding: 0.45rem 0.7rem;
}

/* ── Pagination ── */
.pagination {
    display: flex; align-items: center; justify-content: center;
    gap: 0.8rem; margin-top: 1.2rem; padding: 0.5rem 0;
}
.pagination-info {
    font-size: 0.82rem; color: var(--color-text-muted); font-weight: 500;
}
.table-count {
    font-size: 0.78rem; color: var(--color-text-muted); font-weight: 500;
}

/* ── Button Variants ── */
.btn-sm {
    padding: 0.35rem 0.75rem; font-size: 0.78rem;
}
.btn-ghost {
    background: transparent; color: var(--color-text-muted);
    border: 1.5px solid var(--color-border);
}
.btn-ghost:hover {
    color: var(--color-text); border-color: var(--color-text-muted);
    background: var(--color-bg);
}
.btn-danger {
    background: var(--color-danger); color: #fff; border-color: var(--color-danger);
}
.btn-danger:hover { opacity: 0.9; }

/* ── Alerts ── */
.alert-info {
    background: rgba(37,99,235,0.06);
    border: 1.5px solid rgba(37,99,235,0.15);
    color: #1e40af;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem; font-weight: 500;
    margin-bottom: 1rem;
}

/* ── Settings Page ── */
.settings-section { margin-bottom: 1.8rem; }
.settings-title {
    font-size: 0.9rem; font-weight: 700;
    margin-bottom: 0.6rem; letter-spacing: -0.2px;
    color: #0f172a;
}
.settings-card {
    background: #ffffff;
    border: 1px solid rgba(37,99,235,0.1);
    border-radius: 10px;
    padding: 1.2rem 1.4rem;
    box-shadow: 0 1px 4px rgba(37,99,235,0.05);
}
.settings-row {
    display: flex; align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(37,99,235,0.07);
}
.settings-row:last-child { border-bottom: none; }
.settings-label {
    width: 180px; flex-shrink: 0;
    font-size: 0.82rem; font-weight: 600; color: #64748b;
}
.settings-value { font-size: 0.85rem; color: #0f172a; }

.settings-card .form-group { margin-bottom: 1rem; }
.settings-card .form-label {
    display: block; font-size: 0.82rem; font-weight: 600;
    color: #64748b; margin-bottom: 0.3rem;
}
.settings-card .form-input { width: 100%; max-width: 400px; }
.settings-card .btn { margin-top: 0.5rem; }

/* ── Conversation Detail ── */
.conv-detail-info {
    background: #ffffff;
    border: 1px solid rgba(37,99,235,0.1);
    border-radius: 10px;
    padding: 1.2rem 1.5rem;
    margin-bottom: 1.2rem;
    box-shadow: 0 1px 4px rgba(37,99,235,0.06);
}
.conv-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem 1.5rem;
}
.conv-detail-item { display: flex; flex-direction: column; gap: 0.15rem; }
.conv-detail-label {
    font-size: 0.7rem; font-weight: 700; color: #94a3b8;
    text-transform: uppercase; letter-spacing: 0.04em;
}
.conv-detail-value { font-size: 0.85rem; color: #0f172a; }

/* ── Chat Messages ── */
.chat-container {
    background: #ffffff;
    border: 1px solid rgba(37,99,235,0.1);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(37,99,235,0.06);
}
.chat-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.85rem 1.3rem;
    border-bottom: 1px solid rgba(37,99,235,0.08);
    background: #f8faff;
}
.chat-header h3 { font-size: 0.9rem; font-weight: 700; margin: 0; }
.chat-messages {
    padding: 1.2rem;
    max-height: 600px; overflow-y: auto;
    display: flex; flex-direction: column; gap: 0.6rem;
}
.chat-empty {
    text-align: center; color: #94a3b8;
    padding: 2rem; font-size: 0.85rem;
}
.chat-bubble {
    max-width: 75%; padding: 0.7rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem; line-height: 1.5;
}
.chat-incoming {
    align-self: flex-start;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}
.chat-outgoing {
    align-self: flex-end;
    background: rgba(37,99,235,0.07);
    border: 1px solid rgba(37,99,235,0.15);
}
.chat-bubble-sender {
    font-size: 0.7rem; font-weight: 700; color: #94a3b8;
    margin-bottom: 0.2rem; text-transform: uppercase; letter-spacing: 0.03em;
}
.chat-bubble-body { color: #0f172a; word-break: break-word; }
.chat-bubble-meta {
    font-size: 0.68rem; color: #94a3b8;
    margin-top: 0.3rem; text-align: right;
}

/* ── File Upload ── */
.file-upload-area {
    position: relative;
    border: 2px dashed rgba(37,99,235,0.2);
    border-radius: 10px;
    padding: 2rem; text-align: center;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    background: #f8faff;
}
.file-upload-area:hover, .file-upload-area.drag-over {
    border-color: #2563eb;
    background: rgba(37,99,235,0.04);
}
.file-upload-input {
    position: absolute; inset: 0;
    opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.file-upload-label {
    display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
    font-size: 0.85rem; color: #94a3b8; font-weight: 500;
    pointer-events: none;
}
.file-upload-icon { font-size: 2rem; margin-bottom: 0.3rem; }

.upload-info-bar {
    display: flex; gap: 1.5rem; flex-wrap: wrap;
    background: #ffffff;
    border: 1px solid rgba(37,99,235,0.1);
    border-radius: 10px;
    padding: 0.7rem 1.3rem; margin-bottom: 1rem;
    font-size: 0.82rem; color: #64748b;
}

/* ── Form Helpers ── */
.form-section-title {
    font-size: 0.9rem; font-weight: 700;
    margin: 1.5rem 0 0.8rem 0; padding-bottom: 0.4rem;
    border-bottom: 1.5px solid rgba(37,99,235,0.08);
    letter-spacing: -0.2px; color: #0f172a;
}
.form-section-title:first-child { margin-top: 0; }

.form-input {
    width: 100%;
    padding: 0.6rem 0.85rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.9rem; font-family: inherit;
    color: #0f172a;
    background: #ffffff;
    outline: none; transition: border-color 0.15s;
    box-sizing: border-box;
}
.form-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
textarea.form-input { resize: vertical; line-height: 1.5; }
select.form-input { cursor: pointer; }
.form-input:disabled {
    background: #f8faff; color: #94a3b8; cursor: not-allowed;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */

@media (max-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .topnav-inner { padding: 0 1.2rem; }
    .panel-main { padding: 1.2rem 1.2rem 2rem; }
}

@media (max-width: 768px) {
    .topnav-menu {
        display: none;
        position: absolute; top: 56px; left: 0; right: 0;
        background: #ffffff;
        border-bottom: 1px solid rgba(37,99,235,0.1);
        flex-direction: column; gap: 0;
        padding: 0.5rem 0;
        box-shadow: 0 8px 24px rgba(15,23,42,0.08);
    }
    .topnav-menu.mobile-open { display: flex; }
    .topnav-menu a {
        padding: 0.7rem 1.5rem;
        border-radius: 0;
        border-bottom: 1px solid rgba(37,99,235,0.05);
    }
    .topnav-hamburger { display: flex; }
    .topnav-name { display: none; }
    .topnav-left { position: static; }
    .panel-topnav { position: relative; }

    .panel-main { padding: 1rem; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .panel-table-wrapper { overflow-x: auto; }
    .panel-table { min-width: 600px; }
    .conv-detail-grid { grid-template-columns: repeat(2, 1fr); }
    .chat-bubble { max-width: 90%; }
    .upload-info-bar { flex-direction: column; gap: 0.3rem; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .filter-form { flex-direction: column; align-items: stretch; }
    .filter-input, .filter-select { min-width: 100%; }
    .settings-row { flex-direction: column; align-items: flex-start; gap: 0.2rem; }
    .settings-label { width: auto; }
    .settings-card .form-input { max-width: 100%; }
    .conv-detail-grid { grid-template-columns: 1fr; }
    .chat-bubble { max-width: 95%; }
}
