/* ==================== ROOT VARIABLES ==================== */
:root {
    --primary-color: #1d4ed8;
    --primary-hover: #1e40af;
    --success-color: #0f9f6e;
    --danger-color: #dc2626;
    --warning-color: #f59e0b;
    --info-color: #0891b2;

    --bg-primary: #ffffff;
    --bg-secondary: #f3f6fb;
    --bg-tertiary: #e7edf6;
    --surface-strong: #f8fbff;
    --surface-muted: #eef4fb;

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    --border-color: #dbe4f0;
    --sidebar-width: 280px;

    --shadow-sm: 0 10px 30px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 18px 48px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 32px 80px rgba(15, 23, 42, 0.12);
    --radius-lg: 20px;
}

/* ==================== GLOBAL STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Aptos", "Segoe UI Variable", "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(29, 78, 216, 0.08), transparent 26%),
        radial-gradient(circle at top right, rgba(8, 145, 178, 0.08), transparent 22%),
        linear-gradient(180deg, #f7faff 0%, #eef3f9 100%);
    color: var(--text-primary);
    overflow: hidden;
}

body.admin-body {
    overflow: hidden;
}

/* ==================== LOGIN PAGE ==================== */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--success-color) 100%);
    padding: 20px;
}

.login-box {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-large {
    width: 64px;
    height: 64px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.divider-text {
    padding: 0 1rem;
    font-size: 0.875rem;
}

.logo-small {
    width: 32px;
    height: 32px;
}

/* ==================== CHAT CONTAINER ==================== */
.chat-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* ==================== SIDEBAR ==================== */
.sidebar {
    width: var(--sidebar-width);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.sidebar-header {
    padding: 1.25rem;
    height: 80px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Session List */
.session-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.session-item {
    padding: 0.875rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: var(--text-primary);
}

.session-item:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
    transform: translateX(4px);
}

.session-item.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.session-item.active .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

.session-item.locked {
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
}

.session-item.locked .session-title,
.session-item.locked .session-meta,
.session-item.locked .session-lock-text {
    color: #6b7280;
}

.session-lock-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    color: #475569;
    flex-shrink: 0;
}

.session-lock-text {
    font-size: 0.72rem;
    margin-top: 0.5rem;
}

.session-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    display: block;
}

.session-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* User Info */
.user-info {
    background: var(--bg-secondary);
    padding: 0.875rem;
    border-radius: 8px;
}

.avatar-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.user-name {
    font-weight: 600;
    font-size: 0.875rem;
}

.user-email {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ==================== CHAT MAIN ==================== */
.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-secondary);
    min-width: 0;
    overflow: hidden;
}

.chat-header {
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    height: 80px;
    justify-content: space-between;
    align-items: center;
}

.messages-area {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1rem;
    scroll-behavior: smooth;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Ensure messages stick to bottom if few */
.messages-area> :first-child {
    margin-top: auto;
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 2rem;
}

.access-locked-state {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    padding: 2rem;
}

.access-locked-card {
    width: min(720px, 100%);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
    text-align: center;
}

.access-locked-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #475569;
    background: linear-gradient(135deg, #e2e8f0 0%, #f8fafc 100%);
}

.locked-preview-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.locked-preview {
    position: relative;
    padding: 1.25rem;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.22);
}

.locked-preview::after {
    content: '';
    position: absolute;
    inset: 0;
    backdrop-filter: blur(9px);
    background: rgba(255, 255, 255, 0.22);
}

.locked-preview.user {
    align-self: flex-end;
    width: min(420px, 92%);
    background: rgba(220, 248, 198, 0.8);
}

.locked-preview.ai {
    align-self: flex-start;
    width: min(520px, 100%);
    background: rgba(255, 255, 255, 0.96);
}

.locked-line {
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(148, 163, 184, 0.32) 0%, rgba(203, 213, 225, 0.68) 100%);
    margin-bottom: 0.75rem;
}

.locked-line:last-child {
    margin-bottom: 0;
}

/* Message Groups */
.message-group {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
}

.message {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    animation: slideIn 0.3s ease;
    max-width: 80%;
}

