/**
 * Folder Lock Dialog Styles
 *
 * Styles for the folder lock dialog overlay and password form.
 */

.lens-lock-dialog {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 160010;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ensure lock dialog appears above share dialog */
.lens-lock-dialog.lens-from-share {
    z-index: 10000020 !important; /* Higher than share dialog (10000001) */
}

.lens-lock-dialog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.lens-lock-dialog-content {
    position: relative;
    background: var(--lens-background, #ffffff);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12), 0 6px 10px rgba(0, 0, 0, 0.08);
    width: 90%;
    max-width: 380px;
    animation: lens-lock-dialog-appear 0.2s ease-out;
}

@keyframes lens-lock-dialog-appear {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Dialog Header */
.lens-lock-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--lens-border, #e0e0e0);
}

.lens-lock-dialog-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--lens-text, #1d2327);
}

.lens-lock-dialog-close {
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    color: var(--lens-text-secondary, #6c757d);
    transition: var(--lens-transition, all 0.2s ease);
    border-radius: 6px;
    position: relative; /* Required for tooltip positioning */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.lens-lock-dialog-close:hover {
    background: var(--lens-hover-bg, #f7f8fa);
    color: var(--lens-text, #1d2327);
}

.lens-lock-dialog-close .dashicons {
    width: 20px;
    height: 20px;
    font-size: 20px;
}

/* SVG icon for close button - matching share dialog */
.lens-lock-dialog-close svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
    display: block; /* Ensure proper rendering */
}

/* Dialog Body */
.lens-lock-dialog-body {
    padding: 16px;
}

.lens-lock-dialog-message {
    margin-bottom: 14px;
    color: var(--lens-text-secondary, #6c757d);
    font-size: 13px;
    line-height: 1.4;
}

/* Form Fields */
.lens-lock-form {
    margin: 0;
}

.lens-lock-field {
    margin-bottom: 12px;
}

.lens-lock-field:last-child {
    margin-bottom: 0;
}

.lens-lock-field label {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 500;
    color: var(--lens-text, #1d2327);
}

/* Password Input Wrapper */
.lens-lock-password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.lens-lock-password-input {
    flex: 1;
    padding: 6px 36px 6px 10px;
    border: 1px solid var(--lens-border, #e0e0e0);
    border-radius: 4px;
    font-size: 13px;
    background: var(--lens-background, #ffffff);
    transition: var(--lens-transition, all 0.2s ease);
    height: 32px;
    width: 100%;
}

.lens-lock-password-input:focus {
    outline: none;
    border-color: var(--lens-primary, #2271b1);
    box-shadow: 0 0 0 1px var(--lens-primary, #2271b1);
}

.lens-lock-password-input::placeholder {
    color: #a0a0a0;
}

/* Password Toggle Button */
.lens-lock-password-toggle {
    position: absolute;
    right: 6px;
    background: none;
    border: none;
    padding: 3px;
    cursor: pointer;
    color: var(--lens-text-secondary, #6c757d);
    transition: var(--lens-transition, all 0.2s ease);
    border-radius: 4px;
}

.lens-lock-password-toggle:hover {
    background: var(--lens-hover-bg, #f7f8fa);
    color: var(--lens-text, #1d2327);
}

.lens-lock-password-toggle .dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
}

/* Password Strength Indicator */
.lens-lock-password-strength {
    margin-top: 8px;
}

.lens-lock-password-strength-bar {
    height: 4px;
    background: #f0f0f0;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 6px;
}

.lens-lock-password-strength-fill {
    height: 100%;
    width: 0;
    transition: width 0.3s ease, background-color 0.3s ease;
    border-radius: 2px;
}

.lens-lock-password-strength-text {
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
}

/* Error Message */
.lens-lock-error {
    margin-top: 12px;
    padding: 8px 12px;
    background: var(--lens-danger-light, #ffebee);
    color: var(--lens-danger, #d63638);
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.4;
}

/* Dialog Footer */
.lens-lock-dialog-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--lens-border, #e0e0e0);
    background: #f9f9f9;
    border-radius: 0 0 8px 8px;
}

.lens-lock-dialog-footer .button {
    min-width: 85px;
    height: 32px;
    font-size: 13px;
    font-weight: 500;
    padding: 0 14px;
    transition: var(--lens-transition, all 0.2s ease);
}

/* Back button styling */
.lens-lock-back {
    margin-right: auto;
    background: transparent;
    border: 1px solid var(--lens-border, #e0e0e0);
    color: var(--lens-text-secondary, #6c757d);
}

.lens-lock-back:hover {
    background: var(--lens-hover-bg, #f7f8fa);
    border-color: #c3c4c7;
    color: var(--lens-text, #1d2327);
}

.lens-lock-cancel {
    background: var(--lens-background, #ffffff);
    border: 1px solid var(--lens-border, #e0e0e0);
    color: var(--lens-text, #1d2327);
}

.lens-lock-cancel:hover {
    background: var(--lens-hover-bg, #f7f8fa);
    border-color: #c3c4c7;
}

.lens-lock-submit {
    background: var(--lens-primary, #2271b1);
    border-color: var(--lens-primary, #2271b1);
    color: #ffffff;
}

.lens-lock-submit:hover:not(:disabled) {
    background: var(--lens-primary-hover, #135e96);
    border-color: var(--lens-primary-hover, #135e96);
}

.lens-lock-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Forgot password wrapper and link */
.lens-lock-forgot-wrapper {
    text-align: right;
    margin-top: 8px;
    margin-bottom: -5px;
}

.lens-lock-forgot-password {
    font-size: 12px;
    color: var(--lens-primary, #2271b1);
    text-decoration: none;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.lens-lock-forgot-password:hover {
    opacity: 1;
    text-decoration: underline;
}

.lens-lock-forgot-password:focus {
    outline: none !important;
    box-shadow: none !important;
    opacity: 1;
    text-decoration: underline;
}

.lens-lock-forgot-password:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

/* Recovery dialog styles */
.lens-recovery-confirm-dialog .lens-lock-dialog-content,
.lens-recovery-sent-dialog .lens-lock-dialog-content,
.lens-recovery-owner-dialog .lens-lock-dialog-content {
    max-width: 400px;
    margin: 50px auto;
    position: relative;
    z-index: 100001;
}

/* Recovery dialog body styling */
.lens-recovery-body {
    text-align: center;
    padding: 20px 10px;
}

/* Recovery icon wrapper - matches share dialog */
.lens-recovery-icon-wrapper {
    margin: 0 auto 12px;
    width: 44px;
    height: 44px;
    animation: recoveryIconFadeIn 0.3s ease-out;
}

/* Recovery icon SVG styling */
.lens-recovery-icon {
    width: 44px;
    height: 44px;
    color: var(--lens-primary, #2271b1);
}

/* Success animation - matching share dialog */
.lens-recovery-icon-wrapper.lens-success-animation {
    animation: recoverySuccessFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Warning icon variant */
.lens-recovery-icon.lens-warning-icon {
    color: #dba617;
}

.lens-recovery-main-text {
    font-size: 14px;
    color: var(--lens-text, #1d2327);
    margin-bottom: 20px;
    line-height: 1.5;
}

.lens-recovery-email-display {
    display: inline-block;
    padding: 12px 24px;
    background: #f0f0f1;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
}

.lens-recovery-email-display strong {
    color: var(--lens-text, #1d2327);
}

.lens-recovery-details {
    margin-top: 10px;
}

.lens-recovery-folder-info {
    font-size: 12px;
    color: var(--lens-text-secondary, #6c757d);
}

.lens-recovery-folder-info strong {
    color: var(--lens-text, #1d2327);
}

/* Old style - keep for backward compatibility */
.lens-recovery-email-info {
    margin-top: 12px;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 4px;
    font-size: 13px;
}

/* Success icon for sent dialog */
.lens-recovery-success-icon {
    margin-bottom: 15px;
}

.lens-recovery-success-icon .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #46b450;
    background: #eeffee;
    border-radius: 50%;
    padding: 8px;
}

/* Warning/Info icon for not owner dialog */
.lens-recovery-warning-icon {
    margin-bottom: 15px;
}

.lens-recovery-warning-icon .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #d63638;
    background: #ffebee;
    border-radius: 50%;
    padding: 8px;
}

/* Owner info styling */
.lens-recovery-owner-info {
    padding: 10px 16px;
    background: #f0f0f1;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 13px;
}

.lens-recovery-owner-info p {
    margin: 0;
    color: var(--lens-text-secondary, #6c757d);
}

.lens-recovery-owner-info strong {
    color: var(--lens-text, #1d2327);
}

.lens-recovery-note {
    font-size: 12px;
    color: var(--lens-text-secondary, #6c757d);
    margin-top: 5px;
}

.lens-recovery-clarification {
    font-size: 11px;
    color: var(--lens-text-secondary, #787c82);
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    line-height: 1.4;
}

/* Old success style - keep for compatibility */
.lens-recovery-success {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #46b450;
    font-weight: 500;
    margin-bottom: 12px;
}

/* Lock Icon Overlay for Folders */
.lens-folder-item.is-locked .lens-folder-icon-wrapper {
    position: relative;
}

.lens-folder-lock-icon {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    background: var(--lens-background, #ffffff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.lens-folder-lock-icon .dashicons {
    width: 10px;
    height: 10px;
    font-size: 10px;
    color: var(--lens-text-secondary, #6c757d) !important; /* Prevent color inheritance */
}

/* Colored folders should have white background with colored icon */
.lens-folder-icon[style*="color"] + .lens-folder-lock-icon,
.lens-folder-icon[style*="color"] .lens-folder-lock-icon {
    background: var(--lens-background, #ffffff);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.lens-folder-icon[style*="color"] + .lens-folder-lock-icon .dashicons,
.lens-folder-icon[style*="color"] .lens-folder-lock-icon .dashicons {
    color: currentColor !important; /* Use the folder's color for the icon */
}

/* Locked folder hover state */
.lens-folder-item.is-locked:hover .lens-folder-lock-icon {
    background: var(--lens-primary, #2271b1);
}

.lens-folder-item.is-locked:hover .lens-folder-lock-icon .dashicons {
    color: #ffffff !important;
}

/* Hover state for colored folders - use folder color as background */
.lens-folder-item.is-locked:hover .lens-folder-icon[style*="color"] .lens-folder-lock-icon {
    background: currentColor; /* Uses the folder's color */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* Keep same shadow as normal */
}

.lens-folder-item.is-locked:hover .lens-folder-icon[style*="color"] .lens-folder-lock-icon .dashicons {
    color: #ffffff !important; /* White icon on hover */
}

/* Explorer view lock icon */
.lens-explorer-item.is-locked .lens-explorer-icon {
    position: relative;
}

.lens-explorer-item.is-locked .lens-folder-lock-icon {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 16px;
    height: 16px;
}

.lens-explorer-item.is-locked .lens-folder-lock-icon .dashicons {
    width: 12px;
    height: 12px;
    font-size: 12px;
    color: var(--lens-text-secondary, #6c757d) !important;
}

/* Special styling for colored folders in explorer view - white background with colored icon */
.lens-explorer-icon[style*="color"] .lens-folder-lock-icon {
    background: var(--lens-background, #ffffff);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.lens-explorer-icon[style*="color"] .lens-folder-lock-icon .dashicons {
    color: currentColor !important; /* Use the folder's color for the icon */
}

/* Hover state for colored folders in explorer view */
.lens-explorer-item.is-locked:hover .lens-explorer-icon[style*="color"] .lens-folder-lock-icon {
    background: currentColor; /* Uses the folder's color */
}

.lens-explorer-item.is-locked:hover .lens-explorer-icon[style*="color"] .lens-folder-lock-icon .dashicons {
    color: #ffffff !important; /* White icon on hover */
}

/* Inherited Lock Styles - Visual distinction from direct locks */
.lens-folder-item.is-locked-inherited .lens-folder-lock-icon,
.lens-explorer-item.is-locked-inherited .lens-folder-lock-icon {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--lens-border, #dcdcde);
    opacity: 0.85;
}

.lens-folder-item.is-locked-inherited .lens-folder-lock-icon .dashicons,
.lens-explorer-item.is-locked-inherited .lens-folder-lock-icon .dashicons {
    color: var(--lens-text-muted, #8c8f94);
    opacity: 0.9;
}

/* Inherited lock hover state - lighter than direct lock */
.lens-folder-item.is-locked-inherited:hover .lens-folder-lock-icon,
.lens-explorer-item.is-locked-inherited:hover .lens-folder-lock-icon {
    background: var(--lens-background-secondary, #f0f0f1);
    border-color: var(--lens-primary, #2271b1);
    opacity: 1;
}

.lens-folder-item.is-locked-inherited:hover .lens-folder-lock-icon .dashicons,
.lens-explorer-item.is-locked-inherited:hover .lens-folder-lock-icon .dashicons {
    color: var(--lens-primary, #2271b1);
}

/* Unlocked session state - maintains exact same styling as locked */
.lens-folder-lock-icon.lens-unlocked-session {
    /* Inherits all styles from .lens-folder-lock-icon */
    /* Only the icon changes, not the styling */
}

/* Subtle unlock animation */
.lens-folder-lock-icon.animating-unlock {
    animation: subtle-unlock 0.25s ease-out;
}

@keyframes subtle-unlock {
    0% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-8deg);
    }
    75% {
        transform: rotate(3deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

/* Hover state for unlocked folders - same as locked folders */
.lens-folder-item.is-unlocked-session:hover .lens-folder-lock-icon {
    background: var(--lens-primary, #2271b1);
}

.lens-folder-item.is-unlocked-session:hover .lens-folder-lock-icon .dashicons {
    color: #ffffff !important;
}

/* Hover state for colored folders when unlocked */
.lens-folder-item.is-unlocked-session:hover .lens-folder-icon[style*="color"] .lens-folder-lock-icon {
    background: currentColor; /* Uses the folder's color */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.lens-folder-item.is-unlocked-session:hover .lens-folder-icon[style*="color"] .lens-folder-lock-icon .dashicons {
    color: #ffffff !important;
}

/* Explorer view unlocked - same hover behavior */
.lens-explorer-item.is-unlocked-session:hover .lens-folder-lock-icon {
    background: var(--lens-primary, #2271b1);
}

.lens-explorer-item.is-unlocked-session:hover .lens-folder-lock-icon .dashicons {
    color: #ffffff !important;
}

/* Explorer colored folders when unlocked */
.lens-explorer-item.is-unlocked-session:hover .lens-explorer-icon[style*="color"] .lens-folder-lock-icon {
    background: currentColor;
}

.lens-explorer-item.is-unlocked-session:hover .lens-explorer-icon[style*="color"] .lens-folder-lock-icon .dashicons {
    color: #ffffff !important;
}

/* Tooltip for inherited locks */
.lens-folder-lock-icon[data-tooltip]:before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 5px;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 11px;
    white-space: nowrap;
    border-radius: 3px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.lens-folder-lock-icon[data-tooltip]:hover:before {
    opacity: 1;
}

/* Lock settings dialog */
.lens-lock-settings-dialog {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 160010;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lens-lock-settings-content {
    position: relative;
    background: var(--lens-background, #ffffff);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12), 0 6px 10px rgba(0, 0, 0, 0.08);
    width: 90%;
    max-width: 420px;
    animation: lens-lock-dialog-appear 0.2s ease-out;
}

.lens-lock-settings-body {
    padding: 0;
}

.lens-lock-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: #f9fafb;
    border-bottom: 1px solid var(--lens-border, #e0e0e0);
    color: var(--lens-text-secondary, #6c757d);
    font-size: 13px;
}

.lens-lock-status .dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
    color: #50575e;
    flex-shrink: 0;
}

/* Folder name styling */
.lens-lock-folder-name {
    color: var(--lens-text, #1d2327);
    font-weight: 600;
    max-width: 200px;
    display: inline-block;
    vertical-align: bottom;
}

.lens-lock-folder-name span {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lens-lock-settings-options {
    padding: 8px 0;
}

.lens-lock-settings-option {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px 16px;
    background: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.15s ease;
    text-align: left;
}

.lens-lock-settings-option:hover {
    background: #f7f8fa;
}

.lens-lock-option-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #f0f0f1;
    border-radius: 6px;
    margin-right: 12px;
}

.lens-lock-option-icon .dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
    color: #50575e;
}

.lens-lock-option-content {
    flex: 1;
}

.lens-lock-option-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--lens-text, #1d2327);
    margin-bottom: 2px;
}

.lens-lock-option-desc {
    font-size: 12px;
    color: var(--lens-text-secondary, #6c757d);
}

.lens-lock-option-arrow {
    margin-left: auto;
    color: #a0a0a0;
}

.lens-lock-option-arrow .dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
}

.lens-lock-settings-dialog .lens-lock-dialog-footer {
    padding: 12px 16px;
    justify-content: center;
}

.lens-lock-settings-close {
    min-width: 100px;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .lens-lock-dialog-content,
    .lens-lock-settings-content {
        width: 95%;
        max-width: none;
        margin: 0 10px;
    }

    .lens-lock-dialog-body {
        padding: 16px;
    }

    .lens-lock-dialog-footer {
        padding: 12px 16px;
    }
}
/* Full Protection Checkbox Styles */
.lens-lock-protection-option {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e5e5;
}

.lens-lock-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    margin-bottom: 12px;
}

.lens-lock-checkbox {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
}

.lens-lock-checkbox-text {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: var(--lens-text-primary, #2c3338);
    display: flex;
    align-items: center;
    gap: 6px;
}

.lens-lock-protection-info {
    color: var(--lens-text-secondary, #787c82);
    font-size: 16px;
    cursor: help;
}

.lens-lock-protection-hint {
    background: var(--lens-background-secondary, #f6f7f7);
    border-radius: 6px;
    padding: 12px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--lens-text-secondary, #50575e);
}

.lens-lock-protection-hint strong {
    color: var(--lens-text-primary, #2c3338);
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
}

.lens-lock-protection-checked,
.lens-lock-protection-unchecked {
    animation: fadeIn 0.2s ease-in-out;
}

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

/* Responsive adjustments */
@media (max-width: 480px) {
    .lens-lock-protection-hint {
        font-size: 11px;
        padding: 10px;
    }

    .lens-lock-checkbox-text {
        font-size: 13px;
    }
}

/* ===================================
   Media Visibility Toggle - Professional UI
   =================================== */

.lens-lock-advanced-toggle {
    margin-top: 16px;
    padding-top: 8px;
}

.lens-lock-advanced-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    padding: 0;
    color: var(--lens-text-secondary, #646970);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.15s ease;
}

.lens-lock-advanced-btn:hover {
    color: var(--lens-text-primary, #1e1e1e);
}

.lens-lock-advanced-btn:focus {
    outline: none;
}

.lens-lock-advanced-btn .dashicons {
    font-size: 12px;
    width: 12px;
    height: 12px;
    line-height: 1;
    transition: transform 0.2s ease;
}

/* Media Visibility Panel */
.lens-lock-advanced-panel {
    margin-top: 12px;
}

/* Media Visibility Setting Container */
.lens-lock-protection-setting {
    background: #f8f9fa;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 6px;
    padding: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: all 0.15s ease;
}

.lens-lock-protection-setting:hover {
    background: #f5f6f7;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.lens-lock-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.lens-lock-toggle-label {
    font-size: 13px;
    color: var(--lens-text-primary, #1e1e1e);
    flex: 1;
}

/* Professional Toggle Switch - Smaller Size */
.lens-lock-toggle-switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
    flex-shrink: 0;
}

.lens-lock-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.lens-lock-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #c3c4c7;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 10px;
}

.lens-lock-toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.lens-lock-toggle-switch input:checked + .lens-lock-toggle-slider {
    background-color: #2271b1;
}

.lens-lock-toggle-switch input:checked + .lens-lock-toggle-slider:before {
    transform: translateX(16px);
}

.lens-lock-toggle-switch input:focus + .lens-lock-toggle-slider {
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.15);
}

/* Help Text - Always Visible */
.lens-lock-toggle-help {
    margin-top: 10px;
    padding-left: 0;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.lens-lock-help-list {
    font-size: 11px;
    line-height: 1.5;
    color: var(--lens-text-muted, #8c8f94);
    margin: 0;
    padding: 0;
    list-style: none;
}

.lens-lock-help-list li {
    position: relative;
    padding-left: 14px;
    margin: 3px 0;
}

.lens-lock-help-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--lens-text-muted, #8c8f94);
}

.lens-lock-help-on,
.lens-lock-help-off {
    margin: 0;
}

/* Smooth animations */
.lens-lock-advanced-panel {
    animation: slideDown 0.2s ease-out;
}

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

/* Responsive for new toggle */
@media (max-width: 480px) {
    .lens-lock-toggle-row {
        gap: 8px;
    }

    .lens-lock-toggle-label {
        font-size: 13px;
    }

    .lens-lock-toggle-switch {
        width: 34px;
        height: 18px;
    }

    .lens-lock-toggle-slider:before {
        height: 14px;
        width: 14px;
    }

    .lens-lock-toggle-switch input:checked + .lens-lock-toggle-slider:before {
        transform: translateX(16px);
    }
}


/* Icon animations for recovery dialogs - matching share dialog */
@keyframes recoveryIconFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes recoverySuccessFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.8) rotate(-5deg);
    }
    50% {
        transform: scale(1.05) rotate(1deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}


/* Password Reset Dialog Styles - Consistent with design system */
.lens-reset-success-content {
    text-align: center;
    padding: 32px 20px;
}

/* Reset icon wrapper - matches recovery dialogs */
.lens-reset-icon-wrapper {
    margin: 0 auto 16px;
    width: 52px;
    height: 52px;
    animation: resetIconFadeIn 0.3s ease-out;
}

/* Reset icon SVG styling */
.lens-reset-icon {
    width: 52px;
    height: 52px;
    color: var(--lens-primary, #2271b1);
}

/* Success animation for reset dialog */
.lens-reset-icon-wrapper.lens-success-animation {
    animation: resetSuccessPulse 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset success title */
.lens-reset-success-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--lens-text, #1d2327);
    margin: 0 0 8px 0;
    line-height: 1.3;
}

/* Reset success message */
.lens-reset-success-message {
    font-size: 14px;
    color: var(--lens-text-secondary, #646970);
    margin: 0;
    line-height: 1.5;
}

/* Password reset dialog specific animations */
@keyframes resetIconFadeIn {
    from {
        opacity: 0;
        transform: scale(0.7);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes resetSuccessPulse {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(-10deg);
    }
    40% {
        transform: scale(1.1) rotate(3deg);
    }
    60% {
        transform: scale(0.95) rotate(-1deg);
    }
    80% {
        transform: scale(1.02) rotate(0);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

/* Ensure OK button styling matches */
.lens-password-reset-dialog .lens-reset-ok {
    min-width: 80px;
    font-weight: 500;
}


/* Reset form icon at the top of the form */
.lens-reset-form-icon-wrapper {
    margin: 0 auto 16px;
    width: 44px;
    height: 44px;
    animation: formIconFadeIn 0.3s ease-out;
    text-align: center;
}

.lens-reset-form-icon {
    width: 44px;
    height: 44px;
    color: var(--lens-primary, #2271b1);
    opacity: 0.9;
}

@keyframes formIconFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-10px);
    }
    to {
        opacity: 0.9;
        transform: scale(1) translateY(0);
    }
}

/* Better spacing for password reset form */
.lens-password-reset-dialog .lens-lock-dialog-body {
    text-align: center;
}

.lens-password-reset-dialog .lens-lock-dialog-message {
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--lens-text-secondary, #646970);
}

.lens-password-reset-dialog .lens-lock-field {
    text-align: left;
    margin-bottom: 16px;
}


/* Token Error Dialog Styles */
.lens-error-body {
    text-align: center;
    padding: 32px 20px;
}

/* Error icon wrapper */
.lens-error-icon-wrapper {
    margin: 0 auto 20px;
    width: 52px;
    height: 52px;
    animation: errorIconFadeIn 0.3s ease-out;
}

/* Error icon SVG styling */
.lens-error-icon {
    width: 52px;
    height: 52px;
    color: var(--lens-primary, #2271b1);
}

/* Info variant - blue/primary color */
.lens-error-icon.lens-info-icon {
    color: var(--lens-primary, #2271b1);
}

/* Warning variant */
.lens-error-icon.lens-warning-icon {
    color: #dba617;
}

/* Error color variant */
.lens-error-icon.lens-error-color {
    color: #dc3232;
}

/* Error message text */
.lens-error-message {
    font-size: 14px;
    color: var(--lens-text-secondary, #646970);
    line-height: 1.5;
    margin: 0 0 16px 0;
}

/* Folder info */
.lens-error-folder-info {
    font-size: 13px;
    color: var(--lens-text-secondary, #646970);
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--lens-border, #e0e0e0);
}

.lens-error-folder-info strong {
    color: var(--lens-text, #1d2327);
}

/* Error icon fade-in animation */
@keyframes errorIconFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Request new link button styling */
.lens-token-error-dialog .lens-request-new {
    margin-right: 8px;
}

/* Ensure proper button alignment */
.lens-token-error-dialog .lens-lock-dialog-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}


/* Request Access Button Styling */
.lens-request-access {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center;
    margin-right: 8px;
    padding: 0 12px !important;
    line-height: 1 !important;
}

.lens-request-access .lens-button-icon {
    margin-right: 6px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    vertical-align: middle;
    position: relative;
    top: 0px;
}

.lens-request-access span {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

/* Loading state for request access */
.lens-request-access:disabled {
    opacity: 0.7;
    cursor: default;
}

/* Access sent dialog specific styles */
.lens-access-sent-dialog .lens-lock-dialog-body {
    text-align: center;
    padding: 32px 20px;
}


/* Request Message Dialog Styles */
.lens-request-message-dialog .lens-lock-dialog-body {
    padding: 24px;
}

.lens-request-message-intro {
    font-size: 14px;
    color: var(--lens-text, #1d2327);
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.lens-request-message-intro strong {
    color: var(--lens-text, #1d2327);
    font-weight: 600;
}

.lens-request-message-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--lens-border, #c3c4c7);
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    min-height: 80px;
    max-height: 200px;
    font-family: inherit;
}

.lens-request-message-input:focus {
    border-color: var(--lens-primary, #2271b1);
    outline: none;
    box-shadow: 0 0 0 1px var(--lens-primary, #2271b1);
}

.lens-message-hint {
    font-size: 12px;
    color: var(--lens-text-secondary, #646970);
    margin-top: 6px;
    font-style: italic;
}

/* Ensure proper button spacing in message dialog */
.lens-request-message-dialog .lens-lock-dialog-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}
