/* style.css - Modern Redesign with #1E1A4D Theme */
:root {
    --primary: #eeeded;
    --primary-light: #b4b4b4;
    --primary-dark: #2D2678;
    --primary-gradient: linear-gradient(135deg, #1D293D, #181448);
    --secondary: #1D293D;
    --accent: #A89BFF;
    --dark-bg: #1E1A4D;
    --dark-secondary: #2A2566;
    --glass-bg: rgba(211, 211, 211, 0.05);
    --glass-border: rgba(202, 202, 202, 0.08);
    --text-light: #FFFFFF;
    --text-muted: rgba(255, 255, 255, 0.7);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --radius: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    color: var(--text-light);
    position: relative;
    overflow-x: hidden;
    /* Background image with animation */
    background-image: url('bgisoko.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    animation: backgroundZoom 20s ease-in-out infinite;
}

/* Background Zoom Animation - Comes forward and goes backward */
@keyframes backgroundZoom {
    0% {
        background-size: 100% auto;
        background-position: center;
    }

    50% {
        background-size: 115% auto;
        background-position: center 45%;
    }

    100% {
        background-size: 100% auto;
        background-position: center;
    }
}

/* Alternative: Background Float Animation */
/* 
@keyframes backgroundFloat {
    0% {
        transform: scale(1);
        background-position: center;
    }
    50% {
        transform: scale(1.08);
        background-position: center 40%;
    }
    100% {
        transform: scale(1);
        background-position: center;
    }
}
*/

/* Dark overlay for better readability - reduced opacity */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 26, 77, 0.5);
    z-index: 0;
    backdrop-filter: blur(2px);
    animation: overlayPulse 20s ease-in-out infinite;
}

/* Overlay pulse to match background animation */
@keyframes overlayPulse {
    0% {
        opacity: 0.5;
    }

    50% {
        opacity: 0.6;
    }

    100% {
        opacity: 0.5;
    }
}

/* Animated Background Particles */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(74, 63, 158, 0.4);
    border-radius: 50%;
    animation: float-particle linear infinite;
}

@keyframes float-particle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-10vh) rotate(720deg);
        opacity: 0;
    }
}

/* Floating dots animation */
.floating-dots {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
}

.dot {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float-dot 20s infinite ease-in-out;
}

@keyframes float-dot {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.2;
    }

    25% {
        transform: translate(50px, -30px) scale(1.5);
        opacity: 0.5;
    }

    50% {
        transform: translate(-20px, -60px) scale(0.8);
        opacity: 0.3;
    }

    75% {
        transform: translate(30px, -40px) scale(1.2);
        opacity: 0.6;
    }
}

