/**
 * Screen Lock Styles
 * Styles for the screen lock overlay and lock button
 */

/* Lock Button */
#screenLockButton {
    position: fixed;
    top: 5px;
    right: 5px;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

#screenLockButton:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

#screenLockButton:active {
    transform: scale(1.05);
}

/* Lock Screen Overlay */
.screen-lock-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    opacity: 0.98;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: none;
    user-select: none;
    -webkit-text-size-adjust: 100%;
    content-visibility: auto;
    contain: layout style paint;
}

.screen-lock-overlay[style*="display: none"] {
    content-visibility: hidden;
}

.screen-lock-content {
    text-align: center;
    color: white;
    touch-action: manipulation;
}

.screen-lock-icon {
    margin-bottom: 30px;
}

.screen-lock-title {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 600;
    color: white;
}

.screen-lock-form {
    max-width: 400px;
    margin: 0 auto;
}

.screen-lock-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #444;
    border-radius: 8px;
    background-color: #222;
    color: white;
    margin-bottom: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
    touch-action: manipulation;
}

.screen-lock-input:focus {
    outline: none;
    border-color: #007bff;
}

.screen-lock-input::placeholder {
    color: #999;
}

.screen-lock-button {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
    touch-action: manipulation;
}

.screen-lock-button:hover {
    background-color: #0056b3;
}

.screen-lock-button:active {
    background-color: #004494;
}

.screen-lock-error {
    color: #ff4444;
    margin-top: 12px;
    font-size: 14px;
    white-space: nowrap;
    overflow: visible;
    max-width: 100%;
}

