/* Join Card */
.join-card {
    background-color: white;
    border-radius: 24px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    padding: 24px;
    max-width: 360px;
    margin: 0 auto 24px auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    font-family: sans-serif;
}

.join-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1f2937;
    text-align: center;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    color: #4b5563;
    font-size: 0.875rem;
    margin-bottom: 4px;
}

.input-group input {
    border: 1px solid #d1d5db;
    border-radius: 16px;
    padding: 8px 12px;
    font-size: 0.875rem;
    outline: none;
}

.input-group input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99,102,241,0.3);
}

/* Access Key */
.access-key-container {
    display: flex;
    justify-content: space-between;
    gap: 4px;
}

.key-box {
    width: 40px;
    height: 48px;
    border: 2px solid #d1d5db;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: monospace;
    font-size: 1.25rem;
    background-color: #f9fafb;
    transition: all 0.2s ease;
    cursor: pointer
}

#roomAccessKey {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    top: 0;
    left: 0;
}

/* Buttons */
#connectBtn, .message-card button {
    width: 100%;
    padding: 8px 0;
    border-radius: 16px;
    background-color: #4f46e5;
    color: white;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#connectBtn:hover, .message-card button:hover {
    background-color: #4338ca;
}

/* Connection Status */
.connection-status #connectionLight {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: red;
    display: inline-block;
    transition: background-color 0.2s ease;
}

.connection-status #connectionLight.active {
    background-color: green;
}

/* Message Card */
.message-card {
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message-card h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
}

.message-card input {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 8px;
    outline: none;
}

/* Chat Log */
.chat-log-card {
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 16px;
    height: 384px;
    overflow-y: auto;
}

.chat-log-card h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

#chatLog div {
    margin-bottom: 4px;
}

/* Mode Switch Buttons */
.mode-btn {
    flex: 1;
    padding: 8px 0;
    border-radius: 16px;
    border: 2px solid #e5e7eb;
    background-color: #f9fafb;
    color: #374151;
    font-weight: 600;
    transition: all 0.2s ease;
}

.mode-btn:hover {
    background-color: #eef2ff;
    border-color: #6366f1;
}

.mode-btn.active {
    background-color: #4f46e5;
    color: white;
    border-color: #4f46e5;
}

/* Hidden utility */
.hidden {
    display: none;
}
