* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #0f0f13;
    --bg-card: #1a1a24;
    --bg-chat: #12121a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b8;
    --accent: #6c5ce7;
    --border: #2a2a3a;
}

body {
    font-family: 'Inter', 'Hind Siliguri', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    background-image: 
        radial-gradient(ellipse at top left, rgba(108, 92, 231, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(233, 30, 99, 0.1) 0%, transparent 50%);
}

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 24px 16px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    padding: 16px 20px;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-icon {
    font-size: 32px;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
}

.logo h1 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.logo p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    background: rgba(76, 175, 80, 0.12);
    padding: 6px 12px;
    border-radius: 20px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #4CAF50;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Chat Panel */
.chat-panel {
    flex: 1;
    background: var(--bg-chat);
    border-radius: 20px;
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
}

.chat-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.chat-header h2 {
    font-size: 18px;
    font-weight: 600;
}

.subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.chat-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
}

/* Messages */
.message {
    display: flex;
    gap: 12px;
    max-width: 90%;
}

.message-avatar {
    width: 36px;
    height: 36px;
    background: var(--bg-card);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.message-content {
    background: var(--bg-card);
    padding: 14px 18px;
    border-radius: 16px 16px 16px 4px;
    border: 1px solid var(--border);
}

.message-content p {
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--text-primary);
}

.message-content .time {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 6px;
}

/* Admin Buttons */
.admin-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 8px 0;
    padding-left: 48px;
}

.admin-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.admin-btn::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--btn-color);
    border-radius: 14px 0 0 14px;
}

.admin-btn:hover {
    background: #222233;
    border-color: var(--btn-color);
    transform: translateX(6px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.admin-btn.clicked {
    transform: scale(0.97);
}

.btn-icon {
    font-size: 28px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.btn-text strong {
    font-size: 15px;
    font-weight: 600;
}

.btn-text span {
    font-size: 12.5px;
    color: var(--text-secondary);
}

.btn-arrow {
    font-size: 20px;
    color: var(--text-secondary);
    transition: all 0.25s ease;
}

.admin-btn:hover .btn-arrow {
    color: var(--btn-color);
    transform: translateX(4px);
}

/* Footer */
.footer {
    text-align: center;
    padding: 24px 0 8px;
    color: var(--text-secondary);
    font-size: 13px;
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 16px 12px;
    }

    .header {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .logo {
        flex-direction: column;
    }

    .admin-buttons {
        padding-left: 0;
    }

    .message {
        max-width: 100%;
    }

    .chat-header {
        padding: 16px;
    }

    .chat-body {
        padding: 16px;
    }
}
