@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: linear-gradient(135deg, #74ebd5, #ACB6E5);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 20px;
}

/* Chat Container */
.chat-container {
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0px 8px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Chat Header */
/* .chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #6A11CB, #2575FC);
    color: white;
    padding: 12px;
    border-radius: 8px;
} */

/* .logout-btn {
    background: #ff4b5c;
    color: white;
    border: none;
    padding: 6px 12px;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s ease-in-out;
} */

/* .logout-btn:hover {
    background: #e04350;
} */

.onlineUser{

    background: green;
    padding: 7px;
    border-radius: 100%
}
/* Chat Box */
.chat-box {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin: 10px 0;
    box-shadow: inset 0px 4px 8px rgba(0, 0, 0, 0.1);
}

/* Messages */
.message {
    padding: 10px;
    margin: 6px;
    max-width: 80%;
    border-radius: 15px;
    display: inline-block;
    clear: both;
    position: relative;
    font-size: 14px;
}

.sent {
    background: #dcf8c6;
    text-align: right;
    float: right;
    border-radius: 20px 20px 5px 20px;
}

.received {
    background: #f1f1f1;
    text-align: left;
    float: left;
    border-radius: 20px 20px 20px 5px;
}

/* Chat Input */
.chat-input {
    display: flex;
    align-items: center;
    padding: 10px;
    border-top: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
}

.chat-input input {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    border: none;
    outline: none;
    background: rgba(255, 255, 255, 0.4);
    color: #333;
    font-size: 14px;
}

.chat-input button {
    margin-left: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    border: none;
    background: #2575FC;
    color: white;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

.chat-input button:hover {
    background: #1a5bc4;
}

/* Video Elements */
.video-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

video {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: 12px;
    margin: 10px;
    background: black;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3);
}

/* Buttons */
button {
    margin: 5px;
    padding: 10px 15px;
    border-radius: 8px;
    border: none;
    background: #007bff;
    color: white;
    cursor: pointer;
    font-size: 14px;
    transition: 0.3s ease-in-out;
}

button:hover {
    background: #0056b3;
}

/* Login Box */
.login-box {
    background: rgba(41, 41, 61, 0.9);
    padding: 20px;
    border-radius: 12px;
    width: 100%;
    max-width: 320px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    color: white;
    text-align: center;
}

h2, h3 {
    margin-bottom: 10px;
}

input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border-radius: 8px;
    border: none;
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 14px;
    text-align: center;
}

input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* Notification Icon */
.notification-container {
    position: relative;
    cursor: pointer;
}

.bell-icon {
    font-size: 24px;
    color: white;
}

.notification-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: red;
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 50%;
    display: none;
}

/* Responsive Design */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }
    .chatSection{
        height: 600px !important;
    }
    .chat-container {
        width: 100%;
        max-width: 100%;
        border-radius: 0;
    }

    .chat-box {
        max-height: 300px;
    }

    .message {
        max-width: 90%;
    }

    .video-container {
        flex-direction: column;
    }

    video {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .login-box {
        width: 100%;
        max-width: 100%;
        border-radius: 0;
    }

    .chat-input {
        flex-direction: column;
    }

    .chat-input input {
        margin-bottom: 10px;
    }

    .chat-input button {
        margin-left: 0;
        width: 100%;
    }
}
.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #128C7E, #075E54);
    color: white;
    padding: 12px 15px;
    border-radius: 8px;
}

.header-left {
    display: flex;
    align-items: center;
}

.profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    border: 2px solid white;
}

.room-info h2 {
    font-size: 16px;
    margin: 0;
}

.room-info p {
    font-size: 12px;
    margin: 0;
    opacity: 0.8;
}

.header-right {
    display: flex;
    align-items: center;
}

.icon {
    font-size: 20px;
    margin-right: 15px;
    cursor: pointer;
}

.icon:hover {
    opacity: 0.8;
}

/* .logout-btn {
    background: #ff4b5c;
    color: white;
    border: none;
    padding: 6px 12px;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s ease-in-out;
}

.logout-btn:hover {
    background: #e04350;
} */
.profile-container img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    background: url('default-profile.png') center/cover no-repeat;
}
.logout-btn {
    display: flex;
    align-items: center;
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
}

.logout-btn i, .logout-btn svg, .logout-btn .material-icons {
    margin-right: 5px;
}
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 9999;
}

.loading-spinner i {
    font-size: 50px; /* Bigger spinner */
    color: #007BFF; /* Blue color for the spinner */
}
