/* passcode_popup.css */
.passcode-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.passcode-popup {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 320px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.passcode-header {
    background: #2969ED;
    color: white;
    padding: 15px 20px;
    text-align: center;
    position: relative;
}

.passcode-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.close-passcode-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    font-weight: 300;
}

.close-passcode-popup:hover {
    background: rgba(255, 255, 255, 0.3);
}

.passcode-body {
    padding: 20px;
}

.passcode-form-group {
    margin-bottom: 15px;
}

.passcode-form-group label {
    display: block;
    color: #333;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.9rem;
    text-align: center;
}

.passcode-input {
    width: 100%;
    padding: 12px 15px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    text-align: center;
    transition: all 0.2s;
    background: white;
}

.passcode-input:focus {
    outline: none;
    border-color: #2969ED;
    box-shadow: 0 0 0 2px rgba(41, 105, 237, 0.1);
}

.passcode-input::placeholder {
    color: #999;
    font-weight: normal;
}

.passcode-guide {
    font-size: 0.75rem;
    color: #666;
    margin-top: 10px;
    text-align: center;
    line-height: 1.4;
}

.whatsapp-link {
    color: #2969ED;
    text-decoration: none;
    font-weight: 600;
}

.whatsapp-link:hover {
    text-decoration: underline;
}

.passcode-error {
    color: #e53e3e;
    font-size: 0.8rem;
    margin-top: 10px;
    display: none;
    text-align: center;
    font-weight: 500;
    background: #fed7d7;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #fc8181;
}

.passcode-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.passcode-btn {
    flex: 1;
    padding: 10px 12px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.passcode-back {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.passcode-back:hover {
    background: #e2e8f0;
}

.passcode-join {
    background: #2969ED;
    color: white;
}

.passcode-join:hover {
    background: #2969ED;
    opacity: 0.9;
}

.passcode-join:disabled {
    background: #ccc;
    cursor: not-allowed;
}