.room-panel {
    background: var(--container);
    backdrop-filter: blur(10px);
    padding: 1rem;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    grid-column: 2;
    grid-row: 2;
    /*height: calc(100vh - 180px);*/
    /*overflow: auto;*/
}

/* Hide scrollbar for Chrome, Safari and Opera */
.room-panel::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.room-panel {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

.room-info {
    background: var(--active);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: none;
}

.room-info.active {
    display: block;
}

.room-id {
    display: flex;
    align-items: center;
    background-color: #f0f0f0;
    padding: 8px 12px;
    border-radius: 5px;
    margin-bottom: 0.5rem;
    font-family: monospace; /* Monospace font for better readability of IDs */
    word-break: break-all; /* Prevents long IDs from overflowing */
    color: black;
}

.copyable-id {
    flex-grow: 1; /* Allows the ID to take up available space */
    margin-right: 8px; /* Spacing between ID and button */
}

.copy-btn {
    background-color: #e0e0e0;
    border: none;
    padding: 6px 10px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-btn svg {
    width: 16px;
    height: 16px;
}

.copy-btn:hover {
    background-color: #d0d0d0;
}

.tick-animation {
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    opacity: 0;
    transform: scale(0.5);
}

.tick-animation.show {
    opacity: 1;
    transform: scale(1);
}

.btn.danger {
    background: #ff5555;
}

.btn.danger:hover {
    background: #ff7777;
}

.room-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.btn {
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.2s;
    text-align: center;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-2px);
}

.room-members {
    margin-top: 1rem;
}

.members-list {
    height: calc(100vh - 460px);
    overflow: auto;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.members-list::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.members-list {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

.member {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 0.5rem;
}

.member-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.member-name {
    flex: 1;
}

.member.host::after {
    content: "Host";
    font-size: 0.8rem;
    font-weight: bold;
    padding: 0.25rem 0.5rem;
    background-color: purple;
    color: #EDEDED;
    border-radius: 4px;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: #2d2d2d;
    border-radius: 12px;
    padding: 2rem;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.modal-overlay.visible .modal {
    transform: translateY(0);
    opacity: 1;
}

.modal h2 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: #ffffff;
}

.modal-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    transition: all 0.2s;
}

.modal-input:focus {
    outline: none;
    border-color: var(--primary-clr);
    background: rgba(255, 255, 255, 0.15);
}

.modal-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.modal-input.error {
    border-color: #ff5555;
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

.modal-actions {
    display: flex;
    gap: 1rem;
}

.modal-btn {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-btn.primary:hover {
    /*background: #1ed760;*/
    transform: translateY(-2px);
}

.modal-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 1rem 2rem;
    border-radius: 8px;
    animation: slideIn 0.3s ease-out;
}
