/* Lock Screen Overlay */
#lock-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    /* Fallback color */
    background-image: radial-gradient(circle at center, #1a1a1a, #000);
    z-index: 9999;
    /* Ensure it covers everything */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
}

#lock-screen.hidden {
    opacity: 0;
    transform: translateY(-100%);
    pointer-events: none;
}

.lock-content {
    text-align: center;
    /* Add a subtle glass effect */
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    max-width: 400px;
    width: 90%;
}

.lock-icon {
    margin-bottom: 2rem;
    opacity: 0.8;
}

.lock-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.lock-subtitle {
    font-size: 0.9rem;
    opacity: 0.6;
    margin-bottom: 2rem;
}

.lock-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lock-input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 12px 16px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
    text-align: center;
}

.lock-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.lock-input:focus {
    border-color: rgba(255, 255, 255, 0.6);
}

.lock-btn {
    background: white;
    color: black;
    border: none;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.1s, opacity 0.2s;
}

.lock-btn:hover {
    opacity: 0.9;
}

.lock-btn:active {
    transform: scale(0.98);
}

/* Shake Animation for Incorrect Password */
@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

.shake {
    animation: shake 0.5s cubic-bezier(.36, .07, .19, .97) both;
}

/* Scroll Lock Body Class */
body.locked {
    overflow: hidden;
}