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

body {
    font-family: 'Arial', sans-serif;
    background: #000000;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
}

h1 {
    text-align: center;
    font-size: 2.0rem;
    margin-bottom: 30px;
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    transition: all 0.4s ease;
    cursor: default;
}

h1:hover {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.788),
                 0 0 40px rgb(199, 183, 183),
                 0 0 60px rgb(255, 255, 255);
    transform: scale(1.05);
    color: #ffffffb4;
}

img {
    display: block;
    margin: 0 auto 30px;
    max-width: 90%;
    max-height: 500px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.7s ease-in;
}

p {
    color: white;
    font-size: 1.2rem;
    text-align: center;
    max-width: 800px;
    line-height: 1.8;
    margin: 20px auto;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

button {
    display: block;
    margin: 0 auto;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

button:active {
    transform: translateY(0);
}
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    padding: 20px 0;
    text-align: center;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 25px;
    font-size: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
    padding: 12px 24px;
    border-radius: 25px;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

nav a:active {
    transform: translateY(-1px);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: white;
    transition: transform 0.3s ease;
}

nav a:hover::after {
    transform: translateX(-50%) scaleX(1);
}

p a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    position: relative;
    transition: all 0.3s ease;
}

p a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffffff;
    transition: width 0.3s ease;
}

p a:hover::after {
    width: 100%;
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
    padding: 20px;
    text-align: center;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    z-index: 1000;
}

.socials {
    margin-bottom: 10px;
}

.socials a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-size: 16px;
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    display: inline-block;
}

