/* Video Background Styles */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

#bg-video {
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
}

/* General Styles */
body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    color: #fff;
    overflow: hidden;
}

/* Bright Mode */
body.bright-mode {
    background-color: #f4f4f4;
    color: #333;
}

/* Enhanced Glassmorphism Effect */
.glass-box {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

/* Container Layout */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    position: relative;
}

/* Login Box */
.login-box {
    width: 320px;
    padding: 20px;
    text-align: center;
}

/* Login Title */
.login-title {
    font-size: 24px;
    margin-bottom: 10px;
}

/* Premium Text (GPT-151) */
.premium-text {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
    font-size: 18px;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.8);
}

/* Input Fields */
.input-field {
    width: 90%;
    padding: 12px;
    margin: 10px 0;
    border: none;
    border-radius: 5px;
    background-color: rgba(242, 242, 242, 0.9);
}

/* Button */
.login-btn,
.btn,
.clear-btn {
    width: 100%;
    padding: 10px;
    background-color: #3B82F6;
    border: none;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.login-btn:hover,
.btn:hover {
    background-color: #2563EB;
}

/* Main Chatbox Container */
.chatbox-container {
    width: 90%;
    max-width: 700px;
    height: 80vh;
    display: flex;
    flex-direction: column;
    padding: 15px;
}

/* Header */
.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Header Text and GPT-151 Premium Effect */
.header-text {
    display: flex;
    flex-direction: column;
}

/* Sub-title */
.sub-title {
    font-size: 14px;
    color: #888;
}

/* Chat Box */
.chat-box {
    flex-grow: 1;
    overflow-y: auto;
    margin-top: 10px;
    padding: 10px;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.05);
}

/* Input Area */
.input-container {
    display: flex;
    margin-top: 10px;
    gap: 10px;
    align-items: center;
}

/* Input Bar */
.input-bar {
    flex-grow: 1;
    padding: 10px;
    border: none;
    border-radius: 5px;
    background-color: rgba(242, 242, 242, 0.9);
}

/* Send Button */
#submit {
    width: 60px;
    height: 40px;
    padding: 5px;
    background-color: #3B82F6;
    border-radius: 10px;
    border: none;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
}

#submit:hover {
    background-color: #2563EB;
}

/* Clear Button */
.clear-btn {
    padding: 16px 32px;
    background-color: #EF4444;
    border-radius: 10px;
}

.clear-btn:hover {
    background-color: #DC2626;
}

/* FAB Container */
.fab-container {
    position: fixed;
    bottom: 80px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Circular FAB Button */
.fab {
    width: 60px;
    height: 60px;
    background-color: #1E40AF;
    color: #fff;
    border-radius: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(30, 64, 175, 0.5);
    font-size: 24px;
}

.fab:hover {
    background-color: #1E3A8A;
}

/* FAB Options */
.fab-options {
    display: none;
    flex-direction: column;
    position: absolute;
    bottom: 70px;
    right: 0;
    gap: 10px;
    z-index: 10;
}

/* Show FAB Options */
.fab-options.show {
    display: flex;
}

/* Upload Buttons */
.upload-btn {
    padding: 8px 12px;
    background-color: #333;
    color: #fff;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    width: 140px;
    text-align: center;
}

.upload-btn:hover {
    background-color: #555;
}

/* Particles Container */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Scrollbar Customization */
.chat-box::-webkit-scrollbar {
    width: 8px;
}

.chat-box::-webkit-scrollbar-thumb {
    background: #3B82F6;
    border-radius: 4px;
}

.chat-box::-webkit-scrollbar-thumb:hover {
    background: #2563EB;
}

/* Responsive Design */
@media (max-width: 600px) {
    .chatbox-container {
        width: 95%;
        height: 75vh;
    }

    #submit {
        width: 50px;
        height: 35px;
    }

    .fab-container {
        bottom: 70px;
    }

    .fab {
        width: 50px;
        height: 50px;
    }

    .fab-options {
        bottom: 60px;
    }
}

/* Fallback for browsers without backdrop-filter support */
@supports not (backdrop-filter: blur(12px)) {
    .glass-box {
        background: rgba(0, 0, 0, 0.7) !important;
    }
    .input-field,
    .input-bar {
        background-color: #f2f2f2 !important;
    }
}