:root {
    --primary: #1a237e;
    --primary-light: #534bae;
    --primary-dark: #000051;
    --accent: #ffab00;
    --text: #212121;
    --text-light: #757575;
    --bg: #f5f5f5;
    --card-bg: #ffffff;
    --border: #e0e0e0;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

[data-theme="dark"] {
    --primary: #3949ab;
    --primary-light: #6f74dd;
    --primary-dark: #00227b;
    --accent: #ffd600;
    --text: #f5f5f5;
    --text-light: #b0b0b0;
    --bg: #121212;
    --card-bg: #1e1e1e;
    --border: #333;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Base styles */
.bng-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.bng-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.bng-title {
    color: var(--primary);
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bng-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Form styles */
.bng-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bng-label {
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
}

.bng-input {
    padding: 0.8rem 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--card-bg);
    color: var(--text);
}

.bng-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.2);
}

/* Radio buttons */
.bng-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
}

.bng-radio {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    padding-left: 2rem;
    user-select: none;
}

.bng-radio input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.radio-custom {
    position: absolute;
    top: 0;
    left: 0;
    height: 1.5rem;
    width: 1.5rem;
    background-color: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: 50%;
    transition: var(--transition);
}

.bng-radio:hover input ~ .radio-custom {
    border-color: var(--primary-light);
}

.bng-radio input:checked ~ .radio-custom {
    background-color: var(--primary);
    border-color: var(--primary);
}

.radio-custom:after {
    content: "";
    position: absolute;
    display: none;
    left: 0.5rem;
    top: 0.25rem;
    width: 0.25rem;
    height: 0.5rem;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.bng-radio input:checked ~ .radio-custom:after {
    display: block;
}

/* Buttons */
.bng-button {
    background: linear-gradient(45deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

.bng-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.bng-button:active {
    transform: translateY(0);
}

.bng-button.secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    margin-top: 1.5rem;
}

.bng-button.secondary:hover {
    background: rgba(26, 35, 126, 0.1);
}

/* Result styles */
.bng-result {
    margin-top: 2rem;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.result-card {
    background: rgba(26, 35, 126, 0.05);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    border: 1px dashed var(--primary);
}

.bng-name {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--primary);
    margin: 1rem 0;
    font-weight: 700;
    line-height: 1.2;
}

.bng-tagline {
    color: var(--text-light);
    font-style: italic;
    margin-top: 0.5rem;
}

/* Spinner animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.bng-spinner {
    animation: spin 1s linear infinite;
    display: none;
}

/* Responsive styles */
@media (max-width: 640px) {
    .bng-card {
        padding: 1.5rem;
    }
    
    .bng-title {
        font-size: 1.8rem;
    }
    
    .bng-radio-group {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .bng-name {
        font-size: 1.8rem;
    }
}