/* Overlay and popup styles */
.spp-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spp-popup {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.spp-popup-content {
    padding: 30px;
    text-align: center;
}

.spp-popup-content h2 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

.spp-popup-content p {
    margin: 0 0 25px 0;
    color: #666;
    line-height: 1.5;
}

.spp-popup-content input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    margin-bottom: 20px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.spp-popup-content input[type="password"]:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

.spp-popup-content button {
    background: #007cba;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    min-width: 100px;
}

.spp-popup-content button:hover {
    background: #005a87;
}

.spp-popup-content button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.spp-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
}

.spp-message .error {
    color: #d63638;
    background: #fcf0f1;
    padding: 8px 12px;
    border-radius: 4px;
    display: inline-block;
}

.spp-message .success {
    color: #00a32a;
    background: #f0f6fc;
    padding: 8px 12px;
    border-radius: 4px;
    display: inline-block;
}

/* Prevent text selection on protected pages */
.spp-protected-page {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    .spp-popup-content {
        padding: 20px;
    }
    
    .spp-popup-content h2 {
        font-size: 20px;
    }
    
    .spp-popup {
        margin: 20px;
    }
}

/* Admin styles */
.spp-admin-notice {
    padding: 12px;
    margin: 5px 0 15px;
    background: #fff;
    border-left: 4px solid #007cba;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}