:root {
    --primary: #00ffcc;
    --dark-bg: #0d1117;
}

body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--dark-bg);
    overflow-y: auto;
}

#vanta-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
}

/* ===== MAIN HEADER - Clickable Home Button ===== */
.main-header {
    height: 60px;
    background: rgba(5, 5, 15, 0.8);
    backdrop-filter: blur(15px);
    color: white;
    display: flex;
    align-items: center;
    padding: 0 30px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border-bottom: 1px solid rgba(100, 200, 255, 0.15);
    z-index: 1000;
    flex-shrink: 0;
}

.main-header:hover {
    background: rgba(10, 10, 25, 0.9);
}

.main-header span {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(100, 200, 255, 0.5);
}

.main-header span::after {
    content: '🏠';
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.main-header:hover span::after {
    opacity: 1;
}

.main-header::before {
    content: 'Go to Home';
    position: absolute;
    bottom: -30px;
    left: 30px;
    background: rgba(5, 5, 15, 0.9);
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
    z-index: 1000;
    border: 1px solid rgba(100, 200, 255, 0.3);
}

.main-header:hover::before {
    opacity: 1;
}

/* ===== CHAT CONTAINER ===== */
.chat-container {
    width: 90%;
    max-width: 450px;
    height: calc(85vh - 100px);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    background: rgba(13, 17, 23, 0.85);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    z-index: 10;
    overflow: hidden;
    margin: 20px auto;
}

.chat-header {
    flex-shrink: 0;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
}

#reset-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
}

.chat-window {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.emotion-tray {
    flex-shrink: 0;
    padding: 10px 15px;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    background: rgba(255, 255, 255, 0.03);
}

.emotion-tray button {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
}

.input-area {
    flex-shrink: 0;
    padding: 12px 20px;
    background: #161b22;
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.input-area input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    font-size: 1rem;
    outline: none;
}

#send-btn {
    background: var(--primary);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
}

.message {
    padding: 12px 18px;
    border-radius: 18px;
    max-width: 80%;
    line-height: 1.5;
    animation: slideUp 0.3s ease-out;
}

.bot-msg { background: rgba(255, 255, 255, 0.1); color: #fff; align-self: flex-start; }
.user-msg { background: var(--primary); color: #000; align-self: flex-end; }

/* ===== FOOTER STYLES ===== */
.dashboard-footer {
    padding: 1.5rem 1.5rem 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(5, 5, 15, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(100, 200, 255, 0.15);
    position: relative;
    z-index: 100;
    width: 100%;
    margin-top: auto;
    box-sizing: border-box;
    flex-shrink: 0;
}

.dashboard-footer p {
    margin: 8px 0;
    font-size: 0.9rem;
}

.dashboard-footer .made-with {
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 1px;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.dashboard-footer .made-with span {
    color: #ff6b9d;
    animation: pulse 2s infinite;
}

.team-credits {
    margin: 15px auto;
    font-size: 1rem;
    font-weight: 400;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 15px;
    color: rgba(100, 200, 255, 0.9);
    border-top: 1px solid rgba(100, 200, 255, 0.2);
    border-bottom: 1px solid rgba(100, 200, 255, 0.2);
    padding: 15px 0;
    max-width: 800px;
}

.team-credits span {
    padding: 0 5px;
    transition: all 0.3s ease;
    cursor: default;
    position: relative;
    color: #a8e6cf;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.team-credits span:hover {
    color: #7bbfae;
    transform: translateY(-2px);
    text-shadow: 0 0 10px rgba(100, 200, 255, 0.5);
}

.team-credits span::after {
    content: '•';
    position: absolute;
    right: -12px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 14px;
    top: 50%;
    transform: translateY(-50%);
}

.team-credits span:last-child::after {
    display: none;
}

.copyright {
    font-size: 0.8rem !important;
    opacity: 0.5;
    margin-top: 15px !important;
    letter-spacing: 0.5px;
}

/* ===== ANIMATIONS ===== */
@keyframes slideUp { 
    from { transform: translateY(10px); opacity: 0; } 
    to { transform: translateY(0); opacity: 1; } 
}

@keyframes pulse { 
    0%, 100% { opacity: 0.5; } 
    50% { opacity: 1; } 
}

.pulse { 
    animation: pulse 2s infinite; 
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .chat-container {
        width: 95%;
        height: calc(80vh - 80px);
        margin: 10px auto;
    }

    .main-header {
        padding: 0 20px;
    }

    .main-header span {
        font-size: 1.2rem;
    }

    .team-credits {
        flex-direction: column;
        gap: 8px;
        padding: 12px 0;
    }

    .team-credits span::after {
        display: none;
    }

    .team-credits span {
        display: block;
        text-align: center;
    }

    .dashboard-footer {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .main-header {
        padding: 0 15px;
    }

    .main-header span {
        font-size: 1rem;
    }

    .chat-header h2 {
        font-size: 1.2rem;
    }

    .emotion-tray button {
        padding: 4px 10px;
        font-size: 0.8rem;
    }
}

/* ===== SCROLLBAR STYLING ===== */
.scrollbar-styled::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.scrollbar-styled::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.scrollbar-styled::-webkit-scrollbar-thumb {
    background: rgba(100, 200, 255, 0.3);
    border-radius: 10px;
}

.scrollbar-styled::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 200, 255, 0.5);
}