.socials a:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin: 0;
    padding: 0;
    background: none;
    box-shadow: none;
    backdrop-filter: none;
    text-align: center;
    max-width: none;
}
    body {
        padding-bottom: 150px;
    }

    .chat-container {
        max-width: 900px;
        width: 90%;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(15px);
        border-radius: 20px;
        padding: 30px;
        margin: 100px auto 50px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    }

    .chat-container h1 {
        color: white;
        text-align: center;
        margin-bottom: 20px;
        font-size: 2.5rem;
    }

    .user-info {
        background: rgba(78, 237, 196, 0.2);
        padding: 12px 20px;
        border-radius: 15px;
        margin-bottom: 20px;
        color: white;
        text-align: center;
        font-weight: bold;
        border: 2px solid rgba(78, 237, 196, 0.3);
    }

    .chat-messages {
        height: 450px;
        overflow-y: auto;
        background: rgba(0, 0, 0, 0.3);
        border-radius: 15px;
        padding: 20px;
        margin-bottom: 20px;
        border: 2px solid rgba(255, 255, 255, 0.1);
    }

    .chat-messages::-webkit-scrollbar {
        width: 10px;
    }

    .chat-messages::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.2);
        border-radius: 10px;
    }

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

    .message {
        background: linear-gradient(135deg, rgba(78, 237, 196, 0.15), rgba(167, 139, 250, 0.15));
        padding: 15px 20px;
        border-radius: 12px;
        margin-bottom: 12px;
        word-wrap: break-word;
        border-left: 3px solid rgba(78, 237, 196, 0.5);
        transition: all 0.3s ease;
    }

    .message:hover {
        background: linear-gradient(135deg, rgba(78, 237, 196, 0.25), rgba(167, 139, 250, 0.25));
        transform: translateX(5px);
    }

    .username {
        color: #4ecdc4;
        font-weight: bold;
        font-size: 1.1rem;
        margin-right: 10px;
        text-shadow: 0 0 10px rgba(78, 237, 196, 0.5);
    }

    .message-text {
        color: white;
        font-size: 1rem;
        line-height: 1.5;
    }

    .timestamp {
        color: rgba(255, 255, 255, 0.5);
        font-size: 0.85rem;
        margin-left: 10px;
        font-style: italic;
    }

    .chat-input-container {
        display: flex;
        gap: 15px;
        align-items: center;
    }

    #messageInput {
        flex: 1;
        padding: 15px 20px;
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-radius: 30px;
        background: rgba(255, 255, 255, 0.15);
        color: white;
        font-size: 16px;
        backdrop-filter: blur(10px);
        transition: all 0.3s ease;
    }

    #messageInput:focus {
        outline: none;
        border-color: rgba(78, 237, 196, 0.6);
        background: rgba(255, 255, 255, 0.2);
        box-shadow: 0 0 20px rgba(78, 237, 196, 0.3);
    }

    #messageInput::placeholder {
        color: rgba(255, 255, 255, 0.6);
    }

    #sendBtn {
        padding: 15px 35px;
        border: 2px solid rgba(78, 237, 196, 0.6);
        border-radius: 30px;
        background: rgba(78, 237, 196, 0.2);
        color: white;
        font-weight: bold;
        font-size: 16px;
        cursor: pointer;
        transition: all 0.3s ease;
        backdrop-filter: blur(10px);
    }

    #sendBtn:hover {
        background: rgba(78, 237, 196, 0.4);
        transform: translateY(-2px);
        box-shadow: 0 5px 20px rgba(78, 237, 196, 0.4);
    }

    .warning {
        background: rgba(255, 100, 100, 0.3);
        color: #ffcccc;
        padding: 12px 20px;
        border-radius: 12px;
        margin-top: 15px;
        display: none !important; /* Force hide by default */
        text-align: center;
        font-weight: bold;
        border: 2px solid rgba(255, 100, 100, 0.5);
    }

    .warning.show {
        display: block !important;
    }

    .login-required {
        text-align: center;
        color: white;
        padding: 60px 40px;
    }

    .login-required h1 {
        margin-bottom: 20px;
        font-size: 2.5rem;
        background: none;
        animation: none;
    }

    .login-required p {
        font-size: 1.2rem;
        background: none;
        padding: 0;
        box-shadow: none;
        backdrop-filter: none;
        max-width: none;
    }

    .login-required a {
        color: #4ecdc4;
        text-decoration: none;
        font-weight: bold;
        padding: 10px 20px;
        border: 2px solid #4ecdc4;
        border-radius: 25px;
        display: inline-block;
        margin-top: 20px;
        transition: all 0.3s ease;
        background: none;
    }

    .login-required a:hover {
        background: rgba(78, 237, 196, 0.2);
        transform: translateY(-2px);
    }

    .login-required a::after {
        display: none;
    }
/* User Menu Dropdown */
.user-menu {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
}

.user-menu-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-menu-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.user-menu-dropdown {
    position: absolute;
    top: 60px;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    padding: 10px;
    min-width: 200px;
    display: none;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.user-menu-dropdown.show {
    display: block;
    animation: fadeInDown 0.3s ease;
}

.user-menu-item {
    padding: 12px 20px;
    color: white;
    text-decoration: none;
    display: block;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.user-menu-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.user-menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 8px 0;
}

.user-email-display {
    padding: 10px 20px;
    color: #4ecdc4;
    font-size: 0.9rem;
    font-weight: bold;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 5px;
}

.username-admin {
    color: #ff6b6b !important;
    font-weight: bold;
    font-size: 1.1rem;
    margin-right: 10px;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}

.username-user {
    color: #4ecdc4;
    font-weight: bold;
    font-size: 1.1rem;
    margin-right: 10px;
    text-shadow: 0 0 10px rgba(78, 237, 196, 0.5);
}

.online-counter {
    background: rgba(78, 237, 196, 0.15);
    padding: 10px 20px;
    border-radius: 20px;
    margin-bottom: 20px;
    text-align: center;
    color: white;
    font-weight: bold;
    border: 2px solid rgba(78, 237, 196, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.online-dot {
    width: 10px;
    height: 10px;
    background: #4ecdc4;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    img {
        max-height: 300px;
    }
}