body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(to right, #4facfe, #00f2fe);
    color: white;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

h1 {
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.back-button {
    margin-top: 5px;
    margin-bottom: 20px;
    background: #333;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: 0.3s;
}
.back-button:hover {
    background: #555;
}

#peerIdDisplay {
    margin-top: 5px;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.3);
    padding: 15px; /* Sedikit diperlebar paddingnya biar lega */
    border-radius: 8px;
    word-break: break-word;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    margin-bottom: 25px;
    line-height: 1.5; /* Memberikan ruang vertikal ekstra pada teks ID */
}

.copy-button {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px; /* Dipertebal dikit tombolnya agar makin proporsional */
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease-in-out;
    margin-top: 5px !important; /* INI KUNCINYA: Ditambah jaraknya agar tidak dempet ke teks ID di atasnya */
}
.copy-button:hover {
    background: #45a049;
}

.status-indicator {
    margin-bottom: 15px;
    font-weight: bold;
    font-size: 15px;
}
.waiting { color: #ffeb3b; }
.connected { color: #00e676; }

/* KONTROL VERTIKAL ASLI KAMU (100% AMAN DI HP) */
.controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
    max-width: 400px;
}

input, .controls button {
    padding: 12px;
    width: 100%;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
}

input {
    color: #333;
}

.controls button {
    background: #ff4b5c;
    color: white;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s ease-in-out;
}
.controls button:hover {
    background: #e63946;
    transform: scale(1.05);
}

/* Aksentuasi warna tombol Call bawaan */
.btn-call {
    background: #4CAF50 !important;
}
.btn-call:hover {
    background: #45a049 !important;
}

/* ======================================================= */
/* TAMBAHAN STYLE UNTUK MODE GROUP CALL (GRID SYSTEM)      */
/* ======================================================= */
.group-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    width: 100%;
    max-width: 400px;
    min-height: 300px;
    background: #111;
    padding: 10px;
    border-radius: 15px;
    box-sizing: border-box;
    margin-bottom: 15px;
}

.group-grid video {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    background: #222;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

/* Tombol Khusus Group Berwarna Ungu / Biru Gelap */
.btn-group {
    background: #6c5ce7 !important;
}
.btn-group:hover {
    background: #5b4cc4 !important;
}