/* Custom CSS enhancements on top of Bootstrap */

:root {
    --bs-primary: #8a2be2;
    /* BlueViolet */
    --bs-info: #00d2ff;
}

body {
    font-family: 'Inter', sans-serif;
    color: #e0e0e0;
    overflow-x: hidden;
}

.font-outfit {
    font-family: 'Outfit', sans-serif;
}

.font-inter {
    font-family: 'Inter', sans-serif;
}

/* Premium Gradient Text */
.text-gradient {
    background: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation Backdrop */
.backdrop-blur {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Glow Effects */
.bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(100px);
}

.shadow-glow {
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.4);
    transition: box-shadow 0.3s ease;
}

.shadow-glow:hover {
    box-shadow: 0 0 30px rgba(138, 43, 226, 0.6);
}

/* Glassmorphism Cards */
.glass-card,
.feature-card {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(0, 210, 255, 0.3) !important;
}

.feature-icon {
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

/* Chat Micro-animations */
.typing-dot {
    width: 6px;
    height: 6px;
    background-color: #6c757d;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out both;
}

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

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

@keyframes typing {

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

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

/* Chat Interace */
.chat-container {
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.chat-container::-webkit-scrollbar {
    width: 6px;
}

.chat-container::-webkit-scrollbar-track {
    background: transparent;
}

.chat-container::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.message {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    max-width: 85%;
}

.message.attacker {
    align-self: flex-start;
    align-items: flex-start;
}

.message.defender {
    align-self: flex-end;
    align-items: flex-end;
}

.message-bubble {
    padding: 1rem 1.25rem;
    border-radius: 1.25rem;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.message.attacker .message-bubble {
    background-color: rgba(255, 255, 255, 0.05);
    border-top-left-radius: 0.25rem;
    border-color: rgba(220, 53, 69, 0.3);
    /* Subtle danger tint */
}

.message.defender .message-bubble {
    background-color: rgba(0, 210, 255, 0.05);
    /* Info tint */
    border-top-right-radius: 0.25rem;
    border-color: rgba(0, 210, 255, 0.3);
}

.message-bubble.injection-attempt {
    box-shadow: 0 0 15px rgba(220, 53, 69, 0.4);
    border-color: rgba(220, 53, 69, 0.6);
}