.message-user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-ai {
    align-self: flex-start;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.message-user .message-avatar {
    background: var(--info-color);
    color: white;
}

.message-ai .message-avatar {
    background: white;
    border: 2px solid var(--primary-color);
    padding: 4px;
}

.message-ai .message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


.message-content {
    min-width: 0;
    overflow: hidden;
    flex: 1;
}

.message-text {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.message-user .message-text {
    background: #dcf8c6;
    /* WhatsApp user message color */
    color: var(--text-primary);
    border-radius: 12px 0 12px 12px;
}

.message-ai .message-text {
    background: white;
    border-radius: 0 12px 12px 12px;
    overflow-x: auto;
}

.message-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.message-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.reply-reference {
    font-size: 0.82rem;
    color: #475569;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    border-radius: 10px;
    padding: 0.45rem 0.7rem;
    cursor: pointer;
}

.reply-reference:hover {
    background: #e0e7ff;
}

.reply-reference:focus-visible {
    outline: 2px solid rgba(59, 130, 246, 0.45);
    outline-offset: 2px;
}

.message-group-highlight {
    animation: messageReplyHighlight 1.8s ease;
}

@keyframes messageReplyHighlight {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    20% {
        transform: scale(1.01);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
        box-shadow: none;
    }
}

.message-group-highlight .message-content {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16);
    border-radius: 14px;
}

/* Chart Container */
.chart-container {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.message-chart {
    max-width: 100%;
    max-height: 300px;
}

/* ==================== INPUT AREA ==================== */
.input-area {
    padding: 1.25rem;
    background: white;
    border-top: 1px solid var(--border-color);
}

.chat-form {
    position: relative;
}

.reply-context-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: 14px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e3a8a;
}

.reply-context-copy {
    min-width: 0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.reply-context-copy span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-input-shell {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border-color);
    border-radius: 22px;
    padding: 0.65rem 0.8rem;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

.chat-input-shell:focus-within {
    border-color: rgba(29, 78, 216, 0.36);
    box-shadow:
        0 18px 36px rgba(15, 23, 42, 0.08),
        0 0 0 4px rgba(29, 78, 216, 0.08);
}

.chat-input-body {
    flex: 1;
    min-width: 0;
    display: block;
}

.chat-editor {
    min-height: 44px;
    max-height: 120px;
    overflow-y: auto;
    padding: 0.35rem 0.1rem 0.2rem;
    font-size: 1rem;
    line-height: 1.55;
    color: var(--text-primary);
    white-space: pre-wrap;
    word-break: break-word;
    outline: none;
    cursor: text;
}

.chat-editor:empty::before {
    content: attr(data-placeholder);
    color: var(--text-muted);
}

.chat-editor[data-disabled="true"] {
    pointer-events: none;
    opacity: 0.65;
}

.selected-table-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    border: 1px solid #dbe7f5;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    color: var(--text-primary);
    border-radius: 999px;
    padding: 0.18rem 0.42rem 0.18rem 0.2rem;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
    transition: all 0.18s ease;
    cursor: pointer;
    vertical-align: baseline;
    margin: 0 0.14rem;
}

.selected-table-chip:hover {
    transform: translateY(-1px);
    border-color: #bfd5f3;
}

.selected-table-chip-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.1rem 0.36rem;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 0.78rem;
    font-weight: 700;
}

.selected-table-chip-name {
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.2;
}

.selected-table-chip-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.05rem;
    height: 1.05rem;
    border-radius: 999px;
    background: #eef2f7;
    color: #475569;
    font-size: 0.56rem;
}

.chat-form button[type="submit"] {
    border: none;
    background: var(--primary-color);
    color: white;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    padding: 0;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.chat-form button[type="submit"]:hover:not(:disabled) {
    background: var(--primary-hover);
}

.chat-form button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Recommendation Toggle Button */
.btn-recommendation-toggle {
    border: none;
    background: transparent;
    color: #f59e0b;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    padding: 0;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    opacity: 0.7;
    flex-shrink: 0;
}

.btn-recommendation-toggle:hover:not(:disabled) {
    color: #d97706;
    background: rgba(245, 158, 11, 0.08);
    opacity: 1;
    transform: scale(1.1);
}

.btn-recommendation-toggle:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.table-mention-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(100% + 0.65rem);
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
    padding: 0.45rem;
    z-index: 20;
    max-height: 320px;
    overflow-y: auto;
}

