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

body {
    font-family: 'JetBrains Mono Nerd Font Propo', 'JetBrains Mono', monospace;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #e0e0e0;
    line-height: 1.6;
    min-height: 100vh;
    padding: 40px 20px;
}

h1 {
    text-align: center;
    color: #BDADEA;
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-shadow: 0 0 20px rgba(189, 173, 234, 0.3);
    font-weight: 600;
}

h3 {
    color: #BDADEA;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 500;
}

#rsaForm {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#rsaForm > div {
    margin-bottom: 25px;
}

label {
    color: #b0b0b0;
    font-size: 1rem;
    display: inline-block;
    margin-bottom: 8px;
    font-weight: 400;
}

input[type="radio"] {
    margin-right: 8px;
    margin-left: 15px;
    accent-color: #BDADEA;
    cursor: pointer;
}

input[type="radio"]:first-of-type {
    margin-left: 0;
}

label:has(input[type="radio"]) {
    cursor: pointer;
    transition: color 0.3s ease;
}

label:has(input[type="radio"]):hover {
    color: #BDADEA;
}

textarea,
input[type="number"] {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 12px 15px;
    color: #e0e0e0;
    font-family: 'JetBrains Mono Nerd Font Propo', 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.95rem;
    resize: vertical;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

textarea:focus,
input[type="number"]:focus {
    outline: none;
    border-color: #BDADEA;
    box-shadow: 0 0 0 3px rgba(189, 173, 234, 0.1);
}

input[type="number"] {
    font-family: 'JetBrains Mono Nerd Font Propo', 'JetBrains Mono', monospace;
}

button[type="submit"] {
    background: linear-gradient(135deg, #BDADEA 0%, #9B87D9 100%);
    color: #ffffff;
    border: none;
    padding: 14px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(189, 173, 234, 0.3);
    width: 100%;
    max-width: 200px;
    display: block;
    margin: 0 auto;
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(189, 173, 234, 0.4);
}

button[type="submit"]:active {
    transform: translateY(0);
}

#result {
    max-width: 900px;
    margin: 40px auto 0;
    background: rgba(189, 173, 234, 0.05);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid rgba(189, 173, 234, 0.2);
}

#resultContent {
    background: rgba(0, 0, 0, 0.4);
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    color: #00ff88;
    font-family: 'JetBrains Mono Nerd Font Propo', 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.5;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Scrollbar styling */
textarea::-webkit-scrollbar,
#resultContent::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

textarea::-webkit-scrollbar-track,
#resultContent::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
}

textarea::-webkit-scrollbar-thumb,
#resultContent::-webkit-scrollbar-thumb {
    background: rgba(189, 173, 234, 0.4);
    border-radius: 5px;
}

textarea::-webkit-scrollbar-thumb:hover,
#resultContent::-webkit-scrollbar-thumb:hover {
    background: rgba(189, 173, 234, 0.6);
}

/* Responsive design */
@media (max-width: 768px) {
    body {
        padding: 20px 10px;
    }
    
    h1 {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    #rsaForm {
        padding: 25px 20px;
    }
    
    textarea {
        font-size: 0.85rem;
    }
    
    button[type="submit"] {
        width: 100%;
        max-width: none;
    }
}
