/* Notification System */
.notification-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 9999;
    max-width: 400px;
}

.notification {
    background: var(--bg-primary, #ffffff);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateX(400px);
    transition: transform 0.3s ease-out;
}

.notification.show {
    transform: translateX(0);
}

.notification-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.notification-message {
    flex: 1;
    color: var(--text-primary, #1f2937);
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary, #6b7280);
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.notification-close:hover {
    background: var(--bg-secondary, #f3f4f6);
    color: var(--text-primary, #1f2937);
}

.notification-success {
    border-color: #10b981;
    background: #f0fdf4;
}

.notification-success .notification-icon {
    color: #10b981;
}

.notification-error {
    border-color: #ef4444;
    background: #fef2f2;
}

.notification-error .notification-icon {
    color: #ef4444;
}

.notification-warning {
    border-color: #f59e0b;
    background: #fffbeb;
}

.notification-warning .notification-icon {
    color: #f59e0b;
}

.notification-info {
    border-color: #3b82f6;
    background: #eff6ff;
}

.notification-info .notification-icon {
    color: #3b82f6;
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
    .notification {
        background: #1f2937;
        border-color: #374151;
    }
    
    .notification-success {
        background: rgba(16, 185, 129, 0.1);
    }
    
    .notification-error {
        background: rgba(239, 68, 68, 0.1);
    }
    
    .notification-warning {
        background: rgba(245, 158, 11, 0.1);
    }
    
    .notification-info {
        background: rgba(59, 130, 246, 0.1);
    }
}

/* Password Strength Indicator */
.password-strength-indicator {
    margin-top: 0.5rem;
    padding: 1rem;
    background: var(--bg-secondary, #f9fafb);
    border-radius: 8px;
    border: 1px solid var(--border-color, #e5e7eb);
}

.strength-bar {
    height: 8px;
    background: var(--bg-tertiary, #e5e7eb);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.strength-fill {
    height: 100%;
    transition: width 0.3s ease, background-color 0.3s ease;
    border-radius: 4px;
}

.weak .strength-fill {
    background: #ef4444;
}

.fair .strength-fill {
    background: #f59e0b;
}

.good .strength-fill {
    background: #3b82f6;
}

.strong .strength-fill {
    background: #10b981;
}

.very-strong .strength-fill {
    background: #059669;
}

.strength-message {
    font-weight: 600;
    color: var(--text-primary, #1f2937);
    margin-bottom: 0.5rem;
}

.strength-details {
    margin-bottom: 0.5rem;
}

.strength-details .detail {
    font-size: 0.875rem;
    margin: 0.25rem 0;
    color: var(--text-secondary, #6b7280);
}

.strength-details .positive {
    color: #10b981;
}

.strength-details .suggestion {
    color: var(--text-secondary, #6b7280);
    font-style: italic;
}

.length-counter {
    font-size: 0.875rem;
    color: var(--text-secondary, #6b7280);
    text-align: right;
    margin-top: 0.5rem;
}

/* Confirm Dialog */
.confirm-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.confirm-dialog {
    background: var(--bg-primary, #ffffff);
    border-radius: 8px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.confirm-message {
    margin-bottom: 1.5rem;
    color: var(--text-primary, #1f2937);
}

.confirm-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .notification-container {
        left: 1rem;
        right: 1rem;
        top: 1rem;
        max-width: none;
    }
    
    .notification {
        transform: translateY(-100px);
    }
    
    .notification.show {
        transform: translateY(0);
    }
}