.table-mention-empty {
    padding: 0.8rem 0.9rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.table-mention-item {
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    border-radius: 10px;
    padding: 0.75rem 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
    transition: background 0.15s ease;
}

.table-mention-item:hover,
.table-mention-item.active {
    background: #eff6ff;
}

.table-mention-topline {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.table-mention-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 0.72rem;
    font-weight: 700;
}

.table-mention-name {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-primary);
}

.table-mention-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.table-mention-meta {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.table-mention-hint {
    margin-top: 0.55rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ==================== BUTTONS ==================== */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

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

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Modern Green Button for SQL */
.btn-modern-green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    color: white;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
    transition: all 0.2s ease;
    border-radius: 8px;
    font-weight: 500;
}

.btn-modern-green:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.3);
    color: white;
}

.btn-modern-green:active {
    transform: translateY(0);
}

/* ==================== SQL MODAL ==================== */
/* ==================== SQL MODAL ==================== */
.modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
}

.modal-body {
    padding: 10px;
    background: white;
    /* VS Code background */
}

pre {
    margin: 0;
}

#sqlCode {
    display: block;
    background: #1e1e1e;
    color: #d4d4d4;
    /* VS Code text */
    padding: 1.5rem;
    overflow-x: auto;
    font-family: 'Fira Code', 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: pre;
    /* Enable horizontal scrolling */
    word-break: normal;
}

/* Scrollbar for code block */
#sqlCode::-webkit-scrollbar {
    height: 10px;
    width: 10px;
}

#sqlCode::-webkit-scrollbar-track {
    background: #1e1e1e;
}

#sqlCode::-webkit-scrollbar-thumb {
    background: #424242;
    border-radius: 5px;
    border: 2px solid #1e1e1e;
}

#sqlCode::-webkit-scrollbar-thumb:hover {
    background: #4f4f4f;
}

/* ==================== TOAST ==================== */
.toast {
    min-width: 300px;
}

.countdown {
    font-weight: 600;
}

/* ==================== SCROLLBAR ==================== */
.sidebar-body::-webkit-scrollbar,
.messages-area::-webkit-scrollbar {
    width: 8px;
}

.sidebar-body::-webkit-scrollbar-track,
.messages-area::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.sidebar-body::-webkit-scrollbar-thumb,
.messages-area::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.sidebar-body::-webkit-scrollbar-thumb:hover,
.messages-area::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        z-index: 1000;
        transform: translateX(-100%);
    }

    .sidebar.show {
        transform: translateX(0);
        box-shadow: var(--shadow-lg);
    }

    .message-content {
        max-width: 85%;
    }

    #toggleSidebar {
        display: block;
    }
}

@media (min-width: 769px) {

    #showSidebar,
    #toggleSidebar {
        display: none;
    }
}

/* ==================== LOADING SPINNER ==================== */
.spinner-message {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

/* ==================== UTILITIES ==================== */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

/* Copy Animation */
.copy-btn.copied {
    background-color: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

/* Tables in Messages — Scrollable Container */

.message-text table {
    width: max-content;
    min-width: 100%;
    margin-top: 1rem;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px;
    overflow: hidden;
    font-size: 0.85rem;
}

.message-text table th,
.message-text table td {
    padding: 0.6rem 0.875rem !important;
    border: none !important;
    border-bottom: 1px solid var(--border-color) !important;
    border-right: 1px solid rgba(0, 0, 0, 0.04) !important;
    text-align: left;
    white-space: nowrap;
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.message-text table th {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8ecf4 100%) !important;
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #4b5563 !important;
    position: sticky;
    top: 0;
    z-index: 1;
}

.message-text table tbody tr:nth-child(even) {
    background: rgba(248, 250, 252, 0.7);
}

.message-text table tbody tr:hover {
    background: rgba(64, 115, 255, 0.04);
}

.message-text table tbody tr:last-child td {
    border-bottom: none !important;
}

.message-text table td:last-child,
.message-text table th:last-child {
    border-right: none !important;
}

/* Scrollbar for table overflow */
.message-text::-webkit-scrollbar {
    height: 6px;
}

.message-text::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 3px;
}

.message-text::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.message-text::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

.message-user .message-text table th {
    background: rgba(255, 255, 255, 0.3) !important;
}

/* ==================== ADMIN PANEL ==================== */
.admin-panel-btn-container .btn {
    border-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.admin-panel-btn-container .btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(64, 115, 255, 0.3);
}

/* Admin Modal - Clean Professional */
#adminModal .modal-content {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 24px;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.18);
    overflow: hidden;
}

