.password-strength {
    transition: all 0.3s ease;
}

.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.5s;
}

/* Custom slider thumb styling for larger cursor */
#password-length::-webkit-slider-thumb {
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    border: 3px solid #1e40af;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
    transition: all 0.2s ease;
}

#password-length::-webkit-slider-thumb:hover {
    background: #2563eb;
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0,0,0,0.5);
}

#password-length::-moz-range-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    border: 3px solid #1e40af;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
    transition: all 0.2s ease;
}

#password-length::-moz-range-thumb:hover {
    background: #2563eb;
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0,0,0,0.5);
}

/* Modern Scrollbar Styles */
/* Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1f2937;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #3b82f6, #1d4ed8);
    border-radius: 10px;
    border: 1px solid #374151;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #2563eb, #1e40af);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

::-webkit-scrollbar-thumb:active {
    background: linear-gradient(180deg, #1d4ed8, #1e3a8a);
}

::-webkit-scrollbar-corner {
    background: #1f2937;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #3b82f6 #1f2937;
}

/* Modal specific scrollbar styling */
#about-modal .overflow-y-auto,
#settings-modal .overflow-y-auto {
    scrollbar-width: thin;
    scrollbar-color: #3b82f6 #1f2937;
}

#about-modal .overflow-y-auto::-webkit-scrollbar,
#settings-modal .overflow-y-auto::-webkit-scrollbar {
    width: 6px;
}

#about-modal .overflow-y-auto::-webkit-scrollbar-track,
#settings-modal .overflow-y-auto::-webkit-scrollbar-track {
    background: #374151;
    border-radius: 6px;
}

#about-modal .overflow-y-auto::-webkit-scrollbar-thumb,
#settings-modal .overflow-y-auto::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #6366f1, #4f46e5);
    border-radius: 6px;
    border: 1px solid #4b5563;
}

#about-modal .overflow-y-auto::-webkit-scrollbar-thumb:hover,
#settings-modal .overflow-y-auto::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #5b21b6, #7c3aed);
    box-shadow: 0 2px 6px rgba(139, 92, 246, 0.4);
}
