/* style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #1a2a6c);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: white;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.container {
    width: 100%;
    max-width: 900px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

header {
    background: rgba(0, 0, 0, 0.4);
    padding: 20px;
    text-align: center;
    border-bottom: 2px solid #ff4757;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(to right, #ff9a9e, #fad0c4, #fad0c4, #a18cd1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-logout {
    background: #ff4757;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: #ff6b81;
    transform: translateY(-2px);
}

.main-content {
    display: flex;
    min-height: 500px;
}

.left-panel {
    flex: 1;
    padding: 30px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.right-panel {
    flex: 1;
    padding: 30px;
    background: rgba(0, 0, 0, 0.2);
}

.panel-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff4757;
    display: flex;
    align-items: center;
}

.panel-title i {
    margin-right: 10px;
    color: #ff4757;
}

.upload-area {
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    margin-bottom: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover {
    background: rgba(255, 71, 87, 0.1);
    border-color: #ff4757;
}

.upload-area i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #ff4757;
}

.upload-area h3 {
    margin-bottom: 15px;
}

.upload-area p {
    opacity: 0.7;
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

input, select {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
}

input:focus, select:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
}

.notification {
    padding: 15px;
    margin: 15px 0;
    border-radius: 8px;
    text-align: center;
}

.error {
    background: rgba(255, 71, 87, 0.3);
    border: 1px solid #ff4757;
}

.success {
    background: rgba(46, 213, 115, 0.3);
    border: 1px solid #2ed573;
}

.info {
    background: rgba(255, 221, 89, 0.3);
    border: 1px solid #ffdd59;
}

.active-rooms {
    margin-top: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.room-item {
    padding: 15px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.room-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.room-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.room-code {
    font-weight: bold;
    color: #ffdd59;
}

.room-owner {
    font-size: 0.9rem;
    opacity: 0.8;
}

.room-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.room-title i {
    color: #ff4757;
}

.room-members {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.member-tag {
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.online-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #2ed573;
}

.offline-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #aaa;
}

.owner-tag {
    background: rgba(255, 71, 87, 0.2);
    color: #ff4757;
}

.btn {
    background: #ff4757;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    margin: 5px;
}

.btn:hover {
    background: #ff6b81;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.4);
}

.btn i {
    margin-right: 8px;
}

.btn-secondary {
    background: transparent;
    border: 2px solid #ff4757;
}

@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    
    .left-panel {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    header {
        flex-direction: column;
    }
    
    .user-info {
        margin-top: 15px;
    }
}