.password-display {
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    border: 2px solid #4b5563;
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    position: relative;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.password-display.strong {
    border-color: #10b981;
    background: linear-gradient(135deg, #065f46 0%, #047857 100%);
}

.password-display.weak {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #92400e 0%, #b45309 100%);
}

.password-display.bad {
    border-color: #ef4444;
    background: linear-gradient(135deg, #991b1b 0%, #dc2626 100%);
}

.password-text {
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    font-weight: 600;
    color: #f3f4f6;
    word-break: break-all;
    line-height: 1.4;
}

.password-text.placeholder {
    color: #374151;
    font-family: 'Inter', sans-serif;
    font-style: italic;
}

.strength-indicator {
    position: absolute;
    top: -12px;
    left: 20px;
    background: inherit;
    padding: 0 10px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.strength-indicator.strong { color: #10b981; }
.strength-indicator.weak { color: #f59e0b; }
.strength-indicator.bad { color: #ef4444; }

.slider-container {
    position: relative;
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: rgba(55, 65, 81, 0.3);
    border-radius: 0.75rem;
    border: 1px solid rgba(75, 85, 99, 0.4);
}

.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 10px;
    border-radius: 5px;
    background: #374151;
    outline: none;
    transition: background 0.2s;
    margin: 1rem 0;
}

.slider:hover { 
    background: #4B5563;
}

/* WebKit browsers (Chrome, Safari, Edge) */
.slider::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    background: #ffffff !important; /* White for maximum contrast */
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6), inset 0 2px 4px rgba(204, 204, 204, 0.8) !important;
    border: 3px solid #cccccc !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 100 !important;
}

.slider::-webkit-slider-thumb:hover {
    background: #f0f0f0 !important;
    transform: scale(1.15) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.7), inset 0 2px 4px rgba(204, 204, 204, 0.9) !important;
}

/* Firefox */
.slider::-moz-range-thumb {
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    cursor: pointer !important;
    border: 3px solid #cccccc !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6) !important;
    opacity: 1 !important;
    -moz-appearance: none !important;
}

.slider::-moz-range-thumb:hover {
    background: #f0f0f0 !important;
}

/* Remove default track styling for Firefox */
.slider::-moz-range-track {
    background: #374151 !important;
    height: 10px !important;
    border-radius: 5px !important;
}

.length-display {
    position: absolute;
    top: -10px;
    right: 0px;
    background: #3b82f6;
    color: white;
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    border: 2px solid #1d4ed8;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    min-width: 60px;
    text-align: center;
    z-index: 50;
    transform: translateY(-50%);
}

.generate-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 15px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    margin: 0 auto;
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.generate-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.copy-btn {
    background: #ccc !important;
    color: black !important;
    border: none;
    border-radius: 15px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.copy-btn:hover {
    background: #b3b3b3 !important;
    transform: translateY(-2px);
}

.checkbox-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(55, 65, 81, 0.5);
    border-radius: 10px;
    border: 1px solid #374151;
    transition: all 0.2s;
    cursor: pointer;
}

.checkbox-item:hover {
    background: rgba(55, 65, 81, 0.8);
    border-color: #4b5563;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #3b82f6;
    cursor: pointer;
}

.checkbox-item label {
    color: #e5e7eb;
    font-weight: 500;
    cursor: pointer;
    flex: 1;
}

.loading-animation {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff40;
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .password-text { font-size: 1.2rem; }
    .checkbox-group { grid-template-columns: 1fr; }
}