/* === DOMERI - Neon Glass UI === */
/* Futuristic neon blue/cyan theme inspired by Data Logs design */

/* === GLOBAL OVERFLOW LOCK === */
html {
    overflow-x: hidden;
    overscroll-behavior-x: none;
}

body {
    overflow-x: hidden;
    overscroll-behavior-x: none;
    max-width: 100vw;
    position: relative;
}

/* Prevent iOS auto-zoom on input focus (requires font-size >= 16px) */
@media screen and (max-width: 768px) {
    input, select, textarea {
        font-size: 16px !important;
    }
}

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: rgba(13, 6, 16, 0.5); }
::-webkit-scrollbar-thumb { background: #4d96f4; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #5aa3ff; }

::selection { background: rgba(77, 150, 244, 0.3); color: white; }

/* === GLASS EFFECTS === */

.glass-panel {
    background: rgba(13, 6, 16, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.glass-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.4);
}

/* === MESH BACKGROUND === */

.bg-mesh {
    background-color: #060d16;
    background-image:
        radial-gradient(at 0% 0%, hsla(220,20%,8%,1) 0, transparent 50%),
        radial-gradient(at 50% 0%, hsla(220,50%,18%,1) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(210,40%,12%,1) 0, transparent 50%);
}

/* === AURORA EFFECT === */

.aurora-bg {
    background: conic-gradient(from 180deg at 50% 50%, #0a1a2e 0deg, #0a0f14 55deg, #1d3d5c 120deg, #0a0f14 160deg, #0a1a2e 360deg);
    filter: blur(80px);
}

/* === INPUT GLASS === */

.input-glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.02);
}

.input-glass:focus {
    border-color: rgba(77, 150, 244, 0.4);
    box-shadow: 0 0 0 3px rgba(77, 150, 244, 0.12), inset 0 0 20px rgba(255, 255, 255, 0.02);
}

.input-glass::placeholder {
    color: rgba(156, 163, 175, 0.5);
}

.input-glass option {
    background: #060d16;
    color: #e5e7eb;
}

/* === LIQUID BUTTON === */

