:root {
    --primary-color: #471f4f;
    --primary-dark: #351739;
    --primary-light: #5a2963;
    --bg-dark: #1a1a1a;
    --bg-card: #242424;
    --bg-input: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --border-color: #3a3a3a;
    --error-color: #ff4444;
    --success-color: #44ff88;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 6px 25px rgba(0, 0, 0, 0.4);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* Grid background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(128, 128, 128, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(128, 128, 128, 0.15) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 0;
}

/* Animated circles */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, var(--primary-color) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, var(--primary-color) 0%, transparent 50%),
        radial-gradient(circle at 60% 20%, var(--primary-color) 0%, transparent 40%),
        radial-gradient(circle at 30% 80%, var(--primary-color) 0%, transparent 40%);
    background-size: 600px 600px, 800px 800px, 500px 500px, 700px 700px;
    background-position: 0% 0%, 100% 100%, 50% 0%, 0% 100%;
    opacity: 0.05;
    animation: floatCircles 30s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes floatCircles {
    0%, 100% { 
        transform: translate(0, 0) scale(1);
    }
    33% { 
        transform: translate(-30px, -50px) scale(1.1);
    }
    66% { 
        transform: translate(40px, 30px) scale(0.9);
    }
}

.container {
    width: 100%;
    max-width: 480px;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Decorative circles */
.circle {
    position: fixed;
    border-radius: 50%;
    background: var(--primary-color);
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -150px;
    animation: float1 20s ease-in-out infinite;
}

.circle-2 {
    width: 200px;
    height: 200px;
    bottom: -100px;
    left: -100px;
    animation: float2 25s ease-in-out infinite;
}

.circle-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 10%;
    animation: float3 30s ease-in-out infinite;
}

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

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

@keyframes float3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-30px, 30px) scale(0.9); }
}

.circle-4 {
    width: 100px;
    height: 100px;
    top: 20%;
    right: 15%;
    animation: float1 15s ease-in-out infinite;
    animation-delay: 2s;
}

.circle-5 {
    width: 250px;
    height: 250px;
    bottom: 20%;
    right: -125px;
    animation: float2 22s ease-in-out infinite;
    animation-delay: 4s;
}

.circle-6 {
    width: 80px;
    height: 80px;
    top: 60%;
    left: 70%;
    animation: float3 18s ease-in-out infinite;
    animation-delay: 1s;
}

.circle-7 {
    width: 120px;
    height: 120px;
    bottom: 30%;
    left: 20%;
    animation: float1 28s ease-in-out infinite;
    animation-delay: 3s;
}

.circle-8 {
    width: 60px;
    height: 60px;
    top: 10%;
    left: 50%;
    animation: float2 16s ease-in-out infinite;
    animation-delay: 5s;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    height: 60px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

header h1 {
    font-size: 28px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card, .info-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.info-card {
    margin-top: 20px;
    padding: 24px;
}
.input-section label {
    display: block;
    margin-bottom: 12px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-wrapper {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
}

#ssid-input, .password-output {
    flex: 1;
    padding: 14px 18px;
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: 'Monaco', 'Consolas', monospace;
}

#ssid-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--bg-dark);
    box-shadow: 0 0 0 4px rgba(71, 31, 79, 0.2);
}

.generate-btn, .copy-btn {
    padding: 14px 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.generate-btn:hover, .copy-btn:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(71, 31, 79, 0.3);
}

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

.copy-btn {
    padding: 14px;
}

.hint {
    color: var(--text-secondary);
    font-size: 13px;
    margin-top: 8px;
}

.result-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    opacity: 0;
    animation: fadeIn 0.3s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.result-label {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.result-wrapper {
    display: flex;
    gap: 12px;
}

.password-output {
    font-weight: 600;
    letter-spacing: 1px;
}
.copy-feedback {
    text-align: center;
    color: var(--success-color);
    font-size: 14px;
    font-weight: 500;
    margin-top: 12px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.copy-feedback.show {
    opacity: 1;
    transform: translateY(0);
}

.error-message {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    color: var(--error-color);
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 16px;
    font-size: 14px;
}

.hidden {
    display: none !important;
}

.info-card h2 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.info-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 8px;
}

.info-card code {
    background: var(--bg-input);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 13px;
}
footer {
    text-align: center;
    margin-top: 40px;
    color: var(--text-secondary);
    font-size: 13px;
}

footer p {
    margin: 4px 0;
}

footer a:hover {
    text-decoration: underline !important;
}

.disclaimer {
    opacity: 0.9;
    font-size: 14px;
}

/* Mobile responsiveness */
@media (max-width: 640px) {
    .container {
        padding: 16px;
    }
    
    header h1 {
        font-size: 24px;
    }
    
    .card, .info-card {
        padding: 24px 20px;
    }
    
    .input-wrapper {
        flex-direction: column;
    }
    
    .generate-btn {
        width: 100%;
        justify-content: center;
    }
    
    .result-wrapper {
        flex-direction: column;
    }
    
    .copy-btn {
        width: 100%;
        justify-content: center;
    }
}
.circle-9 {
    width: 180px;
    height: 180px;
    top: 40%;
    right: 30%;
    animation: float3 24s ease-in-out infinite;
    animation-delay: 2.5s;
}

.circle-10 {
    width: 90px;
    height: 90px;
    bottom: 10%;
    left: 40%;
    animation: float1 20s ease-in-out infinite;
    animation-delay: 4.5s;
}

.circle-11 {
    width: 140px;
    height: 140px;
    top: 70%;
    right: 20%;
    animation: float2 26s ease-in-out infinite;
    animation-delay: 1.5s;
}

.circle-12 {
    width: 70px;
    height: 70px;
    top: 30%;
    left: 10%;
    animation: float3 17s ease-in-out infinite;
    animation-delay: 3.5s;
}

.circle-13 {
    width: 110px;
    height: 110px;
    bottom: 40%;
    right: 50%;
    animation: float1 23s ease-in-out infinite;
    animation-delay: 0.5s;
}

.circle-14 {
    width: 200px;
    height: 200px;
    top: -100px;
    left: 30%;
    animation: float2 29s ease-in-out infinite;
    animation-delay: 2s;
}
.circle-15 {
    width: 130px;
    height: 130px;
    bottom: 50%;
    left: 60%;
    animation: float3 21s ease-in-out infinite;
    animation-delay: 5.5s;
}

/* Adjust circle opacity for better visibility */
.circle {
    position: fixed;
    border-radius: 50%;
    background: var(--primary-color);
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
    filter: blur(1px);
}