/* Glassmorphism Effect - More Transparent */
.glass-effect {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* App Container */
.app-container {
    display: flex;
    height: calc(100vh - 70px);
    max-width: 1500px;
    margin: 0 auto;
    padding: 20px;
    gap: 25px;
    position: relative;
    z-index: 1;
}

/* Sidebar - More Transparent */
.sidebar {
    width: 320px;
    background: rgba(30, 26, 77, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius);
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.sidebar:hover {
    border-color: rgba(74, 63, 158, 0.3);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(74, 63, 158, 0.05);
    background: rgba(30, 26, 77, 0.5);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.logo i {
    font-size: 2rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo h2 {
    background: linear-gradient(135deg, #08032d, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.avatar {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-weight: 500;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.avatar:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(74, 63, 158, 0.2);
}

.avatar i {
    font-size: 2.2rem;
    color: var(--primary-light);
}

.logout-btn,
.login-btn {
    padding: 12px;
    background: var(--primary-gradient);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    font-weight: 600;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.logout-btn::before,
.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: 0.5s;
}

.logout-btn:hover::before,
.login-btn:hover::before {
    left: 100%;
}

.logout-btn:hover,
.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 63, 158, 0.4);
    border-color: rgba(74, 63, 158, 0.3);
}

.history-section {
    flex: 1;
    overflow-y: auto;
    padding-right: 5px;
}

.history-section h3 {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    font-weight: 600;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.history-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 15px;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    color: white;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.history-item:hover {
    background: rgba(74, 63, 158, 0.15);
    transform: translateX(5px);
    border-color: rgba(74, 63, 158, 0.3);
}

.history-item small {
    color: var(--text-muted);
    font-size: 0.7rem;
    display: block;
    margin-top: 4px;
}

/* Main Content - More Transparent */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(30, 26, 77, 0.35);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.main-content:hover {
    border-color: rgba(74, 63, 158, 0.15);
    background: rgba(30, 26, 77, 0.4);
}

.chat-header {
    padding: 25px 30px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.01);
}

.chat-header h1 {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #FFFFFF, #181448);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: var(--text-muted);
    margin-top: 5px;
    font-size: 0.95rem;
}

/* Chat Messages */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.welcome-message {
    background: linear-gradient(135deg, rgba(74, 63, 158, 0.15), rgba(139, 127, 216, 0.15));
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.welcome-message p {
    font-size: 1.1rem;
    line-height: 1.6;
}

.message {
    display: flex;
    gap: 12px;
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.message.user {
    justify-content: flex-end;
}

.message.user .message-content {
    background: var(--primary-gradient);
    color: white;
    border-bottom-right-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.message.bot .message-content {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-light);
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.message-avatar {
    width: 42px;
    height: 42px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(74, 63, 158, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.message.user .message-avatar {
    background: linear-gradient(135deg, #161237, #2D2678);
}

.message-content {
    max-width: 75%;
    padding: 14px 20px;
    border-radius: 18px;
    line-height: 1.6;
    font-size: 0.95rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Chat Input - Modern with border */
.chat-input-area {
    padding: 20px 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(255, 255, 255, 0.01);
}

.input-wrapper {
    display: flex;
    gap: 12px;
    background: rgba(255, 255, 255, 0.04);
    padding: 8px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: var(--transition);
}

.input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(74, 63, 158, 0.2);
}

.input-wrapper textarea {
    flex: 1;
    background: transparent;
    border: none;
    padding: 10px 15px;
    font-family: inherit;
    resize: none;
    color: white;
    font-size: 0.95rem;
}

.input-wrapper textarea::placeholder {
    color: var(--text-muted);
}

.input-wrapper textarea:focus {
    outline: none;
}

.send-btn {
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    border: none;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.2rem;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.send-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: 0.5s;
}

.send-btn:hover::before {
    left: 100%;
}

.send-btn:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 63, 158, 0.4);
}

.input-hint {
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}

/* Auth Pages - More Transparent */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.glass-card {
    background: rgba(30, 26, 77, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 50px;
    width: 100%;
    max-width: 450px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    animation: slideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transition: var(--transition);
}

.glass-card:hover {
    background: rgba(30, 26, 77, 0.5);
    border-color: rgba(74, 63, 158, 0.2);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.glass-card .auth-icon {
    text-align: center;
    margin-bottom: 25px;
}

.glass-card .auth-icon i {
    font-size: 4rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 20px;
    background-color: rgba(74, 63, 158, 0.1);
    border-radius: 50%;
    border: 2px solid rgba(74, 63, 158, 0.2);
}

.glass-card h2 {
    color: white;
    text-align: center;
    margin-bottom: 10px;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #FFFFFF, #181448);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-card .auth-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group .input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: var(--transition);
}

.form-group input {
    width: 100%;
    padding: 14px 18px 14px 48px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    font-size: 1rem;
    color: white;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(74, 63, 158, 0.2);
    background: rgba(255, 255, 255, 0.07);
}

.form-group input:focus+.input-icon,
.form-group input:focus~.input-icon {
    color: var(--primary-light);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-group input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px rgba(30, 26, 77, 0.6) inset !important;
    -webkit-text-fill-color: white !important;
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 10px;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 63, 158, 0.4);
}

.btn-secondary {
    width: 100%;
    padding: 14px;
    background: rgba(255, 255, 255, 0.04);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    text-decoration: none;
    text-align: center;
    display: inline-block;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(74, 63, 158, 0.3);
}

.btn-secondary i {
    margin-right: 8px;
}

.alert {
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert i {
    font-size: 1.2rem;
}

.alert.error {
    background: rgba(255, 0, 0, 0.08);
    color: #FF6B6B;
    border: 1px solid rgba(255, 0, 0, 0.12);
}

.alert.success {
    background: rgba(0, 255, 0, 0.05);
    color: #51cf66;
    border: 1px solid rgba(0, 255, 0, 0.1);
}

.alert p {
    margin: 0;
    flex: 1;
}

.auth-link {
    text-align: center;
    margin-top: 25px;
    color: var(--text-muted);
}

.auth-link a {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.auth-link a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 15px;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.back-link:hover {
    color: white;
}

.back-link i {
    margin-right: 6px;
}

/* Modal - Only shown when triggered */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    max-width: 500px;
    width: 90%;
    padding: 35px;
    background: rgba(30, 26, 77, 0.5);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    text-align: center;
    margin-bottom: 25px;
}

.modal-header i {
    font-size: 3.5rem;
    color: var(--primary-light);
    margin-bottom: 15px;
}

.modal-header h2 {
    color: white;
    font-size: 1.5rem;
}

.modal-body p {
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 20px;
}

.modal-body ul {
    list-style: none;
    margin: 20px 0;
}

.modal-body li {
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-light);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.modal-body li i {
    color: var(--primary-light);
    font-size: 1.1rem;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.modal-buttons .btn-primary,
.modal-buttons .btn-secondary,
.modal-buttons .btn-close {
    flex: 1;
    text-align: center;
    min-width: 120px;
}

.btn-close {
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.btn-close:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* Footer - More Transparent */
.footer {
    background: rgba(30, 26, 77, 0.3);
    backdrop-filter: blur(12px);
    padding: 15px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.developer-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.developer-info a {
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: var(--transition);
}

.developer-info a:hover {
    color: var(--primary-light);
    transform: translateY(-2px);
}

/* Scrollbar - Modern */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Responsive */
@media (max-width: 1024px) {
    .sidebar {
        width: 280px;
    }
}

@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
        height: auto;
        padding: 10px;
        gap: 15px;
    }

    .sidebar {
        width: 100%;
        height: auto;
        max-height: 300px;
    }

    .main-content {
        min-height: 500px;
    }

    .message-content {
        max-width: 85%;
    }

    .chat-header h1 {
        font-size: 1.5rem;
    }

    .glass-card {
        padding: 30px 20px;
    }

    .glass-card .auth-icon i {
        font-size: 3rem;
        padding: 15px;
    }

    .footer-content {
        flex-direction: column;
        gap: 10px;
    }

    /* Adjust animation speed for mobile */
    body {
        animation-duration: 15s;
    }
}

/* Markdown Content Styles */
.markdown-content {
    line-height: 1.7;
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3 {
    margin: 15px 0 10px 0;
    color: white;
}

.markdown-content h1 {
    font-size: 1.8rem;
}

.markdown-content h2 {
    font-size: 1.5rem;
}

.markdown-content h3 {
    font-size: 1.3rem;
}

.markdown-content strong {
    font-weight: 700;
    color: var(--primary-light);
}

.markdown-content a {
    color: var(--primary-light);
    text-decoration: none;
    border-bottom: 1px solid var(--primary);
}

.markdown-content a:hover {
    color: var(--primary);
}

.inline-code {
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 8px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #8B7FD8;
}

.code-block {
    margin: 15px 0;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.code-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.code-language {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-family: monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.copy-code-btn {
    background: rgba(74, 63, 158, 0.3);
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: var(--transition);
}

.copy-code-btn:hover {
    background: rgba(74, 63, 158, 0.5);
}

.markdown-content pre {
    margin: 0;
    padding: 15px;
    overflow-x: auto;
}

.markdown-content code {
    font-family: 'Courier New', 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

.markdown-content pre code {
    background: transparent;
    color: #d4d4d4;
}

.markdown-content ul,
.markdown-content ol {
    margin: 10px 0;
    padding-left: 25px;
}

.markdown-content li {
    margin: 5px 0;
}

.markdown-content blockquote {
    border-left: 3px solid var(--primary);
    margin: 10px 0;
    padding-left: 15px;
    color: var(--text-muted);
    font-style: italic;
}

.markdown-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 15px 0;
}

.markdown-content th,
.markdown-content td {
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 10px;
    text-align: left;
}

.markdown-content th {
    background: rgba(74, 63, 158, 0.15);
    font-weight: bold;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 6px;
    padding: 8px 12px;
}

.typing-indicator span {
    width: 10px;
    height: 10px;
    background: var(--primary-light);
    border-radius: 50%;
    animation: typing 1.4s infinite;
    opacity: 0.6;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {

    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.4;
    }

    30% {
        transform: translateY(-12px);
        opacity: 1;
    }
}

/* Blurred content */
.blurred {
    transition: filter 0.3s;
}

.blurred:hover {
    filter: blur(2px) !important;
}

.unlock-prompt {
    margin-top: 12px;
    padding: 12px;
    background: linear-gradient(135deg, rgba(74, 63, 158, 0.15), rgba(139, 127, 216, 0.15));
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    border: 1px solid rgba(74, 63, 158, 0.15);
    transition: var(--transition);
}

.unlock-prompt:hover {
    background: linear-gradient(135deg, rgba(74, 63, 158, 0.25), rgba(139, 127, 216, 0.25));
    transform: translateY(-2px);
}

/* Logo Image - Circular and Small */
.logo-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 15px rgba(74, 63, 158, 0.3);
    transition: var(--transition);
    flex-shrink: 0;
}

.logo-img:hover {
    transform: scale(1.05);
    border-color: rgba(74, 63, 158, 0.4);
    box-shadow: 0 4px 20px rgba(74, 63, 158, 0.5);
}

/* If you want the image to be even smaller on mobile */
@media (max-width: 768px) {
    .logo-img {
        width: 40px;
        height: 40px;
    }
}