#adminModal .modal-header {
    background: linear-gradient(135deg, #123b9d 0%, #1d4ed8 55%, #0f766e 100%);
    border: none;
    border-radius: 24px 24px 0 0;
    padding: 1.5rem 2rem;
}

#adminModal .modal-header .modal-title {
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: -0.5px;
}

#adminModal .modal-header .btn-close-white {
    opacity: 0.8;
    transition: opacity 0.2s;
}

#adminModal .modal-header .btn-close-white:hover {
    opacity: 1;
}

#adminModal .modal-body {
    padding: 2rem;
    background: transparent;
}

#adminModal .modal-footer {
    background: rgba(248, 250, 252, 0.95);
    border: none;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    padding: 1.25rem 2rem;
    border-radius: 0 0 24px 24px;
}

#adminModal .card {
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 16px;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.06);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

#adminModal .card:last-child {
    margin-bottom: 0;
}

#adminModal .card-header {
    background: linear-gradient(180deg, #f8fbff 0%, #f2f6fc 100%);
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 16px 16px 0 0;
}

#adminModal .card-header h6 {
    font-weight: 600;
    color: #374151;
    font-size: 0.95rem;
}

#adminModal .card-body {
    padding: 1.5rem;
}

/* Form styling */
#adminModal .form-label {
    font-weight: 500;
    color: #4b5563;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

#adminModal .form-control,
#adminModal .form-select {
    background: #fdfefe;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

#adminModal .form-control:focus,
#adminModal .form-select:focus {
    background: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.1);
}

#adminModal .form-control::placeholder {
    color: #9ca3af;
}

/* Submit button */
#adminModal #submitUserBtn {
    background: linear-gradient(135deg, #4073FF 0%, #6366f1 100%);
    border: none;
    border-radius: 10px;
    padding: 0.75rem 1.25rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(64, 115, 255, 0.25);
    min-width: 110px;
}

#adminModal #submitUserBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(64, 115, 255, 0.35);
}

/* Cancel edit button */
#adminModal #cancelEditBtn {
    border-radius: 8px;
    font-size: 0.85rem;
}

/* Table styling */
#adminModal .table {
    margin: 0;
}

#adminModal .card-body.p-0 {
    padding: 0 !important;
}

#adminModal .table-responsive {
    border-radius: 0 0 16px 16px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

#adminModal .table th {
    background: #f7faff;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
    padding: 1rem 1.5rem;
    border: none;
}

#adminModal .table td {
    padding: 1rem 1.5rem;
    vertical-align: middle;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    color: #374151;
}

#adminModal .table-responsive .table {
    min-width: 1180px;
}

#adminModal .table tbody tr:last-child td {
    border-bottom: none;
}

#adminModal .table tbody tr {
    transition: background 0.2s ease;
}

#adminModal .table tbody tr:hover {
    background: rgba(29, 78, 216, 0.035);
}

/* Badges */
#adminModal .badge {
    font-weight: 500;
    padding: 0.5em 1em;
    border-radius: 8px;
    font-size: 0.75rem;
    letter-spacing: 0.3px;
}

#adminModal .badge.bg-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
}

#adminModal .badge.bg-secondary {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%) !important;
}

#adminModal .badge.bg-primary {
    background: linear-gradient(135deg, #4073FF 0%, #6366f1 100%) !important;
}

/* Action buttons container */
#adminModal .table th:last-child,
#adminModal .table td:last-child {
    position: sticky;
    right: 0;
    white-space: nowrap;
    z-index: 2;
    background: #ffffff;
    box-shadow: -8px 0 16px rgba(15, 23, 42, 0.06);
}

