.encryption-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 1rem;
}

.encryption-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.encryption-modal {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.encryption-modal-overlay.show .encryption-modal {
    transform: scale(1);
}

.encryption-modal-header {
    background: linear-gradient(135deg, #2fc4b2 0%, #289c8e 100%);
    padding: 1.5rem;
    text-align: center;
    color: white;
}

.encryption-modal-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    font-size: 1.75rem;
}

.encryption-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.encryption-modal-header p {
    margin: 0.5rem 0 0;
    opacity: 0.95;
    font-size: 0.875rem;
}

.encryption-modal-body {
    padding: 1.5rem;
}

.encryption-option {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.encryption-option:hover {
    border-color: #2fc4b2;
    background: #f8fafc;
}

.encryption-option.selected {
    border-color: #2fc4b2;
    background: #f0f7ff;
}

.encryption-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.encryption-option-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.encryption-option-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #2fc4b2 0%, #289c8e 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.encryption-option.no-encryption .encryption-option-icon {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

.encryption-option-content h4 {
    margin: 0 0 0.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1f2937;
}

.encryption-option-content p {
    margin: 0;
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.3;
}

.encryption-option .badge {
    display: inline-block;
    background: #2fc4b2;
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    font-weight: 600;
    margin-top: 0.4rem;
}

.password-input-wrapper {
    margin-top: 1rem;
    display: none;
}

.password-input-wrapper.show {
    display: block;
    animation: slideDown 0.3s ease;
}

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

.password-input-label {
    display: block;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.password-input-group {
    position: relative;
}

.password-input-group input {
    width: 100%;
    padding: 0.75rem 3rem 0.75rem 0.875rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.2s;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.03em;
}

.password-input-group input:focus {
    outline: none;
    border-color: #2fc4b2;
    box-shadow: 0 0 0 3px rgba(47, 196, 178, 0.1);
}

.password-toggle-btn {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0.25rem;
    transition: color 0.2s;
}

.password-toggle-btn:hover {
    color: #2fc4b2;
}

.password-strength {
    margin-top: 0.6rem;
    display: flex;
    gap: 0.4rem;
}

.password-strength-bar {
    flex: 1;
    height: 3px;
    background: #e5e7eb;
    border-radius: 2px;
    transition: background 0.3s;
}

.password-strength-bar.active.weak {
    background: #ef4444;
}

.password-strength-bar.active.medium {
    background: #f59e0b;
}

.password-strength-bar.active.strong {
    background: #2fc4b2;
}

.password-hint {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: #f9fafb;
    border-left: 3px solid #2fc4b2;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #4b5563;
    line-height: 1.4;
}

.password-hint i {
    color: #2fc4b2;
    margin-right: 0.4rem;
}

.encryption-modal-footer {
    padding: 1rem 1.5rem;
    background: #f9fafb;
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    border-top: 1px solid #e5e7eb;
}

.encryption-modal-footer button {
    padding: 0.65rem 1.25rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
}

.btn-cancel {
    background: white;
    color: #6b7280;
    border: 2px solid #e5e7eb;
}

.btn-cancel:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.btn-primary {
    background: linear-gradient(135deg, #2fc4b2 0%, #289c8e 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(47, 196, 178, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 4px 12px rgba(47, 196, 178, 0.4);
    transform: translateY(-1px);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.error-message {
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 640px) {
    .encryption-modal {
        max-width: 95%;
        margin: 1rem;
    }
    
    .encryption-modal-header {
        padding: 1.25rem 1rem;
    }
    
    .encryption-modal-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .encryption-modal-header h3 {
        font-size: 1.1rem;
    }
    
    .encryption-modal-header p {
        font-size: 0.8rem;
    }
    
    .encryption-modal-body {
        padding: 1rem;
    }
    
    .encryption-option {
        padding: 0.875rem;
    }
    
    .encryption-option-icon {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
    
    .encryption-option-content h4 {
        font-size: 0.875rem;
    }
    
    .encryption-option-content p {
        font-size: 0.75rem;
    }
    
    .password-input-group input {
        padding: 0.65rem 2.5rem 0.65rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .encryption-modal-footer {
        padding: 0.875rem 1rem;
        flex-direction: column;
    }
    
    .encryption-modal-footer button {
        width: 100%;
        padding: 0.75rem;
    }
}