.liquid-button {
    background-size: 200% 200%;
    background-image: linear-gradient(45deg, #4d96f4, #6366f1, #4d96f4, #00f0ff);
    box-shadow: 0 10px 30px -10px rgba(77, 150, 244, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* === MATERIAL SYMBOLS FILL === */

.icon-filled {
    font-variation-settings: 'FILL' 1;
}

/* === INNER LIGHT SHADOW === */

.shadow-inner-light {
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

/* === ANIMATIONS === */

@keyframes aurora {
    0% { transform: translate(0, 0) scale(1); opacity: 0.4; }
    100% { transform: translate(0, -15px) scale(1.05); opacity: 0.6; }
}

@keyframes liquid {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes cardSlideOut {
    to { opacity: 0; transform: scale(0.95) translateY(-10px); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-aurora { animation: aurora 10s infinite alternate; }
.animate-liquid { animation: liquid 3s ease-in-out infinite; }

/* === SPINNER === */

.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* === TOAST === */

.toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 12px 28px;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: 'Space Grotesk', sans-serif;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.success {
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.toast.error {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* === RESPONSE CARD (JS-created) === */

.response-card {
    border-radius: 24px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.06);
    animation: fadeInUp 0.4s ease-out both;
    position: relative;
    overflow: hidden;
}

/* Subtle hover glow overlay */
.response-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(77, 150, 244, 0.04) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.response-card:hover::before {
    opacity: 1;
}

.response-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 25px rgba(77, 150, 244, 0.25), 0 0 50px rgba(0, 240, 255, 0.1);
}

.response-card.liked {
    border-color: rgba(77, 150, 244, 0.15);
}

.card-body { margin-bottom: 24px; }

.card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}

.card-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 12px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 500;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 0.05em;
}

.card-badge-ai {
    background: rgba(77, 150, 244, 0.1);
    color: #93bbfc;
    border: 1px solid rgba(77, 150, 244, 0.2);
}

.card-icon {
    color: #4b5563;
    transition: color 0.3s;
    font-size: 22px;
}

.response-card:hover .card-icon { color: #4d96f4; }

.card-text {
    color: #d1d5db;
    line-height: 1.75;
    font-weight: 300;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
    font-family: -apple-system, BlinkMacSystemFont, 'Space Grotesk', sans-serif;
}

.card-footer {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.card-actions {
    display: flex;
    gap: 12px;
    width: 100%;
}

.card-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 0;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    background: rgba(255, 255, 255, 0.03);
    color: #9ca3af;
    border: none;
    cursor: pointer;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.06);
}

.card-action-btn:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.06);
}

.card-action-btn:active { transform: scale(0.95); }

/* Neon colored action buttons */
.card-action-btn.btn-like { color: #9ca3af; }
.card-action-btn.btn-like:hover {
    background: rgba(244, 37, 140, 0.1);
    color: #f472b6;
}

.card-action-btn.btn-like.is-liked {
    background: rgba(244, 37, 140, 0.12);
    color: #f4258c;
}

.card-action-btn.btn-like.is-liked:hover {
    background: rgba(244, 37, 140, 0.2);
}

.card-action-btn.btn-copy {
    color: #4d96f4;
}

.card-action-btn.btn-copy:hover {
    background: rgba(77, 150, 244, 0.12);
    color: #4d96f4;
    filter: drop-shadow(0 0 5px rgba(77, 150, 244, 0.6));
}

.card-action-btn.btn-edit {
    color: #f4e04d;
}

.card-action-btn.btn-edit:hover {
    background: rgba(244, 224, 77, 0.1);
    color: #f4e04d;
    filter: drop-shadow(0 0 5px rgba(244, 224, 77, 0.6));
}

.card-action-btn.btn-delete {
    color: #ef4444;
}

.card-action-btn.btn-delete:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    filter: drop-shadow(0 0 5px rgba(239, 68, 68, 0.6));
}

/* === EDIT MODE === */

.edit-textarea {
    width: 100%;
    min-height: 100px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: #e5e7eb;
    font-family: -apple-system, BlinkMacSystemFont, 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.7;
    letter-spacing: 0.02em;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.edit-textarea:focus {
    border-color: rgba(77, 150, 244, 0.5);
    box-shadow: 0 0 0 3px rgba(77, 150, 244, 0.15);
}

.edit-btn-save {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 0;
    border-radius: 12px;
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Space Grotesk', sans-serif;
    transition: all 0.3s;
}

.edit-btn-save:hover { background: rgba(34, 197, 94, 0.3); transform: scale(1.02); }
.edit-btn-save:active { transform: scale(0.98); }

.edit-btn-cancel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #9ca3af;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Space Grotesk', sans-serif;
    transition: all 0.3s;
}

.edit-btn-cancel:hover { background: rgba(255, 255, 255, 0.1); color: white; transform: scale(1.02); }
.edit-btn-cancel:active { transform: scale(0.98); }

/* === FILTER BAR === */

.filter-btn {
    border-color: rgba(255, 255, 255, 0.1);
    color: #d1d5db;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-family: 'Space Grotesk', sans-serif;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border-color: rgba(255, 255, 255, 0.15);
}

.filter-btn.active {
    background: #4d96f4;
    color: white;
    border-color: transparent;
    box-shadow: 0 0 10px rgba(77, 150, 244, 0.5), 0 0 20px rgba(77, 150, 244, 0.3);
}

/* === ADMIN TABLE (JS-created) === */

.admin-td {
    padding: 16px 24px;
    font-size: 14px;
    color: #d1d5db;
}

.admin-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 12px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 500;
}

.admin-badge-admin { background: rgba(77, 150, 244, 0.15); color: #93bbfc; border: 1px solid rgba(77, 150, 244, 0.25); }
.admin-badge-user { background: rgba(156, 163, 175, 0.1); color: #9ca3af; border: 1px solid rgba(156, 163, 175, 0.2); }
.admin-badge-active { background: rgba(34, 197, 94, 0.12); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.25); }
.admin-badge-inactive { background: rgba(239, 68, 68, 0.12); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.25); }

.admin-action-btn {
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 500;
    font-family: 'Space Grotesk', sans-serif;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #9ca3af;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.admin-action-btn:hover { background: rgba(255, 255, 255, 0.1); color: white; }
.admin-action-btn.danger { background: rgba(239, 68, 68, 0.1); color: #f87171; }
.admin-action-btn.danger:hover { background: rgba(239, 68, 68, 0.2); }

tr.user-inactive { opacity: 0.45; }

/* === LOGIN PAGE === */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-msg {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #fca5a5;
    padding: 12px 20px;
    border-radius: 16px;
    font-size: 0.875rem;
    text-align: center;
}

/* === UTILITY === */

.hidden { display: none !important; }

/* === ADMIN PANEL ANIMATION === */

.admin-panel { animation: slideDown 0.3s ease-out; }

/* === STAT CARDS === */

.stat-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 16px 10px 14px;
    text-align: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Top glow line */
.stat-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 15%;
    right: 15%;
    height: 2px;
    border-radius: 2px;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Color variants - top line + card glow */
.stat-card-pink::before { background: linear-gradient(90deg, transparent, #f4258c, transparent); }
.stat-card-pink { box-shadow: 0 0 20px rgba(244, 37, 140, 0.08), inset 0 1px 0 rgba(244, 37, 140, 0.1); }
.stat-card-pink:hover { box-shadow: 0 0 35px rgba(244, 37, 140, 0.2), 0 0 80px rgba(244, 37, 140, 0.08), inset 0 1px 0 rgba(244, 37, 140, 0.15); }

.stat-card-cyan::before { background: linear-gradient(90deg, transparent, #00f0ff, transparent); }
.stat-card-cyan { box-shadow: 0 0 20px rgba(0, 240, 255, 0.08), inset 0 1px 0 rgba(0, 240, 255, 0.1); }
.stat-card-cyan:hover { box-shadow: 0 0 35px rgba(0, 240, 255, 0.2), 0 0 80px rgba(0, 240, 255, 0.08), inset 0 1px 0 rgba(0, 240, 255, 0.15); }

.stat-card-yellow::before { background: linear-gradient(90deg, transparent, #f4e04d, transparent); }
.stat-card-yellow { box-shadow: 0 0 20px rgba(244, 224, 77, 0.06), inset 0 1px 0 rgba(244, 224, 77, 0.1); }
.stat-card-yellow:hover { box-shadow: 0 0 35px rgba(244, 224, 77, 0.15), 0 0 80px rgba(244, 224, 77, 0.06), inset 0 1px 0 rgba(244, 224, 77, 0.15); }

.stat-card-blue::before { background: linear-gradient(90deg, transparent, #4d96f4, transparent); }
.stat-card-blue { box-shadow: 0 0 20px rgba(77, 150, 244, 0.08), inset 0 1px 0 rgba(77, 150, 244, 0.1); }
.stat-card-blue:hover { box-shadow: 0 0 35px rgba(77, 150, 244, 0.2), 0 0 80px rgba(77, 150, 244, 0.08), inset 0 1px 0 rgba(77, 150, 244, 0.15); }

.stat-card-rose::before { background: linear-gradient(90deg, transparent, #fb7185, transparent); }
.stat-card-rose { box-shadow: 0 0 20px rgba(251, 113, 133, 0.08), inset 0 1px 0 rgba(251, 113, 133, 0.1); }
.stat-card-rose:hover { box-shadow: 0 0 35px rgba(251, 113, 133, 0.2), 0 0 80px rgba(251, 113, 133, 0.08), inset 0 1px 0 rgba(251, 113, 133, 0.15); }

.stat-card-purple::before { background: linear-gradient(90deg, transparent, #d946ef, transparent); }
.stat-card-purple { box-shadow: 0 0 20px rgba(217, 70, 239, 0.08), inset 0 1px 0 rgba(217, 70, 239, 0.1); }
.stat-card-purple:hover { box-shadow: 0 0 35px rgba(217, 70, 239, 0.2), 0 0 80px rgba(217, 70, 239, 0.08), inset 0 1px 0 rgba(217, 70, 239, 0.15); }

/* Icon wrap */
.stat-card-icon-wrap {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
}

.stat-icon-pink { background: rgba(244, 37, 140, 0.12); color: #f4258c; }
.stat-icon-cyan { background: rgba(0, 240, 255, 0.12); color: #00f0ff; }
.stat-icon-yellow { background: rgba(244, 224, 77, 0.12); color: #f4e04d; }
.stat-icon-blue { background: rgba(77, 150, 244, 0.12); color: #4d96f4; }
.stat-icon-rose { background: rgba(251, 113, 133, 0.12); color: #fb7185; }
.stat-icon-purple { background: rgba(217, 70, 239, 0.12); color: #d946ef; }

/* Stat value */
.stat-card-value {
    font-size: 1.6rem;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.2;
    margin-bottom: 4px;
}

.stat-val-pink { color: #f4258c; text-shadow: 0 0 20px rgba(244, 37, 140, 0.4); }
.stat-val-cyan { color: #00f0ff; text-shadow: 0 0 20px rgba(0, 240, 255, 0.4); }
.stat-val-yellow { color: #f4e04d; text-shadow: 0 0 20px rgba(244, 224, 77, 0.35); }
.stat-val-blue { color: #4d96f4; text-shadow: 0 0 20px rgba(77, 150, 244, 0.4); }
.stat-val-rose { color: #fb7185; text-shadow: 0 0 20px rgba(251, 113, 133, 0.4); }
.stat-val-purple { color: #d946ef; text-shadow: 0 0 20px rgba(217, 70, 239, 0.4); }

/* Stat label */
.stat-card-label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #6b7280;
    font-weight: 500;
}

/* Light mode stat cards */
.light-mode .stat-card {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(0, 0, 0, 0.06);
}
.light-mode .stat-card:hover {
    border-color: rgba(0, 0, 0, 0.1);
}
.light-mode .stat-val-pink { color: #e11d74; text-shadow: none; }
.light-mode .stat-val-cyan { color: #0891b2; text-shadow: none; }
.light-mode .stat-val-yellow { color: #ca8a04; text-shadow: none; }
.light-mode .stat-val-blue { color: #2563eb; text-shadow: none; }
.light-mode .stat-val-rose { color: #e11d48; text-shadow: none; }
.light-mode .stat-val-purple { color: #9333ea; text-shadow: none; }
.light-mode .stat-icon-pink { background: rgba(225, 29, 116, 0.08); color: #e11d74; }
.light-mode .stat-icon-cyan { background: rgba(8, 145, 178, 0.08); color: #0891b2; }
.light-mode .stat-icon-yellow { background: rgba(202, 138, 4, 0.08); color: #ca8a04; }
.light-mode .stat-icon-blue { background: rgba(37, 99, 235, 0.08); color: #2563eb; }
.light-mode .stat-icon-rose { background: rgba(225, 29, 72, 0.08); color: #e11d48; }
.light-mode .stat-icon-purple { background: rgba(147, 51, 234, 0.08); color: #9333ea; }

/* === PREMIUM GLOW SHADOW === */

.shadow-premium-glow {
    box-shadow: 0 0 50px -10px rgba(77, 150, 244, 0.3);
}

.shadow-neon-strong {
    box-shadow: 0 0 30px rgba(77, 150, 244, 0.5), 0 0 60px rgba(0, 240, 255, 0.25);
}

/* === STAT STAGGER === */

.stat-group > div {
    animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.stat-group > div:nth-child(1) { animation-delay: 0.05s; }
.stat-group > div:nth-child(2) { animation-delay: 0.1s; }
.stat-group > div:nth-child(3) { animation-delay: 0.15s; }
.stat-group > div:nth-child(4) { animation-delay: 0.2s; }
.stat-group > div:nth-child(5) { animation-delay: 0.25s; }
.stat-group > div:nth-child(6) { animation-delay: 0.3s; }

/* === LIGHT MODE === */

.light-mode .bg-mesh {
    background-color: #eff6ff;
    background-image:
        radial-gradient(at 0% 0%, rgba(77, 150, 244, 0.06) 0, transparent 50%),
        radial-gradient(at 50% 0%, rgba(99, 102, 241, 0.06) 0, transparent 50%),
        radial-gradient(at 100% 0%, rgba(0, 240, 255, 0.06) 0, transparent 50%);
}

.light-mode .glass-panel {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.light-mode .glass-card {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.08);
}

.light-mode .input-glass {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.light-mode .input-glass::placeholder { color: rgba(107, 114, 128, 0.6); }
.light-mode .input-glass option { background: white; color: #374151; }

.light-mode .card-text { color: #374151; }
.light-mode .card-action-btn { background: rgba(0, 0, 0, 0.04); color: #6b7280; }
.light-mode .card-action-btn:hover { background: rgba(0, 0, 0, 0.08); color: #374151; }
.light-mode .card-action-btn.btn-copy { color: #4d96f4; }
.light-mode .card-action-btn.btn-copy:hover { background: rgba(77, 150, 244, 0.1); color: #4d96f4; }
.light-mode .card-action-btn.btn-edit { color: #ca8a04; }
.light-mode .card-action-btn.btn-edit:hover { background: rgba(202, 138, 4, 0.1); color: #ca8a04; }
.light-mode .card-action-btn.btn-delete { color: #ef4444; }
.light-mode .card-action-btn.btn-delete:hover { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.light-mode .card-action-btn.btn-like.is-liked { background: rgba(244, 37, 140, 0.08); color: #f4258c; }

.light-mode .response-card { border-color: rgba(0, 0, 0, 0.05); }
.light-mode .response-card:hover {
    box-shadow: 0 20px 40px -10px rgba(77, 150, 244, 0.15);
}

.light-mode .edit-textarea {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
    color: #374151;
}

.light-mode .error-msg { background: rgba(239, 68, 68, 0.06); color: #dc2626; border-color: rgba(239, 68, 68, 0.15); }
.light-mode .toast.success { background: rgba(255, 255, 255, 0.9); color: #15803d; border-color: rgba(34, 197, 94, 0.2); }
.light-mode .toast.error { background: rgba(255, 255, 255, 0.9); color: #dc2626; border-color: rgba(239, 68, 68, 0.2); }

.light-mode .filter-btn { border-color: rgba(0, 0, 0, 0.12); color: #4b5563; background: rgba(0, 0, 0, 0.03); }
.light-mode .filter-btn:hover { background: rgba(0, 0, 0, 0.06); color: #1f2937; }
.light-mode .filter-btn.active { background: #4d96f4; color: white; border-color: transparent; }

.light-mode .admin-td { color: #374151; }
.light-mode .admin-action-btn { background: rgba(0, 0, 0, 0.04); color: #6b7280; }
.light-mode .admin-action-btn:hover { background: rgba(0, 0, 0, 0.08); color: #374151; }
.light-mode .admin-action-btn.danger { background: rgba(239, 68, 68, 0.06); color: #ef4444; }

/* === ADMIN TABS === */

.admin-tabs {
    display: flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.03);
    padding: 4px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    width: fit-content;
}

.admin-tab-btn {
    padding: 8px 20px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 500;
    font-family: 'Space Grotesk', sans-serif;
    color: #9ca3af;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.admin-tab-btn:hover { color: #d1d5db; background: rgba(255, 255, 255, 0.05); }

.admin-tab-btn.active {
    background: rgba(77, 150, 244, 0.15);
    color: #93bbfc;
    box-shadow: 0 0 8px rgba(77, 150, 244, 0.3);
}

/* === ANALYTICS CARDS === */

.analytics-stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.analytics-stat-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
}

.analytics-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    color: white;
    margin-bottom: 4px;
}

.analytics-stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #6b7280;
}

/* === RECOMMENDATIONS SECTION === */

.recs-toggle {
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
}

.recs-toggle:hover {
    background: rgba(255, 255, 255, 0.04) !important;
}

.recs-chevron {
    transition: transform 0.3s ease;
}

.recs-chevron.open {
    transform: rotate(180deg);
}

.rec-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
}

.rec-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
}

.rec-card-warning {
    background: rgba(234, 179, 8, 0.06);
    border: 1px solid rgba(234, 179, 8, 0.2);
    border-radius: 16px;
    padding: 24px;
}

.rec-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* === LIGHT MODE ADDITIONS === */

.light-mode .admin-tabs { background: rgba(0, 0, 0, 0.03); border-color: rgba(0, 0, 0, 0.06); }
.light-mode .admin-tab-btn { color: #6b7280; }
.light-mode .admin-tab-btn:hover { color: #374151; background: rgba(0, 0, 0, 0.04); }
.light-mode .admin-tab-btn.active { background: rgba(77, 150, 244, 0.1); color: #4d96f4; }

.light-mode .analytics-stat-card { background: rgba(0, 0, 0, 0.02); border-color: rgba(0, 0, 0, 0.06); }
.light-mode .analytics-stat-card:hover { background: rgba(0, 0, 0, 0.04); }
.light-mode .analytics-stat-value { color: #1f2937; }
.light-mode .analytics-stat-label { color: #6b7280; }

.light-mode .rec-card { background: rgba(0, 0, 0, 0.02); border-color: rgba(0, 0, 0, 0.06); }
.light-mode .rec-card:hover { background: rgba(0, 0, 0, 0.04); }
.light-mode .rec-card-warning { background: rgba(234, 179, 8, 0.04); border-color: rgba(234, 179, 8, 0.15); }
.light-mode .recs-toggle:hover { background: rgba(0, 0, 0, 0.04) !important; }

/* === RESPONSIVE === */

/* ---- Mobile phones (up to 640px) ---- */
@media (max-width: 640px) {
    .response-card {
        padding: 20px;
        border-radius: 20px;
    }
    .response-card:hover {
        transform: none;
    }
    .card-action-btn:hover {
        transform: none;
        filter: none;
    }
    .rec-card:hover,
    .analytics-stat-card:hover,
    .stat-card:hover {
        transform: none;
    }
    .stat-card {
        padding: 12px 6px 10px;
        border-radius: 14px;
    }
    .stat-card-icon-wrap {
        width: 28px;
        height: 28px;
        border-radius: 8px;
        margin-bottom: 6px;
    }
    .stat-card-icon-wrap .material-symbols-outlined {
        font-size: 15px !important;
    }
    .stat-card-value {
        font-size: 1.3rem;
    }
    .stat-card-label {
        font-size: 8px;
        letter-spacing: 0.1em;
    }
    .card-text {
        font-size: 0.95rem;
        line-height: 1.65;
    }
    .card-action-btn {
        padding: 10px 0;
        border-radius: 10px;
    }
    .card-actions {
        gap: 8px;
    }
    .card-header {
        margin-bottom: 12px;
    }
    .card-body {
        margin-bottom: 16px;
    }
    .card-footer {
        padding-top: 16px;
    }
    .edit-textarea {
        padding: 12px;
        font-size: 0.95rem;
        border-radius: 12px;
        min-height: 80px;
    }
    .toast {
        bottom: 20px;
        left: 16px;
        right: 16px;
        transform: translateX(0) translateY(100px);
        text-align: center;
        padding: 12px 20px;
    }
    .toast.show {
        transform: translateX(0) translateY(0);
    }
    .admin-td {
        padding: 12px 10px;
        font-size: 12px;
    }
    .admin-action-btn {
        padding: 5px 10px;
        font-size: 11px;
    }
    .admin-tabs {
        width: 100%;
    }
    .admin-tab-btn {
        flex: 1;
        justify-content: center;
        padding: 8px 12px;
        font-size: 12px;
    }
    .analytics-stat-card {
        padding: 16px 12px;
    }
    .analytics-stat-value {
        font-size: 1.35rem;
    }
    .analytics-stat-label {
        font-size: 9px;
        letter-spacing: 0.1em;
    }
    .rec-card {
        padding: 16px;
        border-radius: 14px;
    }
    .rec-card-warning {
        padding: 16px;
        border-radius: 14px;
    }
    .rec-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }
    .filter-btn {
        padding: 8px 14px;
        font-size: 13px;
    }
    .glass-panel {
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
}

/* ---- Tablets (641px to 1024px) ---- */
@media (min-width: 641px) and (max-width: 1024px) {
    .response-card {
        padding: 28px;
    }
    .analytics-stat-value {
        font-size: 1.5rem;
    }
}
