/* Bot Specific Styles - Deep Space Theme */

:root {
    --bot-bg-dark: #0a0e17;
    --bot-panel-bg: rgba(20, 25, 40, 0.7);
    --bot-primary: #00f2ff;
    --bot-secondary: #7000ff;
    --bot-text: #e0e6ed;
    --bot-text-muted: #94a3b8;
    --bot-glass-border: rgba(255, 255, 255, 0.1);
}

body {
    background-color: var(--bot-bg-dark);
    color: var(--bot-text);
    font-family: 'Inter', sans-serif;
    overflow: hidden;
    /* Prevent body scroll, handle in chat container */
}

/* Background Animation Container */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background: radial-gradient(circle at center, #1a1f35 0%, #0a0e17 100%);
}

.bot-layout {
    display: flex;
    height: 100vh;
    width: 100vw;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    gap: 20px;
}

/* Sidebar */
.bot-sidebar {
    width: 300px;
    background: var(--bot-panel-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--bot-glass-border);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.bot-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--bot-glass-border);
}

.bot-avatar-large {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--bot-primary), var(--bot-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 0 15px var(--bot-primary);
}

.bot-title h2 {
    margin: 0;
    font-size: 1.2rem;
    background: linear-gradient(to right, #fff, var(--bot-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bot-title span {
    font-size: 0.8rem;
    color: var(--bot-text-muted);
}

.quick-actions h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--bot-text-muted);
    margin-bottom: 15px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
    border-radius: 12px;
    color: var(--bot-text);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.action-btn:hover {
    background: rgba(0, 242, 255, 0.1);
    border-color: var(--bot-primary);
    transform: translateX(5px);
}

.action-btn i {
    color: var(--bot-primary);
}

/* Main Chat Area */
.chat-main {
    flex: 1;
    background: var(--bot-panel-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--bot-glass-border);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    position: relative;
}

.chat-header-mobile {
    display: none;
    /* Hidden on desktop */
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--bot-glass-border);
    align-items: center;
    gap: 10px;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    scroll-behavior: smooth;
}

/* Scrollbar Styling */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.message {
    max-width: 80%;
    padding: 15px 20px;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
    animation: fadeIn 0.3s ease-out;
}

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

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

.message.bot {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.05);
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.message.user {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--bot-secondary), #5000b8);
    color: white;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 15px rgba(112, 0, 255, 0.3);
}

.message-avatar {
    position: absolute;
    bottom: -25px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: white;
}

.bot .message-avatar {
    left: 0;
    background: var(--bot-primary);
    box-shadow: 0 0 10px var(--bot-primary);
}

.user .message-avatar {
    right: 0;
    background: var(--bot-secondary);
}

/* Input Area */
.chat-input-area {
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--bot-glass-border);
    display: flex;
    gap: 15px;
    align-items: center;
}

.input-wrapper {
    flex: 1;
    position: relative;
}

.chat-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--bot-glass-border);
    border-radius: 30px;
    padding: 15px 25px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.chat-input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--bot-primary);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.1);
}

.send-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bot-primary), #00a8ff);
    border: none;
    color: #000;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.3);
}

.send-btn:hover {
    transform: scale(1.1) rotate(-10deg);
    box-shadow: 0 0 25px rgba(0, 242, 255, 0.5);
}

.send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Typing Indicator */
.typing-indicator {
    display: none;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    width: fit-content;
    margin-left: 20px;
    margin-bottom: 10px;
}

.typing-dots {
    display: flex;
    gap: 5px;
}

.dot {
    width: 8px;
    height: 8px;
    background: var(--bot-primary);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.dot:nth-child(1) {
    animation-delay: -0.32s;
}

.dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

/* Markdown Table Styles */
.table-container {
    width: 100%;
    overflow-x: auto;
    margin: 15px 0;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.career-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    color: var(--bot-text);
}

.career-table th,
.career-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.career-table th {
    background: rgba(0, 242, 255, 0.1);
    color: var(--bot-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.career-table tr:last-child td {
    border-bottom: none;
}

.career-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* Responsive */
@media (max-width: 768px) {
    .bot-layout {
        padding: 0;
        flex-direction: column;
    }

    .bot-sidebar {
        display: none;
        /* Hide sidebar on mobile for now, or make it a drawer */
    }

    .chat-main {
        border-radius: 0;
        height: 100vh;
        border: none;
    }

    .chat-header-mobile {
        display: flex;
    }
}