/**
 * Password Locker CSS
 */

/* Container styles */
.lockerco-container.password-locker {
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.lockerco-icon {
    font-size: 24px;
    margin-bottom: 10px;
    color: #666;
}

.lockerco-message {
    margin-bottom: 15px;
    font-size: 16px;
}

.lockerco-button {
    background-color: #0073aa;
    color: #fff;
    border: none;
    padding: 8px 20px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 3px;
    transition: background-color 0.3s;
}

.lockerco-button:hover {
    background-color: #005177;
}

/* Modal styles */
.lockerco-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    max-width:100%;
}

.lockerco-modal-content {
    position: relative;
    background-color: #fff;
    margin: 10% auto;
    padding: 0;
    border-radius: 4px;
    width: 400px;
    max-width: 90%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    animation: modalFadeIn 0.3s;
}

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

.lockerco-close {
    position: absolute;
    right: 15px;
    top: 10px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.lockerco-close:hover,
.lockerco-close:focus {
    color: #333;
    text-decoration: none;
}

.lockerco-modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.lockerco-modal-header h3 {
    margin: 0;
    font-size: 18px;
}

.lockerco-modal-body {
    padding: 20px;
}

.lockerco-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #e0e0e0;
    text-align: right;
}

.lockerco-password-input {
    width: 90%;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    font-size: 14px;
    margin-bottom: 15px;
}

.lockerco-error-message {
    color: #d32f2f;
    font-size: 14px;
}

.lockerco-warning-message {
    color: #d32f2f;
    font-size: 14px;
}

/* Loader styles */
.lockerco-loader {
    text-align: center;
    padding: 10px 0;
}

.lockerco-spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid rgba(0, 115, 170, 0.2);
    border-radius: 50%;
    border-top-color: #0073aa;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive styles */
@media (max-width: 600px) {
    .lockerco-modal-content {
        margin: 20% auto;
        width: 90%;
    }
}

/**
 * Password Locker Modal - Professional CSS
 * This provides styling for the password protection modal
 */

/* Modal backdrop and container */
.lockerco-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lockerco-modal.active {
    opacity: 1;
    visibility: visible;
}

/* Modal content container */
.lockerco-modal-content {
    position: relative;
    background-color: #ffffff;
    width: 400px;
    max-width: 90%;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    animation: modalSlideIn 0.3s forwards;
}

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

/* Close button */
.lockerco-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    color: #888;
    cursor: pointer;
    line-height: 1;
    z-index: 2;
    transition: color 0.2s ease;
}

.lockerco-close:hover {
    color: #333;
}

/* Modal header */
.lockerco-modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #eaeaea;
    background-color: #f9f9f9;
}

.lockerco-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

/* Modal body */
.lockerco-modal-body {
    padding: 25px;
}

.lockerco-modal-message {
    margin: 0 0 20px;
    font-size: 15px;
    color: #555;
    line-height: 1.5;
}

/* Password input styling */
.lockerco-password-input {
    width: 90%;
    padding: 12px 15px;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lockerco-password-input:focus {
    border-color: #4f94d4;
    box-shadow: 0 0 0 1px rgba(79, 148, 212, 0.25), inset 0 1px 2px rgba(0,0,0,0.05);
    outline: none;
}

/* Modal footer */
.lockerco-modal-footer {
    padding: 15px 25px 20px;
    text-align: right;
    background-color: #f9f9f9;
    border-top: 1px solid #eaeaea;
}

/* Submit button styling */
.lockerco-submit-button {
    background-color: #2271b1;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.lockerco-submit-button:hover {
    background-color: #135e96;
}

.lockerco-submit-button:focus {
    background-color: #135e96;
    box-shadow: 0 0 0 1px #fff, 0 0 0 3px #2271b1;
    outline: none;
}

.lockerco-submit-button:disabled {
    background-color: #a7aaad;
    cursor: not-allowed;
}

/* Loader styling */
.lockerco-loader {
    text-align: center;
    padding: 15px 0;
}

.lockerco-spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid rgba(34, 113, 177, 0.2);
    border-radius: 50%;
    border-top-color: #2271b1;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media screen and (max-width: 600px) {
    .lockerco-modal-content {
        width: 90%;
    }
    
    .lockerco-modal-header,
    .lockerco-modal-body,
    .lockerco-modal-footer {
        padding: 15px 20px;
    }
    
    .lockerco-modal-header h3 {
        font-size: 16px;
    }
    
    .lockerco-modal-message {
        font-size: 14px;
    }
    
    .lockerco-password-input {
        padding: 10px 12px;
    }
    
    .lockerco-submit-button {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* Additional styles for the lock button on the main page */
.lockerco-container.password-locker {
    background-color: #f0f0f1;
    border: 1px solid #dcdcde;
    border-radius: 5px;
    padding: 30px 25px;
    margin: 20px 0;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.lockerco-icon {
    font-size: 36px;
    margin-bottom: 15px;
    color: #2271b1;
}

.lockerco-message {
    font-size: 16px;
    color: #3c434a;
    margin-bottom: 20px;
    line-height: 1.5;
}

.lockerco-button.lockerco-unlock-button {
    display: inline-block;
    background-color: #2271b1;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lockerco-button.lockerco-unlock-button:hover {
    background-color: #135e96;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Animation for modal showing/hiding */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lockerco-modal.fade-in {
    animation: fadeIn 0.3s forwards;
}

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

.lockerco-modal.fade-out {
    animation: fadeOut 0.3s forwards;
}

/* Focus styles for accessibility */
.lockerco-password-input:focus,
.lockerco-submit-button:focus,
.lockerco-close:focus {
    outline: 2px solid #2271b1;
    outline-offset: 1px;
}