* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #0f172a;
    position: relative;
    overflow: hidden;
}

/* animated bgf */
.bg-animation {
    position: absolute;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    filter: blur(80px);
    opacity: 0.5;
}

.bg-animation div {
    position: absolute;
    border-radius: 50%;
}

.bg-circle-1 {
    background: #3b82f6;
    width: 300px;
    height: 300px;
    left: -100px;
    top: -100px;
    animation: float1 8s infinite ease-in-out;
}

.bg-circle-2 {
    background: #8b5cf6;
    width: 400px;
    height: 400px;
    right: -150px;
    bottom: -150px;
    animation: float2 10s infinite ease-in-out;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(100px, 100px); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-100px, -100px); }
}

.container {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.36);
    width: 90%;
    max-width: 500px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1;
    transition: transform 0.3s ease;
}

.container:hover {
    transform: translateY(-5px);
}

h1 {
    color: #f1f5f9;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    text-align: center;
    position: relative;
}

h1::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 3px;
}

.result-container {
    position: relative;
    background: rgba(15, 23, 42, 0.6);
    padding: 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.result-container:hover {
    background: rgba(15, 23, 42, 0.8);
    transform: translateY(-2px);
}

#result {
    word-wrap: break-word;
    max-width: calc(100% - 40px);
    font-family: monospace;
    font-size: 1.1rem;
    color: #e2e8f0;
}

.copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #e2e8f0;
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.copy-btn:hover {
    transform: scale(1.1);
}

.settings {
    margin: 1.5rem 0;
}

.setting {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    color: #e2e8f0;
    padding: 0.75rem;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.setting:hover {
    background: rgba(15, 23, 42, 0.4);
}

input[type="number"] {
    width: 70px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.6);
    color: #e2e8f0;
    transition: all 0.3s ease;
}

input[type="number"]:focus {
    outline: none;
    border-color: #3b82f6;
    background: rgba(15, 23, 42, 0.8);
}

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

.generate-btn {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    padding: 14px;
    border: none;
    border-radius: 12px;
    width: 100%;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.generate-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.generate-btn:hover::before {
    left: 100%;
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

.strength-meter {
    height: 8px;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 6px;
    margin-top: 1.5rem;
    overflow: hidden;
    position: relative;
}

.strength-meter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 50%,
        transparent 100%
    );
    background-size: 20px 20px;
    animation: moveStripes 20s linear infinite;
}

@keyframes moveStripes {
    0% { background-position: 0 0; }
    100% { background-position: 40px 0; }
}

.strength-meter-fill {
    height: 100%;
    width: 0;
    transition: all 0.5s ease;
    position: relative;
    z-index: 1;
}