#adminModal .table th:last-child {
    z-index: 3;
    background: #f7faff;
}

#adminModal .table td .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Action buttons */
#adminModal .btn-outline-primary {
    border-radius: 8px;
    border-width: 1.5px;
    padding: 0.5rem 0.75rem;
    transition: all 0.2s ease;
    min-width: 38px;
}

#adminModal .btn-outline-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(64, 115, 255, 0.2);
}

#adminModal .btn-outline-danger {
    border-radius: 8px;
    border-width: 1.5px;
    padding: 0.5rem 0.75rem;
    transition: all 0.2s ease;
    min-width: 38px;
}

#adminModal .btn-outline-danger:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
}

#adminModal .btn-outline-danger:disabled {
    opacity: 0.4;
    transform: none;
    cursor: not-allowed;
}

/* User count badge */
#adminModal #userCount {
    background: linear-gradient(135deg, #4073FF 0%, #6366f1 100%);
    padding: 0.5em 1em;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

#adminModal .admin-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

#adminModal .admin-summary-card {
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 16px;
    padding: 1rem 1.1rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

#adminModal .admin-summary-label {
    display: block;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    margin-bottom: 0.45rem;
}

#adminModal .admin-summary-value {
    display: block;
    font-size: 1.35rem;
    line-height: 1.1;
    color: #0f172a;
}

#adminModal .admin-usage-cell {
    min-width: 210px;
}

#adminModal .admin-usage-topline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.4rem;
}

#adminModal .admin-usage-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.24rem 0.65rem;
    background: #eef2ff;
    color: #334155;
    font-size: 0.72rem;
    font-weight: 600;
}

#adminModal .admin-usage-pill-primary {
    background: rgba(29, 78, 216, 0.1);
    color: #1d4ed8;
}

#adminModal .admin-usage-breakdown {
    font-size: 0.78rem;
    color: #64748b;
}

#adminModal .admin-usage-meta {
    margin-top: 0.42rem;
    font-size: 0.74rem;
    color: #475569;
}

/* Footer button */
#adminModal .modal-footer .btn-secondary {
    background: rgba(107, 114, 128, 0.1);
    border: 1px solid rgba(107, 114, 128, 0.2);
    color: #4b5563;
    border-radius: 10px;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

#adminModal .modal-footer .btn-secondary:hover {
    background: rgba(107, 114, 128, 0.15);
    transform: translateY(-1px);
}

/* ==================== ADMIN PAGE ==================== */
.admin-page {
    height: 100vh;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    background:
        radial-gradient(circle at top left, rgba(29, 78, 216, 0.08), transparent 24%),
        linear-gradient(180deg, #f7faff 0%, #eef3f9 100%);
    overflow: hidden;
}

.admin-sidebar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    border-right: 1px solid rgba(148, 163, 184, 0.2);
    padding: 1.5rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 100vh;
    overflow: hidden;
}

.admin-sidebar-brand {
    display: flex;
    align-items: center;
    padding: 0.35rem 0.25rem;
}

.admin-sidebar-title {
    font-weight: 700;
    color: #0f172a;
}

.admin-sidebar-subtitle {
    font-size: 0.8rem;
    color: #64748b;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    text-decoration: none;
    color: #334155;
    font-weight: 600;
    transition: all 0.18s ease;
}

.admin-nav-link:hover,
.admin-nav-link.active {
    background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
    color: #1d4ed8;
}

.admin-sidebar-user {
    margin-top: auto;
    display: flex;
    align-items: center;
    padding: 0.95rem 1rem;
    background: #f8fbff;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 18px;
}

.admin-main {
    padding: 2rem;
    overflow-y: auto;
    min-width: 0;
}

.admin-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.admin-page-eyebrow {
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    font-weight: 700;
    color: #1d4ed8;
}

.admin-page-title {
    margin: 0;
    font-size: 2rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #0f172a;
}

.admin-page-copy {
    margin-top: 0.6rem;
    max-width: 760px;
    color: #64748b;
}

