:root {
    --bg-dark: #0a0b1e;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #b0b0d0;
    --cyan-accent: #00f2ea;
    --purple-accent: #9d50bb;
    --purple-glow: rgba(157, 80, 187, 0.5);
    --cyan-glow: rgba(0, 242, 234, 0.5);
    --error-red: #ff4d4d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Background Animated Blobs */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    filter: blur(80px);
}

.blob {
    position: absolute;
    border-radius: 50%;
    opacity: 0.4;
    animation: move 20s infinite alternate;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--purple-accent);
    top: -100px;
    right: -100px;
}

.blob-2 {
    width: 350px;
    height: 350px;
    background: var(--cyan-accent);
    bottom: -50px;
    left: -50px;
    animation-delay: -5s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: #3f51b5;
    top: 40%;
    left: 30%;
    animation-delay: -10s;
}

@keyframes move {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(50px, 50px) scale(1.1); }
}

.container {
    width: 100%;
    max-width: 1100px;
    padding: 2rem;
    z-index: 10;
}

.header {
    text-align: center;
    margin-bottom: 3rem;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.logo span {
    background: linear-gradient(135deg, var(--cyan-accent), var(--purple-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 300;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2.5rem;
}

/* Glass Card Styles */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card-header {
    margin-bottom: 2rem;
}

.card-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    letter-spacing: 1px;
}

.card-header p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.border-purple { border-color: rgba(157, 80, 187, 0.3); }

.cyan h2 { color: var(--cyan-accent); }
.purple h2 { color: var(--purple-accent); }

/* Form Controls */
.input-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-weight: 600;
}

textarea, input[type="password"], input[type="text"] {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

textarea {
    height: 120px;
    resize: none;
    font-family: 'Courier New', monospace;
}

textarea:focus, input:focus {
    outline: none;
    border-color: var(--cyan-accent);
    box-shadow: 0 0 10px var(--cyan-glow);
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.2rem;
}

/* Buttons */
.btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.btn-cyan {
    background: var(--cyan-accent);
    color: #000;
}

.btn-cyan:hover {
    box-shadow: 0 0 20px var(--cyan-glow);
    transform: scale(1.02);
}

.btn-purple {
    background: var(--purple-accent);
    color: #fff;
}

.btn-purple:hover {
    box-shadow: 0 0 20px var(--purple-glow);
    transform: scale(1.02);
}

/* Result Section */
.result-display {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 60px;
    overflow: hidden;
}

code {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--text-secondary);
    word-break: break-all;
    max-width: 85%;
}

.copy-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 0.5rem;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.copy-btn.copied {
    color: var(--cyan-accent);
    border-color: var(--cyan-accent);
}

.footer {
    text-align: center;
    margin-top: 4rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
    opacity: 0.6;
}

/* Responsive Adjustments */
@media (max-width: 480px) {
    .container { padding: 1rem; }
    .logo { font-size: 2.2rem; }
    .grid { grid-template-columns: 1fr; }
}
