body {
    background-color: #0a0a0f; /* Darker background */
    color: #e0e0e0;
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

header {
    background-color: rgba(10, 10, 15, 0.8); /* Slightly transparent header */
    padding: 15px 30px;
    box-shadow: 0 2px 10px rgba(0, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(5px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

header h1 {
    margin: 0;
    font-size: 1.8em;
    color: #00ffff; /* Cyan accent */
    font-weight: 500;
}

.header-buttons {
    display: flex;
    gap: 15px;
}

.header-btn {
    padding: 10px 20px;
    border: 1px solid #00ffff;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
    background-color: rgba(0, 255, 255, 0.1);
    color: #00ffff;
}

.header-btn:hover {
    background-color: rgba(0, 255, 255, 0.3);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

.header-btn.add-btn {
    border-color: #03dac6; /* Teal variant for "Add New Room" */
    background-color: rgba(3, 218, 198, 0.15);
    color: #03dac6;
}

.header-btn.add-btn:hover {
    background-color: rgba(3, 218, 198, 0.35);
    box-shadow: 0 0 15px rgba(3, 218, 198, 0.5);
}


#roomListContainer {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    padding: 30px;
    justify-content: center;
    max-width: 1200px;
    margin: 20px auto;
}

.room-card {
    background-color: rgba(25, 28, 38, 0.6); /* Transparent dark background */
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 8px;
    padding: 20px;
    width: 100%;
    max-width: 320px; /* Max width for cards */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(3px);
}

.room-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 255, 255, 0.15);
}

.room-card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #00ffff; /* Cyan title */
    font-size: 1.4em;
    font-weight: 500;
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
    padding-bottom: 10px;
}

.room-actions button {
    display: block;
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 10px;
    border: 1px solid;
    border-radius: 5px;
    background-color: transparent;
    color: #00ffff;
    cursor: pointer;
    font-size: 0.95em;
    transition: all 0.3s ease;
    text-align: center;
}

.room-actions button.start-live-btn {
    border-color: #39d2c0; /* Tealish green */
    color: #39d2c0;
}
.room-actions button.start-live-btn:hover {
    background-color: rgba(57, 210, 192, 0.2);
    box-shadow: 0 0 10px rgba(57, 210, 192, 0.4);
}

.room-actions button.view-live-btn {
    border-color: #00aaff; /* Bright blue */
    color: #00aaff;
}
.room-actions button.view-live-btn:hover {
    background-color: rgba(0, 170, 255, 0.2);
    box-shadow: 0 0 10px rgba(0, 170, 255, 0.4);
}

.room-actions button.edit-room-btn {
    border-color: #ffc107; /* Amber/Yellow */
    color: #ffc107;
    margin-top: 15px; /* Add some space before edit button */
}
.room-actions button.edit-room-btn:hover {
    background-color: rgba(255, 193, 7, 0.2);
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.4);
}


/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* Darker overlay */
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px; /* Padding for smaller screens */
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #1a1d26; /* Dark modal content background */
    padding: 25px 30px;
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    box-shadow: 0 5px 30px rgba(0, 255, 255, 0.2);
    width: 90%;
    max-width: 500px;
    color: #e0e0e0;
}

.modal-title {
    font-size: 1.6em;
    margin-bottom: 20px;
    color: #00ffff;
    text-align: center;
    font-weight: 500;
}

.modal-content p {
    margin-bottom: 15px;
    font-size: 0.95em;
    color: #b0b0b0;
}

.modal-content label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9em;
    color: #00ffff;
}

.modal-content input[type="text"],
.modal-content input[type="password"],
.modal-content textarea {
    width: calc(100% - 22px); /* Account for padding */
    padding: 10px;
    margin-bottom: 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 4px;
    color: #e0e0e0;
    font-size: 1em;
}
.modal-content textarea {
    min-height: 80px;
    resize: vertical;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.modal-btn {
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
}

.modal-btn.primary {
    background-color: #00ffff;
    color: #101018;
    border: 1px solid #00ffff;
}
.modal-btn.primary:hover {
    background-color: #00e0e0;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.modal-btn.secondary {
    background-color: transparent;
    color: #aaa;
    border: 1px solid #555;
}
.modal-btn.secondary:hover {
    background-color: rgba(255,255,255,0.1);
    color: #fff;
    border-color: #777;
}

.modal-btn.danger {
    background-color: #ff4d4d;
    color: white;
    border: 1px solid #ff4d4d;
}
.modal-btn.danger:hover {
    background-color: #e60000;
    box-shadow: 0 0 10px rgba(255, 77, 77, 0.5);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .header-buttons {
        width: 100%;
        justify-content: space-between;
    }
    .room-card {
        max-width: 100%; /* Full width on smaller screens */
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5em;
    }
    .header-btn {
        padding: 8px 12px;
        font-size: 0.8em;
    }
    .modal-content {
        padding: 20px;
    }
    .modal-title {
        font-size: 1.4em;
    }
}