
.cng-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2.5rem;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    border-top: 5px solid #2b6cb0; /* Navy Blue Accent */
}

.cng-title {
    text-align: center;
    color: #1a202c; /* Charcoal */
    margin-bottom: 2rem;
    font-size: 1.75rem;
    font-weight: 700;
}

.cng-form-group {
    margin-bottom: 1.5rem;
}

.cng-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #4a5568;
    font-weight: 600;
    font-size: 0.95rem;
}

.cng-form-group input,
.cng-form-group select {
    width: 100%;
    padding: 0.85rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
    background-color: #f7fafc;
    transition: border-color 0.3s;
}

.cng-form-group input:focus,
.cng-form-group select:focus {
    outline: none;
    border-color: #2b6cb0;
    background-color: #fff;
}

.cng-btn {
    width: 100%;
    padding: 1rem;
    background-color: #1a202c; /* Charcoal / Blackish */
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
}

.cng-btn:hover {
    background-color: #2d3748;
}

.cng-btn:active {
    transform: translateY(1px);
}

#cng-result-box {
    margin-top: 2.5rem;
    padding: 2rem;
    background-color: #f7fafc;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.cng-result-header {
    font-size: 0.9rem;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.cng-name-display {
    font-size: 4rem;
    font-weight: bold;
    color: #1a202c;
    font-family: "KaiTi", "Kaiti SC", STKaiti, serif; /* Traditional look */
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.cng-pinyin-display {
    font-size: 1.25rem;
    color: #2b6cb0;
    margin-bottom: 1rem;
    font-weight: 500;
}

.cng-meaning-display, .cng-element-display {
    font-size: 1rem;
    color: #4a5568;
    margin-bottom: 0.5rem;
}

.cng-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.cng-action-btn {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.cng-btn-outline {
    background: transparent;
    border: 1px solid #2b6cb0;
    color: #2b6cb0;
}

.cng-btn-outline:hover {
    background: #ebf8ff;
}

.cng-btn-solid {
    background: #2b6cb0;
    border: 1px solid #2b6cb0;
    color: white;
}

.cng-btn-solid:hover {
    background: #2c5282;
}

@media (max-width: 480px) {
    .cng-actions {
        flex-direction: column;
    }
}
