* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@keyframes slideInDown {
    from {
        transform: translateX(-50%) translateY(-150%);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

@keyframes slideOutUp {
    from {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    to {
        transform: translateX(-50%) translateY(-150%);
        opacity: 0;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

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




.toast {
    position: fixed;
    top: 50px;
    left: 50%;
    transform: translateX(-50%) translateY(-150%);
    background: #001100;
    color: #00ff00;
    border: 1px solid #00ff00;
    padding: 1rem 2rem;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 1.05rem;
    font-family: 'Courier New', monospace;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-shadow: 0 0 5px #00ff00;
}

.toast.show {
    animation: slideInDown 0.4s ease forwards;
    pointer-events: auto;
}

.toast.hide {
    animation: slideOutUp 0.4s ease forwards;
}

.toast svg {
    flex-shrink: 0;
}

body {
    font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
    background: #000000;
    color: #00ff00;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-x: auto;
}

.container {
    background: #111111;
    border: 2px solid #00ff00;
    padding: 2rem;
    border-radius: 8px;
    width: 100%;
    max-width: 520px;
    position: relative;
}

.container::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(45deg, 
        transparent, 
        rgba(0, 255, 0, 0.1), 
        transparent, 
        rgba(0, 255, 0, 0.1));
    border-radius: 12px;
    z-index: -1;
}

h1 {
    color: #00ff00;
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2rem;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
    font-weight: bold;
}

.subtitle {
    color: #00cc00;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1rem;
    opacity: 0.8;
}

.password-display {
    display: flex;
    gap: 10px;
    margin-bottom: 1.5rem;
}

#passwordOutput {
    flex: 1;
    padding: 1rem;
    border: 1px solid #00ff00;
    border-radius: 4px;
    font-size: 1.1rem;
    font-family: 'Courier New', monospace;
    background: #000000;
    color: #00ff00;
    transition: all 0.3s ease;
    transform-origin: center;
}

#passwordOutput:focus {
    outline: none;
    border-color: #00ff00;
    background: #001100;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.copy-btn,
.regenerate-btn {
    padding: 0 1rem;
    background: #001100;
    color: #00ff00;
    border: 1px solid #00ff00;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.copy-btn:hover,
.regenerate-btn:hover {
    background: #003300;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
    transform: translateY(-1px);
}

.copy-btn:active,
.regenerate-btn:active {
    transform: translateY(0);
}

.copy-btn.copied {
    background: #004400;
    animation: pulse 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.7);
}

.regenerate-btn.regenerating {
    animation: spin 0.5s ease;
}

.copy-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 4px;
    border: 2px solid #00ff00;
    pointer-events: none;
    animation: ripple 0.6s ease-out;
    box-shadow: 0 0 15px #00ff00;
}


@keyframes ripple {
    from {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.5);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.5);
    }
}


.password-display {
    position: relative;
}

.strength-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #001100;
    border: 1px solid #00ff00;
    border-radius: 4px;
}

.strength-indicator span:first-child {
    font-size: 0.9rem;
    color: #00cc00;
}

.strength-bars {
    display: flex;
    gap: 4px;
    flex: 1;
}

.bar {
    height: 8px;
    flex: 1;
    background: #333333;
    border: 1px solid #00ff00;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.bar.active-weak {
    background: #ff0000;
    box-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
}

.bar.active-fair {
    background: #ffaa00;
    box-shadow: 0 0 5px rgba(255, 170, 0, 0.5);
}

.bar.active-good {
    background: #ffff00;
    box-shadow: 0 0 5px rgba(255, 255, 0, 0.5);
}

.bar.active-strong {
    background: #00ff00;
    box-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

#strengthText {
    font-size: 0.9rem;
    font-weight: 600;
    min-width: 60px;
    text-align: right;
    text-shadow: 0 0 5px currentColor;
}

.settings {
    margin-bottom: 2rem;
}

.setting {
    margin-bottom: 1rem;
}

.setting label {
    display: flex;
    align-items: center;
    color: #00cc00;
    cursor: pointer;
    user-select: none;
}

.length-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

#length {
    flex: 1;
    height: 6px;
    background: #333333;
    border: 1px solid #00ff00;
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

#length::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #00ff00;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

#length::-webkit-slider-thumb:hover {
    background: #00cc00;
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.7);
}

#length::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #00ff00;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

#length::-moz-range-thumb:hover {
    background: #00cc00;
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.7);
}

#lengthInput {
    width: 60px;
    padding: 0.4rem;
    border: 1px solid #00ff00;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #00ff00;
    text-align: center;
    background: #000000;
    transition: all 0.3s ease;
}

#lengthInput:focus {
    outline: none;
    border-color: #00ff00;
    background: #001100;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

#lengthInput::-webkit-inner-spin-button,
#lengthInput::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#lengthInput[type=number] {
    -moz-appearance: textfield;
}

input[type="checkbox"] {
    margin-right: 0.5rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #00ff00;
    filter: brightness(1.2);
}

.crack-time {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #001100;
    border-radius: 8px;
    border: 1px solid #00ff00;
    position: relative;
}

.crack-time::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(0, 255, 0, 0.1), 
        transparent);
    border-radius: 10px;
    z-index: -1;
}

.crack-time-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #00cc00;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.crack-time-header svg {
    color: #00ff00;
}

.crack-time-display {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.time-value {
    font-size: 2rem;
    font-weight: 700;
    color: #00ff00;
    margin: 0.5rem 0;
    transition: color 0.3s ease;
    text-shadow: 0 0 10px currentColor;
}

.time-details {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: #00aa00;
    padding-top: 0.75rem;
    border-top: 1px solid #00ff00;
    flex-wrap: wrap;
}

.time-details strong {
    color: #00ff00;
    font-weight: 600;
    text-shadow: 0 0 5px currentColor;
}

.info-icon {
    position: relative;
    cursor: help;
    margin-left: 0.25rem;
    color: #00aa00;
    transition: color 0.3s ease;
}

.info-icon:hover {
    color: #00ff00;
    filter: drop-shadow(0 0 5px #00ff00);
}

.tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #111111;
    border: 1px solid #00ff00;
    border-radius: 4px;
    padding: 0;
    min-width: 280px;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-bottom: 8px;
}

.info-icon:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

.tooltip-header {
    background: #002200;
    color: #00ff00;
    border-bottom: 1px solid #00ff00;
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 4px 4px 0 0;
    text-transform: none;
    letter-spacing: normal;
    text-shadow: 0 0 5px #00ff00;
}

.tooltip-content {
    padding: 1rem;
}

.spec-item {
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: #00cc00;
    text-transform: none;
    letter-spacing: normal;
    font-weight: normal;
}

.spec-item strong {
    color: #00ff00;
    font-weight: 600;
    margin-right: 0.5rem;
    text-shadow: 0 0 3px currentColor;
}

.spec-note {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #00ff00;
    font-size: 0.8rem;
    color: #00aa00;
    font-style: italic;
    text-transform: none;
    letter-spacing: normal;
    font-weight: normal;
    line-height: 1.4;
}

.tooltip::before {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #00ff00;
}

.tooltip::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #111111;
}

@media (max-width: 480px) {
    .container {
        padding: 1.5rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .password-display {
        flex-direction: column;
    }
    
    .copy-btn {
        padding: 0.75rem;
        justify-content: center;
    }
}