.admin-management-shell .card {
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 20px;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.admin-management-shell .card-header {
    background: linear-gradient(180deg, #f8fbff 0%, #f2f6fc 100%) !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    padding: 1rem 1.4rem;
}

.admin-management-shell .card-body {
    padding: 1.4rem;
}

.admin-management-shell .form-control,
.admin-management-shell .form-select {
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    padding: 0.78rem 1rem;
}

.admin-management-shell .form-control:focus,
.admin-management-shell .form-select:focus {
    border-color: #1d4ed8;
    box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.08);
}

.admin-management-shell .table-responsive {
    overflow-x: auto;
}

.admin-management-shell .table-responsive .table {
    min-width: 1180px;
}

.admin-management-shell .table th {
    background: #f7faff;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    padding: 1rem 1.3rem;
    border: none;
}

.admin-management-shell .table td {
    padding: 1rem 1.3rem;
    vertical-align: middle;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.admin-management-shell .table tbody tr:hover {
    background: rgba(29, 78, 216, 0.035);
}

.admin-management-shell .badge {
    font-weight: 600;
}

.admin-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.admin-detail-panel {
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 18px;
    padding: 1rem 1.1rem;
}

.admin-detail-label {
    margin-bottom: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.76rem;
    font-weight: 700;
    color: #64748b;
}

.admin-detail-stack {
    display: grid;
    gap: 0.9rem;
}

.admin-detail-key {
    display: block;
    margin-bottom: 0.28rem;
    font-size: 0.76rem;
    color: #64748b;
}

.admin-detail-value {
    color: #0f172a;
}

.admin-detail-usage-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.admin-detail-metric {
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 14px;
    padding: 0.9rem 1rem;
}

.admin-detail-metric-value {
    display: block;
    margin-top: 0.25rem;
    font-size: 1.15rem;
    color: #0f172a;
}

.admin-detail-footnote {
    font-size: 0.82rem;
    color: #64748b;
}

.admin-detail-access {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

@media (max-width: 1100px) {
    .admin-page {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .admin-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body.admin-body {
        overflow: auto;
    }

    .admin-page {
        height: auto;
        min-height: 100vh;
        grid-template-columns: 1fr;
        overflow: visible;
    }

    .admin-sidebar {
        height: auto;
        min-height: auto;
        position: relative;
        overflow: visible;
    }

    .admin-main {
        overflow: visible;
        padding: 1.25rem;
    }

    .admin-page-header {
        flex-direction: column;
    }

    .admin-detail-usage-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== RECOMMENDATION BUBBLE ==================== */

/* Blur Strip Overlay — natural gradient: stronger at bottom, fades to top */
.recommendation-overlay {
    position: absolute;
    bottom: 100%;
    left: -1.25rem;
    right: -1.25rem;
    height: 200px;
    background: linear-gradient(to top,
            rgba(248, 249, 250, 0.6) 0%,
            rgba(248, 249, 250, 0.3) 40%,
            rgba(248, 249, 250, 0) 100%);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 999;
    pointer-events: auto;
    animation: stripFadeIn 0.25s ease;
    -webkit-mask-image: linear-gradient(to top, black 0%, black 30%, transparent 100%);
    mask-image: linear-gradient(to top, black 0%, black 30%, transparent 100%);
}

@keyframes stripFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Input area positioning */
.input-area {
    position: relative;
    z-index: 1000;
}

/* Bubble Container */
.recommendation-bubble {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    margin-bottom: 12px;
    z-index: 1001;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 20px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.4);
    overflow: hidden;
    animation: bubbleSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Accent gradient line at top */
.recommendation-bubble::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #4073FF, #6366f1, #8b5cf6);
    z-index: 1;
}

@keyframes bubbleSlideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Bubble Header */
.bubble-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.625rem 0.875rem 0.25rem;
}

.bubble-title {
    font-weight: 600;
    font-size: 0.7rem;
    color: #9ca3af;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.bubble-title i {
    color: #f59e0b;
    font-size: 0.75rem;
    text-transform: none;
}

.bubble-close {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: #9ca3af;
    font-size: 0.65rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.bubble-close:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #374151;
}

/* Bubble Body — wrap layout for pill buttons */
.bubble-body {
    padding: 0.375rem 0.625rem 0.625rem;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Question Pills — oval/rounded */
.bubble-question {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    color: #374151;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    max-width: 100%;
}

.bubble-question:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(64, 115, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.bubble-question:active {
    transform: scale(0.97);
}

/* Icon in pill */
.bq-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.65rem;
}

.bubble-question:nth-child(1) .bq-icon {
    background: rgba(64, 115, 255, 0.1);
    color: #4073FF;
}

.bubble-question:nth-child(2) .bq-icon {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.bubble-question:nth-child(3) .bq-icon {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.bubble-question span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Hide send arrow for cleaner pills */
.bq-arrow {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .recommendation-overlay {
        left: 0;
        right: 0;
        height: 160px;
    }

    .bubble-question {
        font-size: 0.75rem;
        padding: 0.4rem 0.75rem;
        white-space: normal;
    }
}

@media (max-width: 1200px) {
    #adminModal .admin-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    #adminModal .admin-summary-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== DISCLAIMER MODAL ==================== */

.disclaimer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9998;
    animation: disclaimerFadeIn 0.4s ease;
}

.disclaimer-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    background: #ffffff;
    border-radius: 24px;
    padding: 2.5rem 2rem 2rem;
    width: 90%;
    max-width: 480px;
    text-align: center;
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.15),
        0 8px 24px rgba(0, 0, 0, 0.08);
    animation: disclaimerSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.disclaimer-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 24px 24px 0 0;
    background: linear-gradient(90deg, #f59e0b, #ef4444, #8b5cf6);
}

@keyframes disclaimerFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes disclaimerSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -45%) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.disclaimer-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(239, 68, 68, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.disclaimer-icon i {
    font-size: 1.75rem;
    color: #f59e0b;
}

.disclaimer-title {
    font-weight: 700;
    font-size: 1.15rem;
    color: #1f2937;
    margin-bottom: 1.25rem;
    letter-spacing: -0.3px;
}

.disclaimer-content {
    text-align: left;
    margin-bottom: 1.5rem;
}

.disclaimer-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: 12px;
    background: #f9fafb;
    align-items: flex-start;
}

.disclaimer-item i {
    font-size: 1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.disclaimer-item:nth-child(1) i {
    color: #f59e0b;
}

.disclaimer-item:nth-child(2) i {
    color: #ef4444;
}

.disclaimer-item:nth-child(3) i {
    color: #4073FF;
}

.disclaimer-item p {
    margin: 0;
    font-size: 0.82rem;
    color: #4b5563;
    line-height: 1.5;
}

.disclaimer-item p strong {
    color: #1f2937;
}

.disclaimer-btn {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #4073FF, #6366f1);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.disclaimer-btn:hover {
    background: linear-gradient(135deg, #3461e0, #5558e0);
    box-shadow: 0 4px 16px rgba(64, 115, 255, 0.3);
    transform: translateY(-1px);
}

.disclaimer-btn:active {
    transform: translateY(0);
}

@media (max-width: 480px) {
    .disclaimer-modal {
        width: 95%;
        padding: 2rem 1.25rem 1.5rem;
        border-radius: 20px;
    }

    .disclaimer-title {
        font-size: 1.05rem;
    }

    .disclaimer-item p {
        font-size: 0.78rem;
    }
}
/* ==================== FEEDBACK BUTTONS ==================== */

.feedback-group {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: 0.25rem;
    padding: 0.1rem 0.4rem;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.07);
}

.feedback-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #9ca3af;
    font-size: 0.85rem;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
}

.feedback-btn:hover {
    background: rgba(0, 0, 0, 0.07);
    transform: scale(1.15);
}

.feedback-btn.feedback-good:hover,
.feedback-btn.feedback-good.active {
    color: #16a34a;
    background: rgba(22, 163, 74, 0.1);
}

.feedback-btn.feedback-bad:hover,
.feedback-btn.feedback-bad.active {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.1);
}

.feedback-btn.active {
    opacity: 1;
}

/* Bounce animation when clicked */
@keyframes feedbackBounce {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.35); }
    70%  { transform: scale(0.9); }
    100% { transform: scale(1); }
}

.feedback-bounce {
    animation: feedbackBounce 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
